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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1409
RA = 350.708, Dec = -49.2725
tmin = 604540801, tmax = 604800001
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='805531', job_status='RUN', time_executed='2021-09-29 14:16:38.698749', time_epoch_executed='1632950198.7' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805531

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805531/ft1_4FGL_J2322.8-4916_daily_bin1409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805531/ft2_4FGL_J2322.8-4916_daily_bin1409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805531/ft1_4FGL_J2322.8-4916_daily_bin1409.fits outfile=/scratch/kocevski/805531/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1409.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=604540801.0 tmax=604800001.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.70
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805531/ft1_filtered_4FGL_J2322.8-4916_daily_bin1409.fits" evtable="EVENTS" scfile=/scratch/kocevski/805531/ft2_4FGL_J2322.8-4916_daily_bin1409.fits sctable="SC_DATA" outfile=/scratch/kocevski/805531/ltcube_604540801_604800001_4FGL_J2322.8-4916_daily_bin1409.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/805531/ft2_4FGL_J2322.8-4916_daily_bin1409.fits
.....................!
real 12.22
user 11.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805531/ft1_filtered_4FGL_J2322.8-4916_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/805531/ft2_4FGL_J2322.8-4916_daily_bin1409.fits sctable="SC_DATA" expcube=/scratch/kocevski/805531/ltcube_604540801_604800001_4FGL_J2322.8-4916_daily_bin1409.fits outfile=/scratch/kocevski/805531/expmap_604540801_604800001_4FGL_J2322.8-4916_daily_bin1409.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/805531/ltcube_604540801_604800001_4FGL_J2322.8-4916_daily_bin1409.fits
.....................!
real 190.84
user 185.75
sys 4.68

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/805531/ft1_filtered_4FGL_J2322.8-4916_daily_bin1409.fits scfile=/scratch/kocevski/805531/ft2_4FGL_J2322.8-4916_daily_bin1409.fits outfile=/scratch/kocevski/805531/cmap_604540801_604800001_4FGL_J2322.8-4916_daily_bin1409.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805531/ft1_filtered_4FGL_J2322.8-4916_daily_bin1409.fits scfile=/scratch/kocevski/805531/ft2_4FGL_J2322.8-4916_daily_bin1409.fits outfile=/scratch/kocevski/805531/cmap_HighResolution_604540801_604800001_4FGL_J2322.8-4916_daily_bin1409.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/805531/ft1_filtered_4FGL_J2322.8-4916_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/805531/ft2_4FGL_J2322.8-4916_daily_bin1409.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805531/Model_4FGL_J2322.8-4916_daily_bin1409.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/805531/ft1_filtered_4FGL_J2322.8-4916_daily_bin1409.fits.....................!
real 38.47
user 37.20
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0116       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8059       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.020       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3365       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5683       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .61039E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    19.323       1.0000         .10000E-03   10000.    
    19 'norm      '    .94738       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6227       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.181       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.685       1.0000         .10000E-03   10000.    
    23 'norm      '    .10951E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.918       1.0000         .10000E-03   10000.    
    25 'norm      '    .80703       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.016       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.675       1.0000         .10000E-03   10000.    
    30 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.7997       1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.5864       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0111       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1119       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=   4922.775     FROM MIGRAD    STATUS=CONVERGED    953 CALLS     4895 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.692       -.13474E-06** at limit **
   2  Prefactor     .10000E-03    29.581       -.24285E-06** at limit **
   3  Prefactor     .10000E-03    57.242        .20110E-06** at limit **
   4  Prefactor     .10000E-03    8.3194       -.34537E-07** at limit **
   5  Prefactor     .10000E-03    5.9272       -.44722E-07** at limit **
   6  Prefactor     3.0111        11.509       -.54845E-06   -.46899E-04
   7  Prefactor     .10000E-03    110.39       -.80429E-06** at limit **
   8  norm          1.8056        4.9009        .43440E-06   -.80290E-03
   9  Prefactor     .10000E-03    3.5062        .96843E-07** at limit **
  10  Prefactor     21.026        55.010       -.44397E-06    .59208E-05
  11  Prefactor     .10000E-03    15.094        .88668E-05** at limit **
  12  Prefactor     .10000E-03    31.405       -.43418E-06** at limit **
  13  Prefactor     6.3365        10.821        .11299E-05    .26872E-03
  14  Prefactor     .10000E-03    27.323        .75938E-06** at limit **
  15  Prefactor     4.5677        6.5196        .33847E-07    .22038E-04
  16  Prefactor     .10000E-03    13.107       -.13776E-06** at limit **
  17  Prefactor     .10193E-03    34.856       -.78768E-05** at limit **
  18  norm          19.323        16.382       -.59947E-07    .27519E-04
  19  norm          .94559        17.399        .84063E-06    .26102E-04
  20  norm          3.6204        6.0175        .18071E-06    .29872E-03
  21  Prefactor     10.179        9.6746       -.22722E-07    .15170E-03
  22  Prefactor     28.669        42.074        .46138E-06    .15955E-03
  23  norm          .10000E-03    5.4654       -.84995E-06** at limit **
  24  Prefactor     19.922        23.454        .14691E-06    .15561E-03
  25  norm          .80790        1.5694       -.48322E-06   -.61778E-03
  26  norm          .10000E-03    3.1706       -.20805E-06** at limit **
  27  Prefactor     10.018        17.498       -.14886E-06   -.27183E-04
  28  Prefactor     .10000E-03    1.2051        .21340E-07** at limit **
  29  Prefactor     22.671        22.169       -.86618E-07    .15890E-04
  30  norm          .10000E-03    14.844        .67382E-06** at limit **
  31  Prefactor     5.8002        7.2453       -.69281E-06   -.39775E-03
  32  Prefactor     1.5855        3.5561        .34617E-06   -.11741E-02
  33  Normalizat    1.0110        .21728        .16930E-05    .41949E-03
  34  Prefactor     1.1120        .21851       -.58026E-06    .35499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01107
  Prefactor  = 0.0001
  norm       = 1.8056
  Prefactor  = 0.0001
  Prefactor  = 21.0258
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.33649
  Prefactor  = 0.0001
  Prefactor  = 4.56771
  Prefactor  = 0.0001
  Prefactor  = 0.000101929
  norm       = 19.3231
  norm       = 0.945593
  norm       = 3.6204
  Prefactor  = 10.1792
  Prefactor  = 28.6693
  norm       = 0.000100001
  Prefactor  = 19.9218
  norm       = 0.807902
  norm       = 0.0001
  Prefactor  = 10.0177
  Prefactor  = 0.0001
  Prefactor  = 22.6709
  norm       = 0.0001
  Prefactor  = 5.80019
  Prefactor  = 1.58546
  Normalizat = 1.01096
  Prefactor  = 1.11203
 **********
 **   18 **HESSE 
 **********

 FCN=   4922.775     FROM HESSE     STATUS=OK           742 CALLS     5637 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    57.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9840        .16681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0111        11.492        .23387E-03   -1.5361    
   7  Prefactor     .10000E-03    110.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8056        5.7583        .14657E-02   -1.5439    
   9  Prefactor     .10000E-03    3.6209        .25616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.026        55.046        .87362E-04   -1.4791    
  11  Prefactor     .10000E-03    15.548        .30376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3365        10.939        .79728E-03   -1.5204    
  14  Prefactor     .10000E-03    27.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5677        6.5139        .18834E-03   -1.5280    
  16  Prefactor     .10000E-03    13.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10193E-03    27.883        .80962E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.323        16.386        .91114E-04   -1.4829    
  19  norm          .94559        17.252        .51914E-03   -1.5513    
  20  norm          3.6204        5.7113        .20177E-03   -1.5327    
  21  Prefactor     10.179        9.6223        .12558E-03   -1.5070    
  22  Prefactor     28.669        40.079        .74804E-04   -1.4637    
  23  norm          .10000E-03    10.204        .28251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.922        23.295        .89745E-04   -1.4815    
  25  norm          .80790        1.4763        .10089E-03   -1.5528    
  26  norm          .10000E-03    3.2011        .12190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.018        17.602        .63306E-03   -1.5075    
  28  Prefactor     .10000E-03    1.2082        .75155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     22.671        22.184        .84118E-04   -1.4755    
  30  norm          .10000E-03    14.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.8002        7.2892        .16677E-03   -1.5226    
  32  Prefactor     1.5855        6.0997        .15607E-02   -1.5456    
  33  Normalizat    1.0110        .26795        .25080E-03   -.92664    
  34  Prefactor     1.1120        .26722        .25549E-03   -.89083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37642e-09
