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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1631
RA = 350.708, Dec = -49.2725
tmin = 662083201, tmax = 662342401
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='561496', job_status='RUN', time_executed='2021-12-28 00:35:51.547152', time_epoch_executed='1640680551.55' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561496/ft1_4FGL_J2322.8-4916_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561496/ft2_4FGL_J2322.8-4916_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561496/ft1_4FGL_J2322.8-4916_daily_bin1631.fits outfile=/scratch/kocevski/561496/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1631.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=662083201.0 tmax=662342401.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.94
user 3.68
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561496/ft1_filtered_4FGL_J2322.8-4916_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/561496/ft2_4FGL_J2322.8-4916_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/561496/ltcube_662083201_662342401_4FGL_J2322.8-4916_daily_bin1631.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/561496/ft2_4FGL_J2322.8-4916_daily_bin1631.fits
.....................!
real 12.66
user 12.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561496/ft1_filtered_4FGL_J2322.8-4916_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/561496/ft2_4FGL_J2322.8-4916_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/561496/ltcube_662083201_662342401_4FGL_J2322.8-4916_daily_bin1631.fits outfile=/scratch/kocevski/561496/expmap_662083201_662342401_4FGL_J2322.8-4916_daily_bin1631.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/561496/ltcube_662083201_662342401_4FGL_J2322.8-4916_daily_bin1631.fits
.....................!
real 193.32
user 187.13
sys 5.08

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/561496/ft1_filtered_4FGL_J2322.8-4916_daily_bin1631.fits scfile=/scratch/kocevski/561496/ft2_4FGL_J2322.8-4916_daily_bin1631.fits outfile=/scratch/kocevski/561496/cmap_662083201_662342401_4FGL_J2322.8-4916_daily_bin1631.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561496/ft1_filtered_4FGL_J2322.8-4916_daily_bin1631.fits scfile=/scratch/kocevski/561496/ft2_4FGL_J2322.8-4916_daily_bin1631.fits outfile=/scratch/kocevski/561496/cmap_HighResolution_662083201_662342401_4FGL_J2322.8-4916_daily_bin1631.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/561496/ft1_filtered_4FGL_J2322.8-4916_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/561496/ft2_4FGL_J2322.8-4916_daily_bin1631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/561496/Model_4FGL_J2322.8-4916_daily_bin1631.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/561496/ft1_filtered_4FGL_J2322.8-4916_daily_bin1631.fits.....................!
real 45.18
user 43.70
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13156E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19380E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.438       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4942       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40164E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .89051E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27573E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15213E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10735E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6285       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7498       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11485E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.789       1.0000         .10000E-03   10000.    
    18 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.5436       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .64684       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11947E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .46774       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.371       1.0000         .10000E-03   10000.    
    25 'norm      '    1.2194       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .44248E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.7216       1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.138       1.0000         .10000E-03   10000.    
    30 'norm      '    .14598E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.2969       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .75335       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .92308       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=   6333.283     FROM MIGRAD    STATUS=CONVERGED    983 CALLS     4999 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.856        .40267E-06** at limit **
   2  Prefactor     .10000E-03    10.441        .13687E-07** at limit **
   3  Prefactor     12.386        23.100       -.11135E-05   -.40373E-04
   4  Prefactor     4.4882        6.1914        .64383E-06    .26244E-04
   5  Prefactor     .10000E-03    2.6084       -.50297E-08** at limit **
   6  Prefactor     .11545E-03    2.7822        .67837E-06** at limit **
   7  Prefactor     .10000E-03    68.585       -.32890E-05** at limit **
   8  norm          .10000E-03    2.3645        .10637E-07** at limit **
   9  Prefactor     .10000E-03    2.3541        .14295E-06** at limit **
  10  Prefactor     .10000E-03    25.768       -.19045E-06** at limit **
  11  Prefactor     6.0407        5.7239       -.16107E-06   -.33178E-04
  12  Prefactor     .10000E-03    20.217       -.13948E-06** at limit **
  13  Prefactor     7.6617        10.209       -.13633E-05   -.50312E-04
  14  Prefactor     23.382        82.319        .21558E-04    .47872E-04
  15  Prefactor     6.7550        5.1995        .45042E-09   -.10287E-04
  16  Prefactor     .10000E-03    29.801       -.16947E-06** at limit **
  17  Prefactor     41.858        18.358       -.90453E-06   -.18098E-04
  18  norm          .10000E-03    4.1940       -.22431E-07** at limit **
  19  norm          .10000E-03    1.6631        .15605E-07** at limit **
  20  norm          4.5535        3.2776       -.47090E-07    .14921E-04
  21  Prefactor     .66215        5.2791       -.68345E-06    .14606E-03
  22  Prefactor     .10000E-03    8.9517       -.74921E-07** at limit **
  23  norm          .46595        1.4945        .21466E-06   -.10179E-04
  24  Prefactor     30.353        16.954        .49767E-06    .21316E-03
  25  norm          1.2179        1.0189        .47740E-07    .31470E-03
  26  norm          .10000E-03    .82331       -.96704E-08** at limit **
  27  Prefactor     .10000E-03    6.8871        .64846E-06** at limit **
  28  Prefactor     1.7199        3.2648        .32115E-05   -.29284E-03
  29  Prefactor     16.205        22.106       -.30346E-05    .21408E-04
  30  norm          .10000E-03    4.9375       -.16555E-06** at limit **
  31  Prefactor     3.2896        4.8920        .11615E-07    .43844E-05
  32  Prefactor     .10000E-03    1.9000       -.63834E-07** at limit **
  33  Normalizat    .75325        .15327       -.74028E-06   -.58853E-04
  34  Prefactor     .92308        .15864        .20073E-06   -.13025E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3861
  Prefactor  = 4.48817
  Prefactor  = 0.0001
  Prefactor  = 0.000115449
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.04071
  Prefactor  = 0.0001
  Prefactor  = 7.66166
  Prefactor  = 23.3823
  Prefactor  = 6.75501
  Prefactor  = 0.0001
  Prefactor  = 41.8584
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.55345
  Prefactor  = 0.662145
  Prefactor  = 0.0001
  norm       = 0.46595
  Prefactor  = 30.3527
  norm       = 1.21794
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71986
  Prefactor  = 16.2051
  norm       = 0.0001
  Prefactor  = 3.28964
  Prefactor  = 0.0001
  Normalizat = 0.753248
  Prefactor  = 0.923083
 **********
 **   18 **HESSE 
 **********

 FCN=   6333.283     FROM HESSE     STATUS=OK           742 CALLS     5741 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.386        23.066        .11358E-03   -1.5004    
   4  Prefactor     4.4882        6.1792        .18992E-03   -1.5284    
   5  Prefactor     .10000E-03    2.6492        .12548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11545E-03    6.3263        .42814E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    68.614        .20837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.3659        .11951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6691        .23545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0407        5.7144        .16345E-03   -1.5216    
  12  Prefactor     .10000E-03    20.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6617        10.195        .14519E-03   -1.5154    
  14  Prefactor     23.382        82.523        .82612E-04   -1.4740    
  15  Prefactor     6.7550        5.1991        .15420E-03   -1.5188    
  16  Prefactor     .10000E-03    29.869        .20669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.858        18.269        .62011E-04   -1.4413    
  18  norm          .10000E-03    4.1992        .15917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6636        .10022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.5535        3.3655        .11721E-03   -1.5281    
  21  Prefactor     .66215        21.703        .26744E-02   -1.5545    
  22  Prefactor     .10000E-03    8.9649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .46595        1.5266        .16510E-03   -1.5571    
  24  Prefactor     30.353        18.360        .72702E-04   -1.4606    
  25  norm          1.2179        .98527        .66149E-04   -1.5487    
  26  norm          .10000E-03    .82905        .70479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.9157        .20377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.7199        3.2939        .79729E-03   -1.5446    
  29  Prefactor     16.205        22.173        .99699E-04   -1.4903    
  30  norm          .10000E-03    4.9386        .17271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.2896        4.8750        .19226E-03   -1.5345    
  32  Prefactor     .10000E-03    1.9690        .21397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .75325        .17993        .23137E-03   -1.0183    
  34  Prefactor     .92308        .18765        .23187E-03   -.95339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85473e-10
