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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1455
RA = 350.708, Dec = -49.2725
tmin = 616464001, tmax = 616723201
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='806603', job_status='RUN', time_executed='2021-09-29 14:21:21.662823', time_epoch_executed='1632950481.66' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806603/ft1_4FGL_J2322.8-4916_daily_bin1455.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806603/ft2_4FGL_J2322.8-4916_daily_bin1455.fits


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

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

Done.
real 2.87
user 2.68
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806603/ft1_filtered_4FGL_J2322.8-4916_daily_bin1455.fits" evtable="EVENTS" scfile=/scratch/kocevski/806603/ft2_4FGL_J2322.8-4916_daily_bin1455.fits sctable="SC_DATA" outfile=/scratch/kocevski/806603/ltcube_616464001_616723201_4FGL_J2322.8-4916_daily_bin1455.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/806603/ft2_4FGL_J2322.8-4916_daily_bin1455.fits
.....................!
real 12.36
user 12.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806603/ft1_filtered_4FGL_J2322.8-4916_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/806603/ft2_4FGL_J2322.8-4916_daily_bin1455.fits sctable="SC_DATA" expcube=/scratch/kocevski/806603/ltcube_616464001_616723201_4FGL_J2322.8-4916_daily_bin1455.fits outfile=/scratch/kocevski/806603/expmap_616464001_616723201_4FGL_J2322.8-4916_daily_bin1455.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/806603/ltcube_616464001_616723201_4FGL_J2322.8-4916_daily_bin1455.fits
.....................!
real 190.58
user 185.40
sys 4.83

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/806603/ft1_filtered_4FGL_J2322.8-4916_daily_bin1455.fits scfile=/scratch/kocevski/806603/ft2_4FGL_J2322.8-4916_daily_bin1455.fits outfile=/scratch/kocevski/806603/cmap_616464001_616723201_4FGL_J2322.8-4916_daily_bin1455.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.53
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806603/ft1_filtered_4FGL_J2322.8-4916_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/806603/ft2_4FGL_J2322.8-4916_daily_bin1455.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806603/Model_4FGL_J2322.8-4916_daily_bin1455.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/806603/ft1_filtered_4FGL_J2322.8-4916_daily_bin1455.fits.....................!
real 24.11
user 22.84
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6633       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1534       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'norm      '    178.62       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.230       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10630E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42841E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15490E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1986       1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.213       1.0000         .10000E-03   10000.    
    25 'norm      '    1.5460       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6279       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3168       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.5025       1.0000         .10000E-03   10000.    
    30 'norm      '    69.681       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    8.0416       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .57808       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .88533       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=   2133.937     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     5003 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.853        .68269E-07** at limit **
   2  Prefactor     .10000E-03    27.261       -.12890E-06** at limit **
   3  Prefactor     8.6621        32.778        .11376E-06   -.18418E-04
   4  Prefactor     .10000E-03    12.809       -.13472E-06** at limit **
   5  Prefactor     1.1529        11.182        .23210E-05    .16949E-05
   6  Prefactor     .10000E-03    9.3965        .12362E-06** at limit **
   7  Prefactor    10000.0        1797.4        .58276E-05** at limit **
   8  norm          178.89        297.16        .27480E-05    .19268E-04
   9  Prefactor     25.185        30.671        .41572E-06    .33799E-05
  10  Prefactor     .10000E-03    262.19        .81247E-06** at limit **
  11  Prefactor     .10000E-03    35.242        .54598E-06** at limit **
  12  Prefactor     .10000E-03    496.06        .30489E-05** at limit **
  13  Prefactor     .10000E-03    120.38        .57411E-05** at limit **
  14  Prefactor     .10000E-03    236.52        .23267E-06** at limit **
  15  Prefactor     .10000E-03    10.509        .71959E-07** at limit **
  16  Prefactor     .10000E-03    51.223       -.91088E-07** at limit **
  17  Prefactor     .10000E-03    10.963        .46546E-08** at limit **
  18  norm          .10000E-03    9.1259       -.24948E-08** at limit **
  19  norm          .10000E-03    4.8184       -.12971E-08** at limit **
  20  norm          .10000E-03    2.6736        .96606E-09** at limit **
  21  Prefactor     .10000E-03    6.8580        .16348E-07** at limit **
  22  Prefactor     .10000E-03    33.737        .12017E-06** at limit **
  23  norm          3.1983        4.4801        .26513E-06   -.76898E-05
  24  Prefactor     49.208        32.226        .17414E-06   -.15785E-04
  25  norm          1.5459        2.1434        .73868E-07   -.68176E-04
  26  norm          .10000E-03    2.3142        .20826E-07** at limit **
  27  Prefactor     3.6249        42.221        .14929E-04   -.11890E-04
  28  Prefactor     3.3166        5.3706       -.15557E-07   -.63492E-04
  29  Prefactor     7.4995        57.369        .54231E-06   -.91157E-05
  30  norm          69.686        41.866       -.26865E-06   -.16868E-04
  31  Prefactor     .10000E-03    3.5634       -.10033E-06** at limit **
  32  Prefactor     8.0410        5.6411        .14102E-06   -.35316E-04
  33  Normalizat    .57831        .26300       -.11292E-05   -.77203E-04
  34  Prefactor     .88509        .28195       -.18239E-05   -.56596E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.66206
  Prefactor  = 0.0001
  Prefactor  = 1.15293
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 178.894
  Prefactor  = 25.1852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.19827
  Prefactor  = 49.2082
  norm       = 1.54589
  norm       = 0.0001
  Prefactor  = 3.62491
  Prefactor  = 3.31657
  Prefactor  = 7.49945
  norm       = 69.6856
  Prefactor  = 0.0001
  Prefactor  = 8.04097
  Normalizat = 0.578312
  Prefactor  = 0.885089
 **********
 **   18 **HESSE 
 **********

 FCN=   2133.937     FROM HESSE     STATUS=OK           722 CALLS     5725 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6621        32.637        .13619E-03   -1.5119    
   4  Prefactor     .10000E-03    13.081        .16133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1529        11.087        .28427E-03   -1.5493    
   6  Prefactor     .10000E-03    9.5423        .13816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        1809.0        .19225E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          178.89        297.24        .15100E-03   -1.3025    
   9  Prefactor     25.185        30.665        .79752E-04   -1.4704    
  10  Prefactor     .10000E-03    262.23        .20722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    496.08        .21232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    120.19        .20445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    236.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.524        .14628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    51.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.966        .14941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.1277        .13631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.8196        .99034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.6741        .73765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8601        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1983        4.4658        .11106E-03   -1.5350    
  24  Prefactor     49.208        32.035        .57163E-04   -1.4304    
  25  norm          1.5459        2.0936        .70542E-04   -1.5459    
  26  norm          .10000E-03    2.3253        .68579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.6249        42.387        .10605E-02   -1.5327    
  28  Prefactor     3.3166        5.2610        .10958E-03   -1.5344    
  29  Prefactor     7.4995        54.972        .14642E-03   -1.5160    
  30  norm          69.686        41.923        .48088E-04   -1.4036    
  31  Prefactor     .10000E-03    3.5815        .85059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     8.0410        5.6584        .85453E-04   -1.5141    
  33  Normalizat    .57831        .31553        .25804E-03   -1.0891    
  34  Prefactor     .88509        .33871        .23362E-03   -.96664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13281e-10
