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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1109
RA = 350.708, Dec = -49.2725
tmin = 526780801, tmax = 527040001
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='805088', job_status='RUN', time_executed='2021-09-29 14:16:31.378040', time_epoch_executed='1632950191.38' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805088

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805088/ft1_4FGL_J2322.8-4916_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805088/ft2_4FGL_J2322.8-4916_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805088/ft1_4FGL_J2322.8-4916_daily_bin1109.fits outfile=/scratch/kocevski/805088/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1109.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=526780801.0 tmax=527040001.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.40
user 4.16
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805088/ft2_4FGL_J2322.8-4916_daily_bin1109.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/805088/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1109.fits evtable="EVENTS" outfile="/scratch/kocevski/805088/ft1_filtered_4FGL_J2322.8-4916_daily_bin1109.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805088/ft1_filtered_4FGL_J2322.8-4916_daily_bin1109.fits" evtable="EVENTS" scfile=/scratch/kocevski/805088/ft2_4FGL_J2322.8-4916_daily_bin1109.fits sctable="SC_DATA" outfile=/scratch/kocevski/805088/ltcube_526780801_527040001_4FGL_J2322.8-4916_daily_bin1109.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/805088/ft2_4FGL_J2322.8-4916_daily_bin1109.fits
.....................!
real 12.30
user 11.89
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805088/ft1_filtered_4FGL_J2322.8-4916_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/805088/ft2_4FGL_J2322.8-4916_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/805088/ltcube_526780801_527040001_4FGL_J2322.8-4916_daily_bin1109.fits outfile=/scratch/kocevski/805088/expmap_526780801_527040001_4FGL_J2322.8-4916_daily_bin1109.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/805088/ltcube_526780801_527040001_4FGL_J2322.8-4916_daily_bin1109.fits
.....................!
real 189.79
user 185.19
sys 4.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/805088/ft1_filtered_4FGL_J2322.8-4916_daily_bin1109.fits scfile=/scratch/kocevski/805088/ft2_4FGL_J2322.8-4916_daily_bin1109.fits outfile=/scratch/kocevski/805088/cmap_526780801_527040001_4FGL_J2322.8-4916_daily_bin1109.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.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805088/ft1_filtered_4FGL_J2322.8-4916_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/805088/ft2_4FGL_J2322.8-4916_daily_bin1109.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805088/Model_4FGL_J2322.8-4916_daily_bin1109.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/805088/ft1_filtered_4FGL_J2322.8-4916_daily_bin1109.fits.....................!
real 31.92
user 30.71
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.155       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8792       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    134.70       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1251       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.052       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42126       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.986       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.132       1.0000         .10000E-03   10000.    
    14 'Prefactor '    84.764       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11919E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1367       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    111.41       1.0000         .10000E-03   10000.    
    23 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1509       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    40.026       1.0000         .10000E-03   10000.    
    30 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .82394       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .94336       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .76160       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=   3544.650     FROM MIGRAD    STATUS=CONVERGED    941 CALLS     4887 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.731       -.27556E-05** at limit **
   2  Prefactor     .10000E-03    15.274        .22484E-05** at limit **
   3  Prefactor     35.160        44.813        .33107E-05    .18382E-03
   4  Prefactor     1.8768        11.168       -.21034E-05   -.21556E-03
   5  Prefactor     .10000E-03    4.6518        .20824E-05** at limit **
   6  Prefactor     .10000E-03    18.711        .10175E-06** at limit **
   7  Prefactor     134.71        141.11       -.45419E-06    .21275E-04
   8  norm          .10000E-03    2.6281        .15651E-07** at limit **
   9  Prefactor     8.1272        4.8985       -.91946E-06    .12445E-03
  10  Prefactor     13.046        36.877        .50557E-05    .55505E-05
  11  Prefactor     .41299        5.2200       -.68567E-06    .44725E-04
  12  Prefactor     17.091        44.955        .95167E-05    .88184E-04
  13  Prefactor     29.115        20.667       -.10864E-04    .10220E-03
  14  Prefactor     84.794        90.699        .19047E-04    .14668E-04
  15  Prefactor     .10000E-03    4.1426       -.58343E-06** at limit **
  16  Prefactor     .10000E-03    12.339       -.41916E-05** at limit **
  17  Prefactor     3.1432        35.059       -.32426E-04   -.82524E-04
  18  norm          .10000E-03    4.6873       -.20995E-05** at limit **
  19  norm          .10000E-03    8.3988        .15623E-06** at limit **
  20  norm          .10000E-03    2.2690       -.27374E-07** at limit **
  21  Prefactor     .10000E-03    3.5079        .88089E-07** at limit **
  22  Prefactor     111.41        54.877        .30229E-05    .49215E-04
  23  norm          .10000E-03    2.4208       -.14230E-06** at limit **
  24  Prefactor     8.1534        12.997        .11832E-05   -.16027E-04
  25  norm          .10000E-03    .97455        .68238E-06** at limit **
  26  norm          .10000E-03    2.7506       -.14628E-06** at limit **
  27  Prefactor     .10000E-03    10.877        .39555E-05** at limit **
  28  Prefactor     .10000E-03    4.0056       -.25020E-06** at limit **
  29  Prefactor     40.020        31.171        .55836E-05    .18067E-03
  30  norm          .10000E-03    14.647       -.11663E-05** at limit **
  31  Prefactor     .84651        7.8101       -.65728E-05    .35980E-03
  32  Prefactor     .10000E-03    5.2010       -.30238E-06** at limit **
  33  Normalizat    .94274        .23538        .45201E-05    .51624E-03
  34  Prefactor     .76221        .22110        .64794E-06    .48810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.1596
  Prefactor  = 1.87682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 134.707
  norm       = 0.0001
  Prefactor  = 8.12718
  Prefactor  = 13.0465
  Prefactor  = 0.412994
  Prefactor  = 17.0911
  Prefactor  = 29.1151
  Prefactor  = 84.7935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.14318
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.411
  norm       = 0.0001
  Prefactor  = 8.15344
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.0199
  norm       = 0.0001
  Prefactor  = 0.846508
  Prefactor  = 0.0001
  Normalizat = 0.942742
  Prefactor  = 0.762207
 **********
 **   18 **HESSE 
 **********

 FCN=   3544.650     FROM HESSE     STATUS=OK           726 CALLS     5613 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.160        44.656        .67589E-04   -1.4521    
   4  Prefactor     1.8768        11.173        .30370E-03   -1.5434    
   5  Prefactor     .10000E-03    4.6568        .12535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     134.71        140.87        .34699E-04   -1.3381    
   8  norm          .10000E-03    2.6293        .94264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1272        4.8913        .96789E-04   -1.5138    
  10  Prefactor     13.046        36.833        .11087E-03   -1.4985    
  11  Prefactor     .41299        32.173        .24026E-02   -1.5579    
  12  Prefactor     17.091        44.825        .97180E-04   -1.4881    
  13  Prefactor     29.115        20.613        .74229E-04   -1.4628    
  14  Prefactor     84.794        90.478        .21816E-03   -1.3864    
  15  Prefactor     .10000E-03    8.5087        .23583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.1432        35.449        .22890E-03   -1.5353    
  18  norm          .10000E-03    4.6870        .12588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.6731        .33670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2695        .87583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5133        .10879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     111.41        55.301        .38110E-04   -1.3593    
  23  norm          .10000E-03    2.4243        .90383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.1534        12.915        .14043E-03   -1.5137    
  25  norm          .10000E-03    1.7882        .11086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.7657        .96387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.0866        .23177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     40.020        30.907        .63357E-04   -1.4442    
  30  norm          .10000E-03    14.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .84651        14.379        .29172E-02   -1.5524    
  32  Prefactor     .10000E-03    5.3344        .26503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .94274        .28394        .22654E-03   -.94974    
  34  Prefactor     .76221        .26673        .25659E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68458e-09
