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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1623
RA = 350.708, Dec = -49.2725
tmin = 660009601, tmax = 660268801
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='500106', job_status='RUN', time_executed='2021-12-08 09:28:13.686296', time_epoch_executed='1638984493.69' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500106/ft1_4FGL_J2322.8-4916_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500106/ft2_4FGL_J2322.8-4916_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500106/ft1_4FGL_J2322.8-4916_daily_bin1623.fits outfile=/scratch/kocevski/500106/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1623.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=660009601.0 tmax=660268801.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.90
user 4.64
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/500106/ft2_4FGL_J2322.8-4916_daily_bin1623.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/500106/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1623.fits evtable="EVENTS" outfile="/scratch/kocevski/500106/ft1_filtered_4FGL_J2322.8-4916_daily_bin1623.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500106/ft1_filtered_4FGL_J2322.8-4916_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/500106/ft2_4FGL_J2322.8-4916_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/500106/ltcube_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.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/500106/ft2_4FGL_J2322.8-4916_daily_bin1623.fits
.....................!
real 14.74
user 14.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500106/ft1_filtered_4FGL_J2322.8-4916_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/500106/ft2_4FGL_J2322.8-4916_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/500106/ltcube_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.fits outfile=/scratch/kocevski/500106/expmap_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.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/500106/ltcube_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.fits
.....................!
real 191.06
user 186.17
sys 4.15

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/500106/ft1_filtered_4FGL_J2322.8-4916_daily_bin1623.fits scfile=/scratch/kocevski/500106/ft2_4FGL_J2322.8-4916_daily_bin1623.fits outfile=/scratch/kocevski/500106/cmap_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500106/ft1_filtered_4FGL_J2322.8-4916_daily_bin1623.fits scfile=/scratch/kocevski/500106/ft2_4FGL_J2322.8-4916_daily_bin1623.fits outfile=/scratch/kocevski/500106/cmap_HighResolution_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/500106/ft1_filtered_4FGL_J2322.8-4916_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/500106/ft2_4FGL_J2322.8-4916_daily_bin1623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500106/Model_4FGL_J2322.8-4916_daily_bin1623.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/500106/ft1_filtered_4FGL_J2322.8-4916_daily_bin1623.fits.....................!
real 34.20
user 32.87
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/500106/ft1_filtered_4FGL_J2322.8-4916_daily_bin1623.fits', '/scratch/kocevski/500106/ft2_4FGL_J2322.8-4916_daily_bin1623.fits', expMap='/scratch/kocevski/500106/expmap_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.fits', expCube='/scratch/kocevski/500106/ltcube_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/500106/Model_4FGL_J2322.8-4916_daily_bin1623.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/500106/ft1_filtered_4FGL_J2322.8-4916_daily_bin1623.fits
Spacecraft file(s): /scratch/kocevski/500106/ft2_4FGL_J2322.8-4916_daily_bin1623.fits
Exposure map: /scratch/kocevski/500106/expmap_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.fits
Exposure cube: /scratch/kocevski/500106/ltcube_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/500106/Model_4FGL_J2322.8-4916_daily_bin1623.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3923.64793705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.922       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10772E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .96998       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7232       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    143.87       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0115       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.769       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.175       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .65395E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1711       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.066       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0008       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0932       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.9309       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12322E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .42765       1.0000         .10000E-03   10000.    
    26 'norm      '    .13201E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .18539E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    27.380       1.0000         .10000E-03   10000.    
    30 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .26765E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .71584       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .96703       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=   3923.574     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     4907 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.906        48.066        .57751E-08   -.24070E-04
   2  Prefactor     33.769        31.416        .52961E-06   -.30997E-04
   3  Prefactor     .10000E-03    55.117        .66438E-06** at limit **
   4  Prefactor     .96991        18.541        .55678E-05   -.13953E-04
   5  Prefactor     9.7197        12.444        .33700E-06   -.52411E-04
   6  Prefactor     .10000E-03    3.3637        .39540E-07** at limit **
   7  Prefactor     143.79        139.40       -.29868E-06   -.58888E-04
   8  norm          .10000E-03    3.7457       -.11520E-06** at limit **
   9  Prefactor     9.0099        5.3817        .10566E-06    .57678E-04
  10  Prefactor     31.782        49.565        .36140E-06    .20660E-04
  11  Prefactor     .10000E-03    3.3996       -.91314E-07** at limit **
  12  Prefactor     50.969        46.465        .29253E-06   -.11973E-04
  13  Prefactor     23.183        20.085       -.50688E-06    .75830E-05
  14  Prefactor     .10001E-03    548.87       -.28484E-05** at limit **
  15  Prefactor     9.1721        10.154        .26565E-06   -.99286E-05
  16  Prefactor     .10000E-03    50.876        .14324E-06** at limit **
  17  Prefactor     .10000E-03    10.946        .44448E-08** at limit **
  18  norm          13.065        13.708        .10892E-06   -.40688E-05
  19  norm          2.9892        18.252        .10630E-05   -.49566E-04
  20  norm          .10000E-03    2.0742        .14711E-07** at limit **
  21  Prefactor     7.1116        15.053       -.24591E-05   -.16734E-03
  22  Prefactor     .10000E-03    29.009        .20779E-06** at limit **
  23  norm          5.9330        4.8795        .55840E-08   -.14680E-03
  24  Prefactor     .10000E-03    46.599       -.15083E-05** at limit **
  25  norm          .42667        2.1368        .11277E-05    .35285E-03
  26  norm          .10000E-03    4.6848        .46782E-06** at limit **
  27  Prefactor     .10138E-03    22.802       -.17980E-05** at limit **
  28  Prefactor     .10000E-03    3.2849        .43990E-07** at limit **
  29  Prefactor     27.381        29.531       -.45285E-06   -.63841E-04
  30  norm          .10000E-03    13.447        .16247E-07** at limit **
  31  Prefactor     .10000E-03    3.8767        .23672E-06** at limit **
  32  Prefactor     .10000E-03    3.4001        .61230E-07** at limit **
  33  Normalizat    .71603        .22665       -.11524E-05   -.48429E-04
  34  Prefactor     .96693        .22349       -.88002E-06   -.54318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9058
  Prefactor  = 33.7687
  Prefactor  = 0.000100001
  Prefactor  = 0.969913
  Prefactor  = 9.71971
  Prefactor  = 0.0001
  Prefactor  = 143.789
  norm       = 0.0001
  Prefactor  = 9.00992
  Prefactor  = 31.7817
  Prefactor  = 0.0001
  Prefactor  = 50.969
  Prefactor  = 23.1833
  Prefactor  = 0.000100012
  Prefactor  = 9.17208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0652
  norm       = 2.9892
  norm       = 0.0001
  Prefactor  = 7.11157
  Prefactor  = 0.0001
  norm       = 5.93299
  Prefactor  = 0.0001
  norm       = 0.426671
  norm       = 0.0001
  Prefactor  = 0.000101377
  Prefactor  = 0.0001
  Prefactor  = 27.3814
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.716028
  Prefactor  = 0.966926
 **********
 **   18 **HESSE 
 **********

 FCN=   3923.574     FROM HESSE     STATUS=OK           738 CALLS     5645 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.906        48.089        .85549E-04   -1.4772    
   2  Prefactor     33.769        31.379        .68954E-04   -1.4545    
   3  Prefactor     .10000E-03    55.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .96991        17.838        .50073E-03   -1.5511    
   5  Prefactor     9.7197        12.372        .12851E-03   -1.5084    
   6  Prefactor     .10000E-03    3.3664        .11219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     143.79        139.79        .16796E-03   -1.3304    
   8  norm          .10000E-03    3.7637        .11837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.0099        5.3784        .10739E-03   -1.5108    
  10  Prefactor     31.782        49.601        .71089E-04   -1.4580    
  11  Prefactor     .10000E-03    3.4161        .11270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.969        46.402        .56173E-04   -1.4279    
  13  Prefactor     23.183        19.996        .83207E-04   -1.4745    
  14  Prefactor     .10001E-03    552.42        .21018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.1721        10.144        .13234E-03   -1.5102    
  16  Prefactor     .10000E-03    51.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.065        13.704        .11081E-03   -1.4985    
  19  norm          2.9892        16.564        .23432E-03   -1.5362    
  20  norm          .10000E-03    2.0748        .88099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1116        14.483        .15062E-03   -1.5175    
  22  Prefactor     .10000E-03    29.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.9330        4.7350        .11749E-03   -1.5221    
  24  Prefactor     .10000E-03    46.165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .42667        1.9945        .13041E-02   -1.5577    
  26  norm          .10000E-03    8.7994        .25466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10138E-03    213.79        .53105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.3214        .11028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     27.381        29.173        .76562E-04   -1.4661    
  30  norm          .10000E-03    13.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    18.827        .22888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.4417        .11263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .71603        .26254        .25813E-03   -1.0326    
  34  Prefactor     .96693        .26702        .23810E-03   -.93840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60512e-09
