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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin731
RA = 350.708, Dec = -49.2725
tmin = 428803201, tmax = 429062401
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='800803', job_status='RUN', time_executed='2021-09-29 14:07:42.884996', time_epoch_executed='1632949662.89' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/800803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/800803/ft1_4FGL_J2322.8-4916_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/800803/ft2_4FGL_J2322.8-4916_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/800803/ft1_4FGL_J2322.8-4916_daily_bin731.fits outfile=/scratch/kocevski/800803/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin731.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.55
user 6.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/800803/ft2_4FGL_J2322.8-4916_daily_bin731.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/800803/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/800803/ft1_filtered_4FGL_J2322.8-4916_daily_bin731.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/800803/ft1_filtered_4FGL_J2322.8-4916_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/800803/ft2_4FGL_J2322.8-4916_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/800803/ltcube_428803201_429062401_4FGL_J2322.8-4916_daily_bin731.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/800803/ft2_4FGL_J2322.8-4916_daily_bin731.fits
.....................!
real 11.81
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/800803/ft1_filtered_4FGL_J2322.8-4916_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/800803/ft2_4FGL_J2322.8-4916_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/800803/ltcube_428803201_429062401_4FGL_J2322.8-4916_daily_bin731.fits outfile=/scratch/kocevski/800803/expmap_428803201_429062401_4FGL_J2322.8-4916_daily_bin731.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/800803/ltcube_428803201_429062401_4FGL_J2322.8-4916_daily_bin731.fits
.....................!
real 193.90
user 186.72
sys 6.59

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/800803/ft1_filtered_4FGL_J2322.8-4916_daily_bin731.fits scfile=/scratch/kocevski/800803/ft2_4FGL_J2322.8-4916_daily_bin731.fits outfile=/scratch/kocevski/800803/cmap_428803201_429062401_4FGL_J2322.8-4916_daily_bin731.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.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/800803/ft1_filtered_4FGL_J2322.8-4916_daily_bin731.fits scfile=/scratch/kocevski/800803/ft2_4FGL_J2322.8-4916_daily_bin731.fits outfile=/scratch/kocevski/800803/cmap_HighResolution_428803201_429062401_4FGL_J2322.8-4916_daily_bin731.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/800803/ft1_filtered_4FGL_J2322.8-4916_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/800803/ft2_4FGL_J2322.8-4916_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/800803/Model_4FGL_J2322.8-4916_daily_bin731.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/800803/ft1_filtered_4FGL_J2322.8-4916_daily_bin731.fits......................!
real 31.95
user 29.15
sys 2.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.333       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.639       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.667       1.0000         .10000E-03   10000.    
    12 'Prefactor '    96.097       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.200       1.0000         .10000E-03   10000.    
    18 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2353       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5199       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .97093E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.2150       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.9319       1.0000         .10000E-03   10000.    
    25 'norm      '    8.9053       1.0000         .10000E-03   10000.    
    26 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    33.122       1.0000         .10000E-03   10000.    
    30 'norm      '    .10365E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.3077       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .81830       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .86224       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=   3290.853     FROM MIGRAD    STATUS=CONVERGED    912 CALLS     4783 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.396        54.336        .60784E-05    .16526E-03
   2  Prefactor     .10000E-03    6.8083       -.23506E-06** at limit **
   3  Prefactor     18.027        29.423        .20921E-07   -.10367E-04
   4  Prefactor     .10000E-03    4.7080       -.12940E-07** at limit **
   5  Prefactor     3.5140        4.0185       -.22210E-07   -.17343E-05
   6  Prefactor     .10000E-03    7.3062        .29061E-06** at limit **
   7  Prefactor     .10000E-03    62.433        .12234E-05** at limit **
   8  norm          11.640        12.526        .31617E-07    .67840E-05
   9  Prefactor     .10000E-03    1.6094       -.18327E-07** at limit **
  10  Prefactor     .10000E-03    52.391       -.37711E-05** at limit **
  11  Prefactor     14.670        11.385        .22094E-06    .10956E-04
  12  Prefactor     96.082        58.282       -.89514E-06   -.50814E-04
  13  Prefactor     .10000E-03    10.105       -.74195E-06** at limit **
  14  Prefactor     .10000E-03    61.290        .76666E-06** at limit **
  15  Prefactor     .10000E-03    11.118        .91843E-07** at limit **
  16  Prefactor     .10000E-03    63.729        .14656E-05** at limit **
  17  Prefactor     10.190        26.280       -.54735E-06   -.26586E-04
  18  norm          .10000E-03    14.214        .20245E-06** at limit **
  19  norm          .10000E-03    3.4135        .18005E-07** at limit **
  20  norm          3.2454        7.2365       -.69392E-07    .20640E-03
  21  Prefactor     1.5128        15.285        .99727E-05    .11655E-03
  22  Prefactor     .10212E-03    41.486       -.65181E-05** at limit **
  23  norm          2.2010        6.8246        .27616E-06    .67172E-03
  24  Prefactor     5.9739        39.980       -.13227E-04   -.23440E-04
  25  norm          8.9056        2.6369        .23438E-07   -.16549E-03
  26  norm          .10000E-03    4.3221       -.17062E-06** at limit **
  27  Prefactor     .10000E-03    93.657       -.34241E-05** at limit **
  28  Prefactor     .10000E-03    1.3475        .25779E-07** at limit **
  29  Prefactor     33.130        24.844        .29161E-06   -.10740E-05
  30  norm          .10000E-03    66.914        .30370E-05** at limit **
  31  Prefactor     .10000E-03    2.3118       -.24643E-07** at limit **
  32  Prefactor     1.3066        3.9451        .10656E-05    .73242E-04
  33  Normalizat    .81819        .22981       -.71253E-06    .23625E-03
  34  Prefactor     .86227        .23394        .70039E-06    .13776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.3961
  Prefactor  = 0.0001
  Prefactor  = 18.0273
  Prefactor  = 0.0001
  Prefactor  = 3.514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.6399
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 14.67
  Prefactor  = 96.0816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1895
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.24538
  Prefactor  = 1.51279
  Prefactor  = 0.00010212
  norm       = 2.20098
  Prefactor  = 5.97394
  norm       = 8.9056
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.1302
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.30665
  Normalizat = 0.818192
  Prefactor  = 0.862269
 **********
 **   18 **HESSE 
 **********

 FCN=   3290.853     FROM HESSE     STATUS=OK           724 CALLS     5507 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.396        54.893        .33710E-03   -1.4517    
   2  Prefactor     .10000E-03    6.8125        .14621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.027        29.432        .94325E-04   -1.4859    
   4  Prefactor     .10000E-03    4.7174        .12156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5140        4.0186        .11981E-03   -1.5333    
   6  Prefactor     .10000E-03    7.4098        .15139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    62.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.640        12.539        .11743E-03   -1.5025    
   9  Prefactor     .10000E-03    1.6112        .71068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    52.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.670        11.382        .10458E-03   -1.4942    
  12  Prefactor     96.082        58.388        .41002E-04   -1.3744    
  13  Prefactor     .10000E-03    10.106        .17791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    61.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    63.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.190        26.305        .12546E-03   -1.5069    
  18  norm          .10000E-03    14.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.4138        .10351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2454        7.4232        .16064E-03   -1.5348    
  21  Prefactor     1.5128        15.673        .30012E-03   -1.5462    
  22  Prefactor     .10212E-03    156.84        .62160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.2010        6.6225        .17086E-03   -1.5411    
  24  Prefactor     5.9739        40.569        .16487E-03   -1.5219    
  25  norm          8.9056        2.6367        .44680E-04   -1.5111    
  26  norm          .10000E-03    4.4043        .23182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    97.052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.3519        .64997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     33.130        24.829        .69626E-04   -1.4556    
  30  norm          .10000E-03    68.883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.3284        .85155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.3066        3.9022        .18676E-03   -1.5479    
  33  Normalizat    .81819        .27002        .24028E-03   -.99397    
  34  Prefactor     .86227        .27583        .25286E-03   -.97472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37668e-08