Minuit parameter uncertainties:
  1  3.6151e-05
  2  3.06521e-06
  3  32.7042
  4  4.80488e-06
  5  7.15205
  6  3.4009e-05
  7  0.027626
  8  299.791
  9  30.6844
  10  0.000275305
  11  1.32252e-05
  12  0.00121622
  13  0.000388193
  14  0.00014604
  15  4.50692e-06
  16  9.75128e-05
  17  7.43092e-06
  18  2.50591e-06
  19  1.06236e-08
  20  2.89462e-07
  21  1.7981e-07
  22  4.85004e-05
  23  4.46631
  24  32.0461
  25  2.09366
  26  2.3037e-06
  27  24.8127
  28  5.26175
  29  40.6608
  30  41.9409
  31  1.10692e-05
  32  5.65877
  33  0.316515
  34  0.33952
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  8.851e-01  3.395e-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:  5.783e-01  3.165e-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.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806603/likelihoodResults_616464001_616723201_4FGL_J2322.8-4916_daily_bin1455.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2133.93812808
delta logL = -0.000696429159234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2133.93743171
delta logL = -5.92945070821e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6074       1.0000          .0000       5.0000    
     3 'Normalizat'    .57823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88513       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=   2133.937     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      245 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.201        .99147E-03** at limit **
   2  alpha         1.4148        4.2212        .18035        .15444E-08
   3  Normalizat    .57831        .29698        .25804E-03    .12689E-04
   4  Prefactor     .88509        .33058        .23362E-03   -.63018E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.41482
  Normalizat = 0.578314
  Prefactor  = 0.885087
 **********
 **   18 **HESSE 
 **********

 FCN=   2133.937     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9311        .19829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4148        3.2040        .72140E-02   -.44901    
   3  Normalizat    .57831        .29735        .10322E-04   -1.0891    
   4  Prefactor     .88509        .33100        .93450E-05   -.96664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43284e-12
Minuit parameter uncertainties:
  1  1.8327e-06
  2  285.379
  3  0.298176
  4  0.331752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806603': 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) = 2133.93743141
delta logL = 2.34035724134e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  8.851e-01  3.318e-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:  5.783e-01  2.982e-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/806603/cmap_HighResolution_616464001_616723201_4FGL_J2322.8-4916_daily_bin1455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.31e-05', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2021-09-29 14:30:15.476993', job_id='806603', GAL2='0.89', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1632951015.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1455' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:30:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 806603: <4FGL_J2322.8-4916_daily_bin1455> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1455> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:23 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:24 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:20:24 2021
Terminated at Wed Sep 29 14:30:16 2021
Results reported at Wed Sep 29 14:30:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1455 350.708 -49.2725 616464001 616723201 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 :                                   529.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            593 sec.

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