Minuit parameter uncertainties:
  1  48.1747
  2  31.3946
  3  0.000424661
  4  8.32139
  5  12.3748
  6  3.11949e-06
  7  140.115
  8  3.11631e-06
  9  5.37867
  10  49.6653
  11  4.43943e-06
  12  46.435
  13  20.0022
  14  0.00529021
  15  10.1462
  16  6.57487e-05
  17  9.78947e-06
  18  13.7074
  19  14.0791
  20  5.19824e-07
  21  14.4906
  22  6.56687e-05
  23  4.73526
  24  0.000197584
  25  1.84488
  26  1.93228e-05
  27  0.0344388
  28  4.86955e-06
  29  29.1885
  30  2.91739e-06
  31  3.27517e-06
  32  8.3486e-06
  33  0.262998
  34  0.267381
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  2.989e+00  1.408e+01  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.669e-01  2.674e-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.160e-01  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 350.708 -49.273
Photon Flux Upper Limit: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/500106/likelihoodResults_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.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) = 3922.98300182
delta logL = 0.590620810462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3922.9585945
delta logL = 0.615028130909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94262       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2453       1.0000          .0000       5.0000    
     3 'Normalizat'    .67503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98593       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.

 FCN=   3922.959     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94084        19.065        .12961E-01    .49284E-03
   2  alpha         3.2460        3.9631        .19359        .55879E-04
   3  Normalizat    .67495        .48530E-01    .41956E-01    .56260E-05
   4  Prefactor     .98601        .49949E-01    .46091E-01   -.78045E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.940841
  alpha      = 3.246
  Normalizat = 0.674952
  Prefactor  = 0.986007
 **********
 **   18 **HESSE 
 **********

 FCN=   3922.959     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      279 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94084        46.810        .60896E-03   -1.5514    
   2  alpha         3.2460        3.7510        .94894E-02    .30302    
   3  Normalizat    .67495        .24180        .26480E-03   -1.0489    
   4  Prefactor     .98601        .22954        .23557E-03   -.93197    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08108e-07
