/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7430
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1635
RA = 350.708, Dec = -49.2725
tmin = 663120001, tmax = 663379201
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='887412', job_status='RUN', time_executed='2022-01-09 03:17:33.060535', time_epoch_executed='1641727053.06' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887412/ft1_4FGL_J2322.8-4916_daily_bin1635.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887412/ft2_4FGL_J2322.8-4916_daily_bin1635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887412/ft1_4FGL_J2322.8-4916_daily_bin1635.fits outfile=/scratch/kocevski/887412/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1635.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=663120001.0 tmax=663379201.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 2.81
user 2.60
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887412/ft1_filtered_4FGL_J2322.8-4916_daily_bin1635.fits" evtable="EVENTS" scfile=/scratch/kocevski/887412/ft2_4FGL_J2322.8-4916_daily_bin1635.fits sctable="SC_DATA" outfile=/scratch/kocevski/887412/ltcube_663120001_663379201_4FGL_J2322.8-4916_daily_bin1635.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/887412/ft2_4FGL_J2322.8-4916_daily_bin1635.fits
.....................!
real 17.09
user 15.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887412/ft1_filtered_4FGL_J2322.8-4916_daily_bin1635.fits evtable="EVENTS" scfile=/scratch/kocevski/887412/ft2_4FGL_J2322.8-4916_daily_bin1635.fits sctable="SC_DATA" expcube=/scratch/kocevski/887412/ltcube_663120001_663379201_4FGL_J2322.8-4916_daily_bin1635.fits outfile=/scratch/kocevski/887412/expmap_663120001_663379201_4FGL_J2322.8-4916_daily_bin1635.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/887412/ltcube_663120001_663379201_4FGL_J2322.8-4916_daily_bin1635.fits
.....................!
real 191.98
user 186.86
sys 4.62

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/887412/ft1_filtered_4FGL_J2322.8-4916_daily_bin1635.fits scfile=/scratch/kocevski/887412/ft2_4FGL_J2322.8-4916_daily_bin1635.fits outfile=/scratch/kocevski/887412/cmap_663120001_663379201_4FGL_J2322.8-4916_daily_bin1635.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.708 yref=-49.2725 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887412/ft1_filtered_4FGL_J2322.8-4916_daily_bin1635.fits scfile=/scratch/kocevski/887412/ft2_4FGL_J2322.8-4916_daily_bin1635.fits outfile=/scratch/kocevski/887412/cmap_HighResolution_663120001_663379201_4FGL_J2322.8-4916_daily_bin1635.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.708 yref=-49.2725 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887412/ft1_filtered_4FGL_J2322.8-4916_daily_bin1635.fits evtable="EVENTS" scfile=/scratch/kocevski/887412/ft2_4FGL_J2322.8-4916_daily_bin1635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887412/Model_4FGL_J2322.8-4916_daily_bin1635.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/887412/ft1_filtered_4FGL_J2322.8-4916_daily_bin1635.fits.....................!
real 45.38
user 44.06
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    23.515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0485       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8699       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18798E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5915       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    55.686       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.059       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5176       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7319       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.445       1.0000         .10000E-03   10000.    
    23 'norm      '    2.0326       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.1910       1.0000         .10000E-03   10000.    
    26 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .14022E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.3712       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .75500       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=   6129.531     FROM MIGRAD    STATUS=CONVERGED    930 CALLS     4806 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.652       -.16639E-04** at limit **
   2  Prefactor     23.532        18.615       -.58139E-06   -.72487E-04
   3  Prefactor     .10000E-03    14.459       -.53240E-07** at limit **
   4  Prefactor     6.0488        7.8540       -.20217E-06   -.12653E-03
   5  Prefactor     8.8701        7.1294       -.12437E-06   -.13066E-03
   6  Prefactor     .10096E-03    4.6575        .11774E-05** at limit **
   7  Prefactor     .10000E-03    43.686        .66218E-05** at limit **
   8  norm          .10000E-03    3.0159        .14129E-07** at limit **
   9  Prefactor     2.5916        4.4075       -.64794E-06   -.60728E-03
  10  Prefactor     .10000E-03    63.086       -.26512E-05** at limit **
  11  Prefactor     1.7702        4.8885        .17212E-06   -.81355E-03
  12  Prefactor     55.694        38.178        .41188E-05    .24347E-05
  13  Prefactor     11.051        15.213       -.14137E-05   -.49943E-04
  14  Prefactor     .10000E-03    118.10       -.43892E-05** at limit **
  15  Prefactor     3.5173        7.4994       -.48305E-06   -.28141E-03
  16  Prefactor     .10000E-03    10.415       -.27443E-08** at limit **
  17  Prefactor     9.7303        16.080       -.50767E-06   -.50585E-04
  18  norm          .10000E-03    6.4150       -.10350E-05** at limit **
  19  norm          .10000E-03    2.0833        .22178E-07** at limit **
  20  norm          .10000E-03    1.6891        .76087E-07** at limit **
  21  Prefactor     .10000E-03    3.9201       -.39078E-07** at limit **
  22  Prefactor     17.399        29.059       -.10021E-04   -.35192E-04
  23  norm          2.0373        3.2912        .12201E-05   -.14233E-03
  24  Prefactor     .10000E-03    6.7468        .23101E-05** at limit **
  25  norm          1.1909        .95055       -.12897E-07   -.23967E-03
  26  norm          .10000E-03    2.2858        .18680E-06** at limit **
  27  Prefactor     .10000E-03    9.1581        .72887E-06** at limit **
  28  Prefactor     .10000E-03    1.3510       -.28657E-07** at limit **
  29  Prefactor     .10000E-03    10.433       -.41398E-06** at limit **
  30  norm          .10000E-03    7.3200       -.15962E-05** at limit **
  31  Prefactor     .10000E-03    1.6146        .31553E-07** at limit **
  32  Prefactor     .10000E-03    3.0473        .34366E-07** at limit **
  33  Normalizat    1.3712        .18847        .30479E-06   -.16455E-03
  34  Prefactor     .75513        .19173        .36595E-06   -.10510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.5321
  Prefactor  = 0.0001
  Prefactor  = 6.0488
  Prefactor  = 8.87011
  Prefactor  = 0.000100956
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.59164
  Prefactor  = 0.0001
  Prefactor  = 1.77025
  Prefactor  = 55.6945
  Prefactor  = 11.0508
  Prefactor  = 0.0001
  Prefactor  = 3.51726
  Prefactor  = 0.0001
  Prefactor  = 9.73029
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.399
  norm       = 2.03733
  Prefactor  = 0.0001
  norm       = 1.19088
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37116
  Prefactor  = 0.75513
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.531     FROM HESSE     STATUS=OK           728 CALLS     5534 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.532        18.571        .82603E-04   -1.4737    
   3  Prefactor     .10000E-03    14.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0488        7.8601        .16326E-03   -1.5216    
   5  Prefactor     8.8701        7.1210        .13458E-03   -1.5112    
   6  Prefactor     .10096E-03    72.987        .32109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.0216        .13278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5916        4.4304        .20606E-03   -1.5386    
  10  Prefactor     .10000E-03    63.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7702        4.8696        .27328E-03   -1.5442    
  12  Prefactor     55.694        38.384        .53755E-04   -1.4214    
  13  Prefactor     11.051        15.189        .12047E-03   -1.5043    
  14  Prefactor     .10000E-03    118.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5173        7.5094        .21555E-03   -1.5333    
  16  Prefactor     .10000E-03    10.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.7303        16.051        .12845E-03   -1.5084    
  18  norm          .10000E-03    6.4276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.0848        .11034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6904        .99361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.9871        .15126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.399        28.734        .95892E-04   -1.4873    
  23  norm          2.0373        3.2204        .15934E-03   -1.5422    
  24  Prefactor     .10000E-03    6.7663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1909        .95258        .64017E-04   -1.5490    
  26  norm          .10000E-03    2.3281        .11552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.1921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.3660        .88810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    10.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    7.3197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.6237        .97125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.1813        .26637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.3712        .23130        .21917E-03   -.81467    
  34  Prefactor     .75513        .23330        .29962E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35357e-08
