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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1020
RA = 350.708, Dec = -49.2725
tmin = 503712001, tmax = 503971201
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='804954', job_status='RUN', time_executed='2021-09-29 14:17:15.983742', time_epoch_executed='1632950235.98' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804954

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804954/ft1_4FGL_J2322.8-4916_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804954/ft2_4FGL_J2322.8-4916_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804954/ft1_4FGL_J2322.8-4916_daily_bin1020.fits outfile=/scratch/kocevski/804954/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1020.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.57
user 5.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804954/ft1_filtered_4FGL_J2322.8-4916_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/804954/ft2_4FGL_J2322.8-4916_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/804954/ltcube_503712001_503971201_4FGL_J2322.8-4916_daily_bin1020.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/804954/ft2_4FGL_J2322.8-4916_daily_bin1020.fits
.....................!
real 11.89
user 11.49
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804954/ft1_filtered_4FGL_J2322.8-4916_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/804954/ft2_4FGL_J2322.8-4916_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/804954/ltcube_503712001_503971201_4FGL_J2322.8-4916_daily_bin1020.fits outfile=/scratch/kocevski/804954/expmap_503712001_503971201_4FGL_J2322.8-4916_daily_bin1020.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/804954/ltcube_503712001_503971201_4FGL_J2322.8-4916_daily_bin1020.fits
.....................!
real 193.74
user 187.71
sys 5.32

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/804954/ft1_filtered_4FGL_J2322.8-4916_daily_bin1020.fits scfile=/scratch/kocevski/804954/ft2_4FGL_J2322.8-4916_daily_bin1020.fits outfile=/scratch/kocevski/804954/cmap_503712001_503971201_4FGL_J2322.8-4916_daily_bin1020.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804954/ft1_filtered_4FGL_J2322.8-4916_daily_bin1020.fits scfile=/scratch/kocevski/804954/ft2_4FGL_J2322.8-4916_daily_bin1020.fits outfile=/scratch/kocevski/804954/cmap_HighResolution_503712001_503971201_4FGL_J2322.8-4916_daily_bin1020.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/804954/ft1_filtered_4FGL_J2322.8-4916_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/804954/ft2_4FGL_J2322.8-4916_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/804954/Model_4FGL_J2322.8-4916_daily_bin1020.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/804954/ft1_filtered_4FGL_J2322.8-4916_daily_bin1020.fits....................!
real 27.63
user 25.92
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12621E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23805E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24922E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.521       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14396E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    87.631       1.0000         .10000E-03   10000.    
     8 'norm      '    .10828E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35056E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3151       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.213       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10580       1.0000         .10000E-03   10000.    
    14 'Prefactor '    76.585       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20573E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24069E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .14288E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .89188E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    7.2157       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .37517E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .95564       1.0000         .10000E-03   10000.    
    26 'norm      '    2.4271       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .53997E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.6322       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .21264E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .19861E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    10.903       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2190       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .43980       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2510.816     FROM MIGRAD    STATUS=CONVERGED    219 CALLS     2721 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.784        .10839E-07** at limit **
   2  Prefactor     .10000E-03    7.4884        .19433E-05** at limit **
   3  Prefactor     .10000E-03    .71494        .14751E-06** at limit **
   4  Prefactor     31.991        23.856       -.15821E-05    .40583E-05
   5  Prefactor     .10000E-03    8.5129        .27742E-06** at limit **
   6  Prefactor     .10000E-03    10.324        .48879E-06** at limit **
   7  Prefactor     86.298        35.988       -.13026E-05   -.84063E-02
   8  norm          .10000E-03    8.8571       -.46592E-06** at limit **
   9  Prefactor     3.0424        6.8250       -.22287E-07    .18068E-04
  10  Prefactor     .10083E-03    24.604        .13907E-05** at limit **
  11  Prefactor     8.2148        5.3518        .69366E-07    .62419E-03
  12  Prefactor     19.737        39.870        .41952E-05    .31430E-04
  13  Prefactor     .10001E-03    81.933       -.95099E-07** at limit **
  14  Prefactor     81.886        144.76        .56512E-05   -.20390E-02
  15  Prefactor     .10000E-03    6.4667       -.32426E-06** at limit **
  16  Prefactor     .10000E-03    8.0736        .88204E-06** at limit **
  17  Prefactor     .10001E-03    12.278        .13953E-05** at limit **
  18  norm          .10000E-03    7.0477       -.83013E-06** at limit **
  19  norm          .10000E-03    6.6412        .15206E-05** at limit **
  20  norm          .10000E-03    3.0394       -.11033E-06** at limit **
  21  Prefactor     .10000E-03    6.0425       -.20364E-06** at limit **
  22  Prefactor     .10038E-03    51.952        .20358E-05** at limit **
  23  norm          7.2693        6.7088       -.96166E-06    .24617E-03
  24  Prefactor     .10000E-03    26.217       -.37454E-05** at limit **
  25  norm          .95731        1.8979       -.61682E-06    .29692E-04
  26  norm          2.3804        6.5023        .14636E-06   -.74704E-04
  27  Prefactor     .10011E-03    54.760       -.11416E-06** at limit **
  28  Prefactor     8.6221        7.3574       -.58746E-06   -.49167E-04
  29  Prefactor     .10000E-03    34.075       -.25193E-05** at limit **
  30  norm          .10004E-03    8.0311        .95221E-06** at limit **
  31  Prefactor     .10000E-03    2.7778       -.14635E-06** at limit **
  32  Prefactor     11.047        8.0438       -.38168E-06    .25698E-03
  33  Normalizat    1.2190        .31775        .40923E-06   -.38748E-04
  34  Prefactor     .43868        .30679        .47786E-05   -.29523E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 31.9911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.2979
  norm       = 0.0001
  Prefactor  = 3.04239
  Prefactor  = 0.000100831
  Prefactor  = 8.21479
  Prefactor  = 19.7365
  Prefactor  = 0.000100008
  Prefactor  = 81.8857
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100383
  norm       = 7.26934
  Prefactor  = 0.0001
  norm       = 0.957306
  norm       = 2.38036
  Prefactor  = 0.000100111
  Prefactor  = 8.62208
  Prefactor  = 0.0001
  norm       = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 11.0471
  Normalizat = 1.21903
  Prefactor  = 0.438682
 **********
 **   18 **HESSE 
 **********

 FCN=   2510.816     FROM HESSE     STATUS=OK           790 CALLS     3511 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.795        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.457        .10033E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.946        .10733E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.991        23.862        .17566E-02   -1.4576    
   5  Prefactor     .10000E-03    8.4899        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     86.298        135.83        .10730E-02   -1.3847    
   8  norm          .10000E-03    8.7973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0424        6.9316        .59255E-02   -1.5359    
  10  Prefactor     .10083E-03    65.163        .91969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2148        9.0166        .34757E-02   -1.5135    
  12  Prefactor     19.737        41.992        .22844E-02   -1.4819    
  13  Prefactor     .10001E-03    20.557        .95389E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     81.886        155.84        .11471E-02   -1.3896    
  15  Prefactor     .10000E-03    6.3775        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.635        .10028E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    15.115        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.0373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.6304        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.0373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0183        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10038E-03    72.829        .94596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.2693        7.8831        .37331E-02   -1.5169    
  24  Prefactor     .10000E-03    26.055        .97864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .95731        1.9606        .13008E-01   -1.5512    
  26  norm          2.3804        7.5444        .65672E-02   -1.5399    
  27  Prefactor     .10011E-03    57.803        .95472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.6221        7.3784        .34108E-02   -1.5121    
  29  Prefactor     .10000E-03    34.056        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10004E-03    18.284        .10118E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    2.7773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     11.047        8.1694        .30334E-02   -1.5043    
  33  Normalizat    1.2190        .27970        .34440E-01   -.86017    
  34  Prefactor     .43868        .27511        .73418E-01   -1.1488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69065e-06