Minuit parameter uncertainties:
  1  13.2829
  2  6.36086
  3  0.242182
  4  0.229768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500106': 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) = 3922.95859432
delta logL = 0.61502831294

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  9.408e-01  1.328e+01  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  3.246e+00  6.361e+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.860e-01  2.298e-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:  6.750e-01  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 3.25 +/- 6.36
Photon Flux (Free Index): 4.54e-08 +/- 1.25e-07
Energy Flux (Free Index): 1.13e-05 +/- 1.72e-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/500106/cmap_HighResolution_660009601_660268801_4FGL_J2322.8-4916_daily_bin1623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-04', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='6.15e-01', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-12-08 09:40:29.175551', photon_index_error2='6.36', photon_index2='3.25', ts='0.10', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.84e-08', energy_flux_error2='1.72e-05', EG='0.72', time_epoch_completed='1638985229.18', return_code='0', job_id='500106', GAL2='0.99', EG2='0.67', return_code2='102', photon_flux_error2='1.25e-07', ts2='1.37', photon_index='1.61' WHERE bin_id='1623' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:40:29 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 500106: <4FGL_J2322.8-4916_daily_bin1623> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1623> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 09:25:24 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:25:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:25:56 2021
Terminated at Wed Dec  8 09:40:30 2021
Results reported at Wed Dec  8 09:40:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1623 350.708 -49.2725 660009601 660268801 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 :                                   733.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            906 sec.

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

