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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1606
RA = 350.708, Dec = -49.2725
tmin = 655603201, tmax = 655862401
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='500081', job_status='RUN', time_executed='2021-12-08 09:26:08.667236', time_epoch_executed='1638984368.67' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500081

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500081/ft1_4FGL_J2322.8-4916_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500081/ft2_4FGL_J2322.8-4916_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500081/ft1_4FGL_J2322.8-4916_daily_bin1606.fits outfile=/scratch/kocevski/500081/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1606.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=655603201.0 tmax=655862401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.28
user 4.03
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500081/ft1_filtered_4FGL_J2322.8-4916_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/500081/ft2_4FGL_J2322.8-4916_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/500081/ltcube_655603201_655862401_4FGL_J2322.8-4916_daily_bin1606.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/500081/ft2_4FGL_J2322.8-4916_daily_bin1606.fits
.....................!
real 13.30
user 12.89
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500081/ft1_filtered_4FGL_J2322.8-4916_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/500081/ft2_4FGL_J2322.8-4916_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/500081/ltcube_655603201_655862401_4FGL_J2322.8-4916_daily_bin1606.fits outfile=/scratch/kocevski/500081/expmap_655603201_655862401_4FGL_J2322.8-4916_daily_bin1606.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/500081/ltcube_655603201_655862401_4FGL_J2322.8-4916_daily_bin1606.fits
.....................!
real 191.68
user 184.75
sys 6.28

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/500081/ft1_filtered_4FGL_J2322.8-4916_daily_bin1606.fits scfile=/scratch/kocevski/500081/ft2_4FGL_J2322.8-4916_daily_bin1606.fits outfile=/scratch/kocevski/500081/cmap_655603201_655862401_4FGL_J2322.8-4916_daily_bin1606.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.55
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/500081/ft1_filtered_4FGL_J2322.8-4916_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/500081/ft2_4FGL_J2322.8-4916_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500081/Model_4FGL_J2322.8-4916_daily_bin1606.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/500081/ft1_filtered_4FGL_J2322.8-4916_daily_bin1606.fits.....................!
real 38.38
user 36.97
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.947       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14198E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5153       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3224       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.385       1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9274       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.543       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3934       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.086       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11204E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.796       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.3216       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9436       1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.467       1.0000         .10000E-03   10000.    
    23 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1027       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6274       1.0000         .10000E-03   10000.    
    26 'norm      '    3.8307       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.460       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .30752       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.8318       1.0000         .10000E-03   10000.    
    30 'norm      '    9.1500       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.3307       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .30801       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=   4657.045     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     4842 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.042        56.653        .10035E-05    .99822E-04
   2  Prefactor     .10000E-03    35.361       -.15180E-05** at limit **
   3  Prefactor     2.5025        114.69       -.65117E-05   -.30631E-04
   4  Prefactor     .10000E-03    8.0775       -.40442E-06** at limit **
   5  Prefactor     5.3239        8.2747        .51553E-05   -.85661E-04
   6  Prefactor     .10000E-03    10.153       -.84370E-06** at limit **
   7  Prefactor     14.564        303.89       -.79620E-06    .21317E-04
   8  norm          .10000E-03    4.1031        .61996E-06** at limit **
   9  Prefactor     7.9276        5.6082        .16518E-06   -.72760E-04
  10  Prefactor     24.516        63.347        .19752E-06   -.29224E-04
  11  Prefactor     5.3917        5.2137        .18116E-06   -.62669E-04
  12  Prefactor     26.099        34.511        .12588E-05   -.43220E-04
  13  Prefactor     .10000E-03    16.715        .12718E-05** at limit **
  14  Prefactor     .10000E-03    49.391        .21860E-06** at limit **
  15  Prefactor     .10000E-03    4.8625       -.43993E-06** at limit **
  16  Prefactor     .10000E-03    53.381        .78124E-07** at limit **
  17  Prefactor     18.814        19.783        .43390E-06   -.61124E-04
  18  norm          .10000E-03    3.9005       -.13277E-07** at limit **
  19  norm          4.3216        4.4170       -.80583E-07   -.95424E-05
  20  norm          .10000E-03    1.5886        .22171E-07** at limit **
  21  Prefactor     5.9445        6.0147        .35012E-08   -.67089E-04
  22  Prefactor     46.484        39.240        .23672E-06   -.13751E-04
  23  norm          .10000E-03    2.7754        .17494E-06** at limit **
  24  Prefactor     8.1011        14.626        .38561E-06   -.50637E-04
  25  norm          1.6274        1.1058        .25615E-08   -.28568E-03
  26  norm          3.8316        5.4410        .40027E-06   -.71946E-04
  27  Prefactor     23.455        17.408        .28615E-06   -.73695E-04
  28  Prefactor     .30408        4.0994        .67966E-06   -.13168E-03
  29  Prefactor     7.8397        23.470       -.89675E-06   -.87791E-04
  30  norm          9.1470        13.465       -.28189E-06   -.36318E-05
  31  Prefactor     .10000E-03    3.8588       -.43127E-06** at limit **
  32  Prefactor     .10000E-03    1.3499       -.30441E-07** at limit **
  33  Normalizat    1.3304        .21261       -.40468E-05    .33291E-04
  34  Prefactor     .30825        .19266        .54715E-05   -.81398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.042
  Prefactor  = 0.0001
  Prefactor  = 2.50247
  Prefactor  = 0.0001
  Prefactor  = 5.32387
  Prefactor  = 0.0001
  Prefactor  = 14.5644
  norm       = 0.0001
  Prefactor  = 7.92763
  Prefactor  = 24.5156
  Prefactor  = 5.39172
  Prefactor  = 26.0988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8139
  norm       = 0.0001
  norm       = 4.32159
  norm       = 0.0001
  Prefactor  = 5.94449
  Prefactor  = 46.4836
  norm       = 0.0001
  Prefactor  = 8.10109
  norm       = 1.62735
  norm       = 3.8316
  Prefactor  = 23.4555
  Prefactor  = 0.304083
  Prefactor  = 7.83969
  norm       = 9.14704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33039
  Prefactor  = 0.308249
 **********
 **   18 **HESSE 
 **********

 FCN=   4657.045     FROM HESSE     STATUS=OK           736 CALLS     5578 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.042        56.677        .28955E-03   -1.4321    
   2  Prefactor     .10000E-03    36.368        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5025        115.23        .25761E-03   -1.5392    
   4  Prefactor     .10000E-03    8.1609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.3239        8.2999        .87104E-03   -1.5246    
   6  Prefactor     .10000E-03    10.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.564        298.12        .10560E-03   -1.4945    
   8  norm          .10000E-03    4.1194        .13496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9276        5.6027        .12619E-03   -1.5145    
  10  Prefactor     24.516        63.320        .80858E-04   -1.4717    
  11  Prefactor     5.3917        5.2043        .14444E-03   -1.5244    
  12  Prefactor     26.099        34.442        .78434E-04   -1.4686    
  13  Prefactor     .10000E-03    17.052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8776        .14690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    53.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.814        19.795        .92382E-04   -1.4840    
  18  norm          .10000E-03    3.9010        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.3216        4.4212        .14075E-03   -1.5292    
  20  norm          .10000E-03    1.5888        .84000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.9445        6.0002        .14986E-03   -1.5220    
  22  Prefactor     46.484        39.201        .58820E-04   -1.4343    
  23  norm          .10000E-03    2.8095        .11071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.1011        14.587        .14085E-03   -1.5139    
  25  norm          1.6274        1.1038        .33157E-04   -1.5453    
  26  norm          3.8316        5.4057        .17168E-03   -1.5316    
  27  Prefactor     23.455        17.465        .82699E-04   -1.4739    
  28  Prefactor     .30408        7.5496        .21482E-02   -1.5598    
  29  Prefactor     7.8397        22.192        .14328E-03   -1.5148    
  30  norm          9.1470        13.404        .13250E-03   -1.5103    
  31  Prefactor     .10000E-03    3.8920        .13028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    1.3547        .77409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.3304        .22274        .19218E-03   -.82664    
  34  Prefactor     .30825        .19712        .36754E-03   -1.2178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37344e-08