Minuit parameter uncertainties:
  1  54.9718
  2  1.90222e-05
  3  29.4557
  4  3.58493e-06
  5  4.01894
  6  2.24808e-05
  7  0.000229551
  8  12.5414
  9  4.53656e-07
  10  0.000592735
  11  11.3842
  12  58.4234
  13  7.01425e-06
  14  0.000168753
  15  3.23415e-05
  16  0.00032815
  17  26.335
  18  1.48256e-05
  19  1.29554e-07
  20  7.4253
  21  9.74149
  22  0.0365649
  23  6.62475
  24  31.1659
  25  2.63675
  26  2.32173e-05
  27  2.42884e-05
  28  8.64824e-07
  29  24.8363
  30  0.000367238
  31  1.26633e-06
  32  3.90296
  33  0.270467
  34  0.276272
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  8.623e-01  2.763e-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:  8.182e-01  2.705e-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.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/800803/likelihoodResults_428803201_429062401_4FGL_J2322.8-4916_daily_bin731.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) = 3290.85381649
delta logL = -0.00116617374033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3290.85265035
delta logL = -2.89014678856e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6055       1.0000          .0000       5.0000    
     3 'Normalizat'    .81818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3290.853     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      222 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5757        .10372E-02** at limit **
   2  alpha         1.3532        3.9600        .18043E-01   -.25519E-07
   3  Normalizat    .81819        .25142        .24028E-03    .72627E-05
   4  Prefactor     .86227        .27262        .25286E-03    .69913E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.35322
  Normalizat = 0.818189
  Prefactor  = 0.862271
 **********
 **   18 **HESSE 
 **********

 FCN=   3290.853     FROM HESSE     STATUS=OK            23 CALLS      245 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5522        .20743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3532        3.5225        .72172E-03   -.47654    
   3  Normalizat    .81819        .25172        .96112E-05   -.99397    
   4  Prefactor     .86227        .27294        .10114E-04   -.97472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81847e-11
Minuit parameter uncertainties:
  1  3.25144e-05
  2  235.409
  3  0.252079
  4  0.27337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/800803': 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) = 3290.85264975
delta logL = 5.70601514482e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  8.623e-01  2.734e-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:  8.182e-01  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/800803/cmap_HighResolution_428803201_429062401_4FGL_J2322.8-4916_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-05', job_status='DONE', photon_flux_upper_limit='3.12e-08', time_completed='2021-09-29 14:18:55.993704', job_id='800803', GAL2='0.86', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632950335.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='731' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:18:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 800803: <4FGL_J2322.8-4916_daily_bin731> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin731> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:05:31 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:05:33 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:05:33 2021
Terminated at Wed Sep 29 14:18:56 2021
Results reported at Wed Sep 29 14:18:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin731 350.708 -49.2725 428803201 429062401 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 :                                   670.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

