/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 41 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1092
RA = 350.708, Dec = -49.2725
tmin = 522374401, tmax = 522633601
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='805064', job_status='RUN', time_executed='2021-09-29 14:16:13.662626', time_epoch_executed='1632950173.66' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1092'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805064

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805064/ft1_4FGL_J2322.8-4916_daily_bin1092.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805064/ft2_4FGL_J2322.8-4916_daily_bin1092.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805064/ft1_4FGL_J2322.8-4916_daily_bin1092.fits outfile=/scratch/kocevski/805064/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1092.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=522374401.0 tmax=522633601.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.71
user 3.47
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805064/ft1_filtered_4FGL_J2322.8-4916_daily_bin1092.fits" evtable="EVENTS" scfile=/scratch/kocevski/805064/ft2_4FGL_J2322.8-4916_daily_bin1092.fits sctable="SC_DATA" outfile=/scratch/kocevski/805064/ltcube_522374401_522633601_4FGL_J2322.8-4916_daily_bin1092.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/805064/ft2_4FGL_J2322.8-4916_daily_bin1092.fits
.....................!
real 11.97
user 11.61
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805064/ft1_filtered_4FGL_J2322.8-4916_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/805064/ft2_4FGL_J2322.8-4916_daily_bin1092.fits sctable="SC_DATA" expcube=/scratch/kocevski/805064/ltcube_522374401_522633601_4FGL_J2322.8-4916_daily_bin1092.fits outfile=/scratch/kocevski/805064/expmap_522374401_522633601_4FGL_J2322.8-4916_daily_bin1092.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/805064/ltcube_522374401_522633601_4FGL_J2322.8-4916_daily_bin1092.fits
.....................!
real 189.66
user 184.84
sys 4.40

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/805064/ft1_filtered_4FGL_J2322.8-4916_daily_bin1092.fits scfile=/scratch/kocevski/805064/ft2_4FGL_J2322.8-4916_daily_bin1092.fits outfile=/scratch/kocevski/805064/cmap_522374401_522633601_4FGL_J2322.8-4916_daily_bin1092.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805064/ft1_filtered_4FGL_J2322.8-4916_daily_bin1092.fits scfile=/scratch/kocevski/805064/ft2_4FGL_J2322.8-4916_daily_bin1092.fits outfile=/scratch/kocevski/805064/cmap_HighResolution_522374401_522633601_4FGL_J2322.8-4916_daily_bin1092.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/805064/ft1_filtered_4FGL_J2322.8-4916_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/805064/ft2_4FGL_J2322.8-4916_daily_bin1092.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805064/Model_4FGL_J2322.8-4916_daily_bin1092.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/805064/ft1_filtered_4FGL_J2322.8-4916_daily_bin1092.fits.....................!
real 40.51
user 39.11
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0828       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.524       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0955       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1449       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.627       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.746       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .16785E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4134       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.889       1.0000         .10000E-03   10000.    
    23 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11669E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    1.6990       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.4820       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.9785       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.7454       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .44037E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1778       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .87953       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=   4989.633     FROM MIGRAD    STATUS=CONVERGED    946 CALLS     4914 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.853        .23392E-05** at limit **
   2  Prefactor     .10000E-03    138.50       -.13805E-05** at limit **
   3  Prefactor     .10000E-03    36.488        .10784E-05** at limit **
   4  Prefactor     .10000E-03    2.6775       -.31295E-07** at limit **
   5  Prefactor     9.0829        8.1074        .10238E-06   -.51130E-04
   6  Prefactor     .10000E-03    5.7855        .45731E-07** at limit **
   7  Prefactor     .10001E-03    48.118       -.27811E-05** at limit **
   8  norm          10.523        8.7088        .43622E-07    .22848E-04
   9  Prefactor     4.0960        3.8634        .10315E-06   -.63381E-04
  10  Prefactor     .10000E-03    23.858       -.72518E-06** at limit **
  11  Prefactor     8.1455        7.4526        .14561E-06    .14198E-04
  12  Prefactor     22.657        43.047        .41956E-05    .21025E-03
  13  Prefactor     14.741        17.728       -.83413E-06   -.63308E-04
  14  Prefactor     .10000E-03    47.100       -.26521E-05** at limit **
  15  Prefactor     1.8894        7.1766        .14378E-05   -.54023E-04
  16  Prefactor     .10000E-03    11.963       -.10931E-07** at limit **
  17  Prefactor     .10000E-03    6.1107       -.38902E-07** at limit **
  18  norm          .10000E-03    4.4207        .80642E-08** at limit **
  19  norm          .10037E-03    6.3008        .10642E-05** at limit **
  20  norm          .10000E-03    4.8207        .48230E-06** at limit **
  21  Prefactor     5.4153        5.2263        .14558E-06   -.28419E-03
  22  Prefactor     16.927        39.335        .42579E-05    .17710E-03
  23  norm          .10000E-03    3.4438        .70864E-06** at limit **
  24  Prefactor     .10000E-03    7.3703        .70209E-07** at limit **
  25  norm          .10037E-03    .60034        .30845E-06** at limit **
  26  norm          1.6982        3.7995        .42939E-06   -.11862E-03
  27  Prefactor     4.4834        15.013        .77348E-05   -.16126E-03
  28  Prefactor     5.9802        4.8170       -.27009E-07   -.40774E-03
  29  Prefactor     .10000E-03    22.596       -.10304E-05** at limit **
  30  norm          .10000E-03    70.484        .20640E-05** at limit **
  31  Prefactor     1.7462        6.7470        .13440E-05   -.20465E-03
  32  Prefactor     .10000E-03    3.0407        .34588E-06** at limit **
  33  Normalizat    1.1774        .22065       -.34316E-05   -.15895E-03
  34  Prefactor     .87991        .21257        .13202E-05   -.33262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.08286
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 10.5225
  Prefactor  = 4.09603
  Prefactor  = 0.0001
  Prefactor  = 8.14554
  Prefactor  = 22.6569
  Prefactor  = 14.7412
  Prefactor  = 0.000100005
  Prefactor  = 1.88938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100375
  norm       = 0.0001
  Prefactor  = 5.41531
  Prefactor  = 16.9267
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100368
  norm       = 1.69822
  Prefactor  = 4.48341
  Prefactor  = 5.9802
  Prefactor  = 0.000100001
  norm       = 0.000100003
  Prefactor  = 1.74622
  Prefactor  = 0.000100005
  Normalizat = 1.1774
  Prefactor  = 0.879908
 **********
 **   18 **HESSE 
 **********

 FCN=   4989.633     FROM HESSE     STATUS=OK           740 CALLS     5654 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    144.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6786        .11288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0829        8.1057        .13299E-03   -1.5105    
   6  Prefactor     .10000E-03    5.8147        .16593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    48.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.523        8.7182        .12351E-03   -1.5059    
   9  Prefactor     4.0960        3.8602        .12945E-03   -1.5303    
  10  Prefactor     .10000E-03    23.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.1455        7.4481        .14048E-03   -1.5137    
  12  Prefactor     22.657        43.930        .84207E-04   -1.4756    
  13  Prefactor     14.741        17.792        .10430E-03   -1.4940    
  14  Prefactor     .10000E-03    47.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8894        7.1848        .30268E-03   -1.5433    
  16  Prefactor     .10000E-03    11.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1208        .17052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4238        .14505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10037E-03    6.9403        .56820E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.8428        .15116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4153        5.2341        .15079E-03   -1.5243    
  22  Prefactor     16.927        39.773        .97459E-04   -1.4885    
  23  norm          .10000E-03    3.4460        .12719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.3950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10037E-03    1.5199        .18166E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.6982        3.7644        .19373E-03   -1.5447    
  27  Prefactor     4.4834        15.319        .95093E-03   -1.5284    
  28  Prefactor     5.9802        4.7637        .12507E-03   -1.5219    
  29  Prefactor     .10000E-03    22.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    71.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.7462        6.6419        .31746E-03   -1.5444    
  32  Prefactor     .10000E-03    32.225        .23118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1774        .25762        .23133E-03   -.87304    
  34  Prefactor     .87991        .25412        .27425E-03   -.96847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84576e-09