Minuit parameter uncertainties:
  1  56.7411
  2  8.07277e-05
  3  34.0316
  4  1.66096e-05
  5  8.30165
  6  1.34413e-05
  7  132.55
  8  5.95766e-06
  9  5.60308
  10  63.4941
  11  5.20471
  12  34.4686
  13  3.58481e-05
  14  7.67802e-05
  15  6.41113e-06
  16  5.17915e-05
  17  19.8022
  18  2.97562e-06
  19  4.42154
  20  3.80303e-07
  21  6.00081
  22  39.2223
  23  1.7723e-06
  24  14.5932
  25  1.10379
  26  5.40636
  27  17.4685
  28  3.03025
  29  22.2151
  30  13.4085
  31  1.81923e-06
  32  3.32602e-06
  33  0.222896
  34  0.197547
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  4.322e+00  4.422e+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:  3.082e-01  1.975e-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.330e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.32
Ra Dec: 350.708 -49.273
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 6.79e-09 +/- 6.95e-09
Energy Flux (Fixed Index): 1.49e-05 +/- 1.52e-05

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) = 4657.04047823
delta logL = 0.00499947618209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4657.04019006
delta logL = 0.00528764730825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2151       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7137       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .30824       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=   4657.040     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2161        183.12        .49070E-02   -.14352E-03
   2  alpha         1.7142        4.1236        .44076        .88455E-05
   3  Normalizat    1.3299        .12260        .32289E-01   -.70553E-05
   4  Prefactor     .30827        .87346E-01    .82939E-01    .35224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.21611
  alpha      = 1.71416
  Normalizat = 1.32995
  Prefactor  = 0.308265
 **********
 **   18 **HESSE 
 **********

 FCN=   4657.040     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2161        4.5088        .13858E-03   -1.5297    
   2  alpha         1.7142        .98565        .21392E-01   -.31976    
   3  Normalizat    1.3299        .19835        .19220E-03   -.82677    
   4  Prefactor     .30827        .19283        .36751E-03   -1.2178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5705e-10
Minuit parameter uncertainties:
  1  4.50914
  2  1.01644
  3  0.198468
  4  0.193231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500081': 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) = 4657.04018989
delta logL = 0.00528781657249

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  4.216e+00  4.509e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.714e+00  1.016e+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:  3.083e-01  1.932e-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.330e+00  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.34
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 1.71 +/- 1.02
Photon Flux (Free Index): 7.56e-09 +/- 1.11e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.93e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.79e-09', energy_flux2='1.34e-05', photon_flux_error='6.95e-09', dlogl='5.29e-03', energy_flux='1.49e-05', photon_flux2='7.56e-09', job_status='DONE', time_completed='2021-12-08 09:37:55.756214', photon_index_error2='1.02', photon_index2='1.71', ts='5.32', fit_tolerance='1e-08', GAL='0.31', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='1.33', time_epoch_completed='1638985075.76', return_code='0', job_id='500081', GAL2='0.31', EG2='1.33', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='1.11e-08', ts2='5.34', photon_index='1.61' WHERE bin_id='1606' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:37:55 PST 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1606 350.708 -49.2725 655603201 655862401 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 :                                   705.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            754 sec.

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