Minuit parameter uncertainties:
  1  3.04148e-05
  2  6.95723e-05
  3  44.6986
  4  9.161
  5  6.29567e-06
  6  0.000175146
  7  141.224
  8  3.43736e-06
  9  4.89151
  10  36.8976
  11  7.29347
  12  44.9136
  13  20.6181
  14  90.6253
  15  1.20727e-05
  16  1.68403e-05
  17  21.1269
  18  7.58442e-07
  19  0.000204195
  20  5.17048e-06
  21  1.90084e-05
  22  55.3268
  23  2.21817e-05
  24  12.9192
  25  8.81053e-05
  26  2.30146e-05
  27  5.92033e-06
  28  3.57802e-05
  29  30.9198
  30  3.17891e-05
  31  6.97925
  32  7.50082e-05
  33  0.284393
  34  0.267186
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  2.042e-04  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.622e-01  2.672e-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:  9.427e-01  2.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/805088/likelihoodResults_526780801_527040001_4FGL_J2322.8-4916_daily_bin1109.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) = 3544.6502266
delta logL = -0.000549980794403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3544.64967709
delta logL = -4.77913090435e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10387E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6239       1.0000          .0000       5.0000    
     3 'Normalizat'    .94293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76202       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=   3544.650     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      238 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10066E-03    208.02        .33816E-02** at limit **
   2  alpha         1.6942        2.6190        .50000       -.30282E-05
   3  Normalizat    .94274        .25185E-01    .22654E-03    .28605E-04
   4  Prefactor     .76221        .26043E-01    .25659E-03    .35644E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100664
  alpha      = 1.6942
  Normalizat = 0.942741
  Prefactor  = 0.762205
 **********
 **   18 **HESSE 
 **********

 FCN=   3544.650     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10066E-03    894.73        .67633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6942        4.1087        .50000       -.32818    
   3  Normalizat    .94274        .59315E-01    .90615E-05   -.94974    
   4  Prefactor     .76221        .61333E-01    .10264E-04   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.9172e-08
Minuit parameter uncertainties:
  1  0.0495067
  2  1972.54
  3  0.0593186
  4  0.0613387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805088': 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): 102
logL (Free Index) = 3544.64967649
delta logL = 1.26809027279e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.007e-04  4.951e-02  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.694e+00  1.973e+03  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:  7.622e-01  6.134e-02  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:  9.427e-01  5.932e-02  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/805088/cmap_HighResolution_526780801_527040001_4FGL_J2322.8-4916_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-05', job_status='DONE', photon_flux_upper_limit='3.10e-08', time_completed='2021-09-29 14:29:02.745125', job_id='805088', GAL2='0.76', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632950942.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1109' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:29:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 805088: <4FGL_J2322.8-4916_daily_bin1109> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1109 350.708 -49.2725 526780801 527040001 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            820 sec.

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