Minuit parameter uncertainties:
  1  1.37652e-05
  2  2.09682e-06
  3  23.0823
  4  6.18004
  5  1.03021e-06
  6  0.0197739
  7  0.000168655
  8  4.34458e-07
  9  9.03581e-06
  10  3.89672e-06
  11  5.71488
  12  2.90091e-06
  13  10.1975
  14  82.9296
  15  5.19948
  16  3.10523e-05
  17  18.2712
  18  1.17823e-07
  19  7.03296e-07
  20  3.36564
  21  7.58418
  22  1.61048e-06
  23  1.52672
  24  18.3637
  25  0.985286
  26  8.05826e-08
  27  4.65191e-06
  28  3.29427
  29  22.1837
  30  7.42727e-06
  31  4.87563
  32  2.47706e-06
  33  0.180075
  34  0.187777
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  7.033e-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:  9.231e-01  1.878e-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:  7.532e-01  1.801e-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: 1.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/561496/likelihoodResults_662083201_662342401_4FGL_J2322.8-4916_daily_bin1631.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): 102
logL (Free Index) = 6333.28301703
delta logL = -1.52041593537e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6333.28301567
delta logL = -1.69171471498e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6068       1.0000          .0000       5.0000    
     3 'Normalizat'    .75328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92310       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=   6333.283     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      225 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4527        .10025E-02** at limit **
   2  alpha         1.5086        3.2402        .18037       -.20169E-08
   3  Normalizat    .75325        .16812        .23137E-03    .47975E-03
   4  Prefactor     .92308        .18606        .23187E-03    .49224E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.50856
  Normalizat = 0.753249
  Prefactor  = 0.923083
 **********
 **   18 **HESSE 
 **********

 FCN=   6333.283     FROM HESSE     STATUS=OK            23 CALLS      248 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6720        .20051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5086        3.5799        .72150E-02   -.40778    
   3  Normalizat    .75325        .16827        .46274E-04   -1.0183    
   4  Prefactor     .92308        .18623        .46374E-04   -.95339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2347e-10
Minuit parameter uncertainties:
  1  3.50745e-06
  2  185.407
  3  0.168384
  4  0.186354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561496': 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) = 6333.28301535
delta logL = 1.51111635205e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  3.507e-06  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.509e+00  1.854e+02  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.231e-01  1.864e-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:  7.532e-01  1.684e-01  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/561496/cmap_HighResolution_662083201_662342401_4FGL_J2322.8-4916_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-05', job_status='DONE', photon_flux_upper_limit='1.51e-08', time_completed='2021-12-28 00:52:11.904537', job_id='561496', GAL2='0.92', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1640681531.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1631' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:52:11 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 561496: <4FGL_J2322.8-4916_daily_bin1631> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1631> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 28 00:35:34 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:35:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:35:35 2021
Terminated at Tue Dec 28 00:52:12 2021
Results reported at Tue Dec 28 00:52:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1631 350.708 -49.2725 662083201 662342401 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 :                                   979.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            998 sec.

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