Minuit parameter uncertainties:
  1  0.00064697
  2  3.95397e-05
  3  0.000362293
  4  7.31633e-07
  5  8.10667
  6  1.69246e-05
  7  0.000989159
  8  8.71925
  9  3.86039
  10  0.000170679
  11  7.44892
  12  43.9926
  13  17.7981
  14  0.000938801
  15  7.18812
  16  1.01019e-05
  17  8.43581e-06
  18  5.93059e-07
  19  0.00322655
  20  2.48146e-05
  21  5.23458
  22  39.8353
  23  2.76951e-05
  24  3.25275e-07
  25  0.00149519
  26  3.76488
  27  15.3319
  28  4.76402
  29  0.000223729
  30  0.000887942
  31  6.64469
  32  0.000783145
  33  0.257902
  34  0.254462
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.004e-04  3.227e-03  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:  8.799e-01  2.545e-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.177e+00  2.579e-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: 3.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805064/likelihoodResults_522374401_522633601_4FGL_J2322.8-4916_daily_bin1092.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) = 4989.63296277
delta logL = -6.84627202645e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4989.0973086
delta logL = 0.535585715104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77459       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0274       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87813       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=   4989.097     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      273 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77976        24.180        .12345E-01    .30935E-02
   2  alpha         3.0259        3.9935        .24240        .19036E-03
   3  Normalizat    1.1644        .48388E-01    .52526E-01    .12590E-04
   4  Prefactor     .87799        .49468E-01    .44726E-01   -.53724E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.779761
  alpha      = 3.0259
  Normalizat = 1.1644
  Prefactor  = 0.877987
 **********
 **   18 **HESSE 
 **********

 FCN=   4989.097     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      308 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77976        62.416        .76547E-03   -1.5531    
   2  alpha         3.0259        2.8289        .12488E-01    .21194    
   3  Normalizat    1.1644        .25210        .23224E-03   -.87710    
   4  Prefactor     .87799        .25422        .27414E-03   -.96915    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.96736e-09
