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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1397
RA = 350.708, Dec = -49.2725
tmin = 601430401, tmax = 601689601
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='805513', job_status='RUN', time_executed='2021-09-29 14:17:37.210728', time_epoch_executed='1632950257.21' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805513/ft1_4FGL_J2322.8-4916_daily_bin1397.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805513/ft2_4FGL_J2322.8-4916_daily_bin1397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805513/ft1_4FGL_J2322.8-4916_daily_bin1397.fits outfile=/scratch/kocevski/805513/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1397.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=601430401.0 tmax=601689601.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 3.60
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805513/ft1_filtered_4FGL_J2322.8-4916_daily_bin1397.fits" evtable="EVENTS" scfile=/scratch/kocevski/805513/ft2_4FGL_J2322.8-4916_daily_bin1397.fits sctable="SC_DATA" outfile=/scratch/kocevski/805513/ltcube_601430401_601689601_4FGL_J2322.8-4916_daily_bin1397.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/805513/ft2_4FGL_J2322.8-4916_daily_bin1397.fits
.....................!
real 11.71
user 11.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805513/ft1_filtered_4FGL_J2322.8-4916_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/805513/ft2_4FGL_J2322.8-4916_daily_bin1397.fits sctable="SC_DATA" expcube=/scratch/kocevski/805513/ltcube_601430401_601689601_4FGL_J2322.8-4916_daily_bin1397.fits outfile=/scratch/kocevski/805513/expmap_601430401_601689601_4FGL_J2322.8-4916_daily_bin1397.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/805513/ltcube_601430401_601689601_4FGL_J2322.8-4916_daily_bin1397.fits
.....................!
real 189.75
user 184.92
sys 4.50

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/805513/ft1_filtered_4FGL_J2322.8-4916_daily_bin1397.fits scfile=/scratch/kocevski/805513/ft2_4FGL_J2322.8-4916_daily_bin1397.fits outfile=/scratch/kocevski/805513/cmap_601430401_601689601_4FGL_J2322.8-4916_daily_bin1397.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805513/ft1_filtered_4FGL_J2322.8-4916_daily_bin1397.fits scfile=/scratch/kocevski/805513/ft2_4FGL_J2322.8-4916_daily_bin1397.fits outfile=/scratch/kocevski/805513/cmap_HighResolution_601430401_601689601_4FGL_J2322.8-4916_daily_bin1397.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.179       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13938E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16161E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5040       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19577E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.446       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7696       1.0000         .10000E-03   10000.    
    18 'norm      '    .16371E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.0860       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8320       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.1364       1.0000         .10000E-03   10000.    
    23 'norm      '    1.5548       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9690       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6695       1.0000         .10000E-03   10000.    
    26 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1611       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.1731       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.2796       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.6190       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .29081       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=   5012.168     FROM MIGRAD    STATUS=CONVERGED    951 CALLS     4187 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.308        .32769E-06** at limit **
   2  Prefactor     .10000E-03    8.2367       -.26621E-07** at limit **
   3  Prefactor     17.192        29.427       -.99065E-07   -.30046E-04
   4  Prefactor     .10004E-03    10.102        .24926E-05** at limit **
   5  Prefactor     .10000E-03    31.621       -.90833E-05** at limit **
   6  Prefactor     .10000E-03    8.7981       -.28563E-06** at limit **
   7  Prefactor     .10000E-03    93.793       -.15891E-05** at limit **
   8  norm          5.5037        5.4424        .53440E-07   -.21904E-04
   9  Prefactor     .10027E-03    2.5163        .89356E-06** at limit **
  10  Prefactor     .10000E-03    27.090       -.44787E-06** at limit **
  11  Prefactor     .10000E-03    1.8119       -.63591E-07** at limit **
  12  Prefactor     .10000E-03    10.295       -.11875E-06** at limit **
  13  Prefactor     .10000E-03    8.2725       -.37094E-06** at limit **
  14  Prefactor     .10000E-03    112.32        .74578E-06** at limit **
  15  Prefactor     11.442        8.4960       -.40965E-07   -.96667E-04
  16  Prefactor     .10000E-03    26.834       -.62194E-06** at limit **
  17  Prefactor     4.7638        13.390       -.32919E-06   -.24209E-04
  18  norm          .10000E-03    11.958       -.13040E-05** at limit **
  19  norm          .10000E-03    2.4749       -.88823E-08** at limit **
  20  norm          5.0868        4.9037        .21657E-06   -.97895E-04
  21  Prefactor     5.8311        5.9593        .12786E-06    .63881E-04
  22  Prefactor     7.0844        58.902        .67839E-06    .45329E-05
  23  norm          1.5559        4.0652       -.26181E-06   -.20608E-03
  24  Prefactor     6.9649        11.449       -.72339E-07   -.42471E-05
  25  norm          1.6691        1.2204        .29155E-07    .10903E-03
  26  norm          .10000E-03    2.4414        .68496E-06** at limit **
  27  Prefactor     2.1548        17.886       -.13845E-05   -.82374E-05
  28  Prefactor     1.1721        2.6692       -.73887E-06   -.11065E-03
  29  Prefactor     .10000E-03    26.333       -.21722E-06** at limit **
  30  norm          .10000E-03    13.417       -.55606E-07** at limit **
  31  Prefactor     .10000E-03    1.9610        .57407E-07** at limit **
  32  Prefactor     6.2773        4.3552       -.54244E-07   -.13362E-03
  33  Normalizat    1.6194        .22461       -.10170E-05    .22024E-03
  34  Prefactor     .29057        .21715        .34608E-05    .68041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1921
  Prefactor  = 0.000100035
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.50371
  Prefactor  = 0.000100272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4423
  Prefactor  = 0.0001
  Prefactor  = 4.76383
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.08683
  Prefactor  = 5.83112
  Prefactor  = 7.08442
  norm       = 1.55588
  Prefactor  = 6.96493
  norm       = 1.66914
  norm       = 0.0001
  Prefactor  = 2.15481
  Prefactor  = 1.17214
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.27733
  Normalizat = 1.61937
  Prefactor  = 0.290567
 **********
 **   18 **HESSE 
 **********

 FCN=   5012.168     FROM HESSE     STATUS=OK           750 CALLS     4937 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.2437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.192        29.217        .96631E-04   -1.4878    
   4  Prefactor     .10004E-03    8.7367        .61514E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.181        .35234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.0341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    93.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5037        5.4444        .16013E-03   -1.5239    
   9  Prefactor     .10027E-03    3.8009        .37046E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.8184        .93067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    112.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.442        8.5089        .11842E-03   -1.5031    
  16  Prefactor     .10000E-03    26.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7638        13.392        .18423E-03   -1.5271    
  18  norm          .10000E-03    60.581        .46745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.4792        .10875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.0868        4.9101        .14543E-03   -1.5257    
  21  Prefactor     5.8311        5.9504        .15955E-03   -1.5225    
  22  Prefactor     7.0844        58.372        .15016E-03   -1.5176    
  23  norm          1.5559        3.9765        .18283E-03   -1.5458    
  24  Prefactor     6.9649        11.430        .15197E-03   -1.5180    
  25  norm          1.6691        1.2023        .62126E-04   -1.5450    
  26  norm          .10000E-03    2.4352        .10720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.1548        18.230        .28020E-03   -1.5414    
  28  Prefactor     1.1721        2.6493        .16827E-03   -1.5491    
  29  Prefactor     .10000E-03    26.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    13.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.9734        .96784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     6.2773        4.3705        .11796E-03   -1.5207    
  33  Normalizat    1.6194        .23632        .18730E-03   -.74477    
  34  Prefactor     .29057        .22406        .41451E-03   -1.2282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08283e-10