Minuit parameter uncertainties:
  1  0.000142445
  2  0.000535913
  3  0.000244531
  4  23.8686
  5  8.63164e-07
  6  5.18019e-06
  7  136.319
  8  1.97667e-05
  9  6.93345
  10  0.0147319
  11  9.01809
  12  42.0546
  13  0.000792019
  14  156.627
  15  2.29821e-06
  16  0.000261615
  17  0.000617283
  18  6.9517e-06
  19  1.20183e-05
  20  2.12174e-07
  21  1.8653e-06
  22  0.0105814
  23  7.88425
  24  1.53867e-05
  25  1.96069
  26  7.54738
  27  0.00506154
  28  7.37913
  29  0.000189511
  30  0.00160906
  31  7.67132e-07
  32  8.1702
  33  0.280049
  34  0.275942
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.202e-05  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:  4.387e-01  2.759e-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.219e+00  2.800e-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: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804954/likelihoodResults_503712001_503971201_4FGL_J2322.8-4916_daily_bin1020.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2510.81687524
delta logL = -0.000678476399116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2510.81619705
delta logL = -2.79692358163e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6024       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43850       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=   2510.816     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      232 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1443.3        .12641E-02** at limit **
   2  alpha         1.3823        2.8792        .18056        .41240E-07
   3  Normalizat    1.2190        .16512        .20418E-03   -.27118E-03
   4  Prefactor     .43868        .16475        .32511E-03   -.19019E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.38232
  Normalizat = 1.21903
  Prefactor  = 0.438681
 **********
 **   18 **HESSE 
 **********

 FCN=   2510.816     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9578        .25283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3823        4.0996        .72225E-02   -.46349    
   3  Normalizat    1.2190        .30438        .40835E-04   -.86017    
   4  Prefactor     .43868        .30321        .13004E-04   -1.1488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66456e-10
Minuit parameter uncertainties:
  1  0.000188661
  2  275.153
  3  0.304821
  4  0.30433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804954': 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) = 2510.81619642
delta logL = 3.44859472534e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.887e-04  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.382e+00  2.752e+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:  4.387e-01  3.043e-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.219e+00  3.048e-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/804954/cmap_HighResolution_503712001_503971201_4FGL_J2322.8-4916_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-04', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-09-29 14:27:02.726820', job_id='804954', GAL2='0.44', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632950822.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='3.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1020' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:27:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 804954: <4FGL_J2322.8-4916_daily_bin1020> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1020 350.708 -49.2725 503712001 503971201 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 :                                   516.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            711 sec.

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