Minuit parameter uncertainties:
  1  1.1497e-05
  2  18.5755
  3  5.1677e-06
  4  7.86145
  5  7.12168
  6  0.0167298
  7  1.90637e-05
  8  2.6577e-06
  9  4.43096
  10  5.38032e-05
  11  4.87065
  12  38.4006
  13  15.1939
  14  3.29429e-05
  15  7.51143
  16  5.31727e-06
  17  16.058
  18  1.89208e-06
  19  4.46989e-07
  20  5.12827e-06
  21  8.17583e-07
  22  28.7567
  23  3.22069
  24  1.75513e-06
  25  0.95259
  26  2.20129e-05
  27  7.27956e-06
  28  7.62436e-07
  29  1.23737e-06
  30  8.02311e-07
  31  9.82514e-07
  32  2.69595e-06
  33  0.231479
  34  0.233608
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  4.470e-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:  7.551e-01  2.336e-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.371e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/887412/likelihoodResults_663120001_663379201_4FGL_J2322.8-4916_daily_bin1635.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) = 6128.65266673
delta logL = 0.878754910186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6128.65202982
delta logL = 0.879391823833

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10481E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82213       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=   6128.652     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      266 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10483E-01    .30077        .14087E-02   -.10068E-01
   2  alpha         5.0000        3.5714        .46267    ** at limit **
   3  Normalizat    1.2720        .96837E-01    .51078E-01   -.16917E-03
   4  Prefactor     .82208        .95385E-01    .65136E-01   -.61121E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0104827
  alpha      = 5
  Normalizat = 1.27198
  Prefactor  = 0.822081
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.652     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10483E-01    .88894E-02    .63084E-05   -1.5688    
   2  alpha         5.0000        3.0816        .44600E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2720        .23245        .22583E-03   -.84407    
   4  Prefactor     .82208        .23831        .28813E-03   -.98919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62496e-10
Minuit parameter uncertainties:
  1  0.00888941
  2  2.84529e-07
  3  0.232637
  4  0.23861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887412': 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) = 6128.65202966
delta logL = 0.879391982549

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.048e-02  8.889e-03  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  5.000e+00  2.845e-07  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.221e-01  2.386e-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.272e+00  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.17e-08 +/- 6.06e-08
Energy Flux (Free Index): 1.05e-05 +/- 8.93e-06

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/887412/cmap_HighResolution_663120001_663379201_4FGL_J2322.8-4916_daily_bin1635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-05', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='8.79e-01', photon_flux2='7.17e-08', job_status='DONE', time_completed='2022-01-09 03:33:36.666572', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.82e-08', energy_flux_error2='8.93e-06', EG='1.37', time_epoch_completed='1641728016.67', return_code='0', job_id='887412', GAL2='0.82', EG2='1.27', return_code2='0', photon_flux_error2='6.06e-08', ts2='1.89', photon_index='1.61' WHERE bin_id='1635' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  9 03:33:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 887412: <4FGL_J2322.8-4916_daily_bin1635> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1635> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  9 03:15:27 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  9 03:17:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  9 03:17:17 2022
Terminated at Sun Jan  9 03:33:37 2022
Results reported at Sun Jan  9 03:33:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1635 350.708 -49.2725 663120001 663379201 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 :                                   964.01 sec.
    Max Memory :                                 618 MB
    Average Memory :                             301.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            1090 sec.

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