Minuit parameter uncertainties:
  1  4.55334e-05
  2  6.52443e-06
  3  29.2412
  4  0.00110897
  5  0.000278455
  6  7.30326e-06
  7  0.00047527
  8  5.44484
  9  0.00203437
  10  7.01337e-05
  11  7.04708e-07
  12  1.8999e-06
  13  2.49571e-05
  14  0.000277687
  15  8.5098
  16  0.000104925
  17  13.4004
  18  4.31385e-05
  19  2.53732e-06
  20  4.91047
  21  5.95105
  22  40.7247
  23  3.9772
  24  11.4339
  25  1.20229
  26  1.6532e-05
  27  12.5401
  28  2.64958
  29  0.000114633
  30  3.84097e-06
  31  1.14461e-05
  32  4.37077
  33  0.236481
  34  0.224734
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  2.537e-06  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:  2.906e-01  2.247e-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.619e+00  2.365e-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: 2.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805513/likelihoodResults_601430401_601689601_4FGL_J2322.8-4916_daily_bin1397.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) = 5012.16950388
delta logL = -0.00142170314939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5012.16808221
delta logL = -3.60632839147e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6114       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29057       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=   5012.168     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      228 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.2872        .10876E-02** at limit **
   2  alpha         1.6032        2.7450        .18018        .40869E-06
   3  Normalizat    1.6194        .21905        .18730E-03   -.10926E-05
   4  Prefactor     .29057        .22064        .41452E-03   -.79536E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.60319
  Normalizat = 1.61937
  Prefactor  = 0.290567
 **********
 **   18 **HESSE 
 **********

 FCN=   5012.168     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4833        .21751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6032        4.0434        .36036E-01   -.36690    
   3  Normalizat    1.6194        .21905        .74920E-05   -.74477    
   4  Prefactor     .29057        .22065        .16581E-04   -1.2282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80867e-09
Minuit parameter uncertainties:
  1  0.000179217
  2  228.904
  3  0.219185
  4  0.221285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805513': 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) = 5012.16808217
delta logL = 1.56160240294e-09

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.792e-04  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.603e+00  2.289e+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:  2.906e-01  2.213e-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.619e+00  2.192e-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/805513/cmap_HighResolution_601430401_601689601_4FGL_J2322.8-4916_daily_bin1397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-05', job_status='DONE', photon_flux_upper_limit='2.06e-08', time_completed='2021-09-29 14:31:11.668805', job_id='805513', GAL2='0.29', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1632951071.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.29', dlogl='1.56e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1397' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:31:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 805513: <4FGL_J2322.8-4916_daily_bin1397> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1397 350.708 -49.2725 601430401 601689601 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 :                                   789.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            916 sec.

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