Minuit parameter uncertainties:
  1  13.967
  2  8.06732
  3  0.252366
  4  0.254567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805064': 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) = 4989.09730157
delta logL = 0.535592737929

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  7.798e-01  1.397e+01  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  3.026e+00  8.067e+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:  8.780e-01  2.546e-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.164e+00  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 3.03 +/- 8.07
Photon Flux (Free Index): 2.13e-08 +/- 6.06e-08
Energy Flux (Free Index): 6.12e-06 +/- 2.19e-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/805064/cmap_HighResolution_522374401_522633601_4FGL_J2322.8-4916_daily_bin1092.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-05', comment='SUCCESS', energy_flux2='6.12e-06', dlogl='5.36e-01', photon_flux2='2.13e-08', job_status='DONE', time_completed='2021-09-29 14:30:53.746986', photon_index_error2='8.07', photon_index2='3.03', ts='-0.00', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='3.00e-08', energy_flux_error2='2.19e-05', EG='1.18', time_epoch_completed='1632951053.75', return_code='0', job_id='805064', GAL2='0.88', EG2='1.16', return_code2='102', photon_flux_error2='6.06e-08', ts2='1.07', photon_index='1.61' WHERE bin_id='1092' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:30:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 805064: <4FGL_J2322.8-4916_daily_bin1092> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1092 350.708 -49.2725 522374401 522633601 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 :                                   843.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