Minuit parameter uncertainties:
  1  9.34991e-06
  2  0.000117451
  3  0.000320163
  4  7.20726e-06
  5  8.48285e-06
  6  11.5001
  7  0.00033997
  8  5.76005
  9  2.12573e-06
  10  55.1793
  11  0.000264415
  12  0.000174343
  13  10.9426
  14  0.000111728
  15  6.51488
  16  1.56717e-05
  17  0.0146743
  18  16.3897
  19  8.08015
  20  5.71219
  21  9.62376
  22  40.1164
  23  0.000158193
  24  23.3054
  25  1.47642
  26  2.63652e-05
  27  17.6114
  28  2.5881e-06
  29  22.1924
  30  6.31414e-05
  31  7.29031
  32  6.10209
  33  0.268305
  34  0.26754
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.112e+00  2.675e-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.011e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/805531/likelihoodResults_604540801_604800001_4FGL_J2322.8-4916_daily_bin1409.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) = 4922.70138644
delta logL = 0.0733287010353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4922.6954005
delta logL = 0.0793146416127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4334       1.0000         .10000E-03   10000.    
     2 'alpha     '    .72064       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1136       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=   4922.695     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      222 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4324        4.0258        .90171E-02    .51011E-03
   2  alpha         .72005        1.2991        .50000       -.34268E-04
   3  Normalizat    1.0085        .20104        .46274E-01    .85278E-05
   4  Prefactor     1.1136        .21463        .57736E-01    .92813E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43239
  alpha      = 0.720049
  Normalizat = 1.00853
  Prefactor  = 1.11359
 **********
 **   18 **HESSE 
 **********

 FCN=   4922.695     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4324        4.4486        .22954E-03   -1.5469    
   2  alpha         .72005        1.2943        .56875E-01   -.79231    
   3  Normalizat    1.0085        .24400        .25106E-03   -.92745    
   4  Prefactor     1.1136        .26042        .25532E-03   -.89033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38787e-08
Minuit parameter uncertainties:
  1  4.44962
  2  1.45539
  3  0.244274
  4  0.260715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805531': 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) = 4922.69540043
delta logL = 0.0793147155364

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.432e+00  4.450e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  7.200e-01  1.455e+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:  1.114e+00  2.607e-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.009e+00  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/805531/cmap_HighResolution_604540801_604800001_4FGL_J2322.8-4916_daily_bin1409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.81e-05', job_status='DONE', photon_flux_upper_limit='4.02e-08', time_completed='2021-09-29 14:30:40.523605', job_id='805531', GAL2='1.11', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632951040.52', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='7.93e-02', ts2='0.17', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1409' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:30:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 805531: <4FGL_J2322.8-4916_daily_bin1409> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1409> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:15:57 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:15:59 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:59 2021
Terminated at Wed Sep 29 14:30:41 2021
Results reported at Wed Sep 29 14:30:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1409 350.708 -49.2725 604540801 604800001 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 :                                   826.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            884 sec.

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

