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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1042
RA = 350.708, Dec = -49.2725
tmin = 509414401, tmax = 509673601
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='804987', job_status='RUN', time_executed='2021-09-29 14:16:53.147700', time_epoch_executed='1632950213.15' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804987

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804987/ft1_4FGL_J2322.8-4916_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804987/ft2_4FGL_J2322.8-4916_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804987/ft1_4FGL_J2322.8-4916_daily_bin1042.fits outfile=/scratch/kocevski/804987/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1042.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=509414401.0 tmax=509673601.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.71
user 3.45
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804987/ft1_filtered_4FGL_J2322.8-4916_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/804987/ft2_4FGL_J2322.8-4916_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/804987/ltcube_509414401_509673601_4FGL_J2322.8-4916_daily_bin1042.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/804987/ft2_4FGL_J2322.8-4916_daily_bin1042.fits
.....................!
real 12.19
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804987/ft1_filtered_4FGL_J2322.8-4916_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/804987/ft2_4FGL_J2322.8-4916_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/804987/ltcube_509414401_509673601_4FGL_J2322.8-4916_daily_bin1042.fits outfile=/scratch/kocevski/804987/expmap_509414401_509673601_4FGL_J2322.8-4916_daily_bin1042.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/804987/ltcube_509414401_509673601_4FGL_J2322.8-4916_daily_bin1042.fits
.....................!
real 191.47
user 185.75
sys 5.17

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/804987/ft1_filtered_4FGL_J2322.8-4916_daily_bin1042.fits scfile=/scratch/kocevski/804987/ft2_4FGL_J2322.8-4916_daily_bin1042.fits outfile=/scratch/kocevski/804987/cmap_509414401_509673601_4FGL_J2322.8-4916_daily_bin1042.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804987/ft1_filtered_4FGL_J2322.8-4916_daily_bin1042.fits scfile=/scratch/kocevski/804987/ft2_4FGL_J2322.8-4916_daily_bin1042.fits outfile=/scratch/kocevski/804987/cmap_HighResolution_509414401_509673601_4FGL_J2322.8-4916_daily_bin1042.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.58
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.645       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3424       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .76855       1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.440       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17746E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13749E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8352       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0599       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .24503E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5360       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.4286       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.3705       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.649       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4206       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .65596       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=   4304.877     FROM MIGRAD    STATUS=CONVERGED    938 CALLS     4925 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.585        82.863       -.61344E-04   -.47150E-05
   2  Prefactor     .10000E-03    29.132       -.83559E-05** at limit **
   3  Prefactor     .10000E-03    96.572        .28040E-04** at limit **
   4  Prefactor     .10000E-03    5.9337        .11448E-05** at limit **
   5  Prefactor     6.3403        12.902       -.19904E-05   -.58116E-04
   6  Prefactor     .76144        9.6273       -.26198E-05   -.14651E-03
   7  Prefactor     74.356        139.75       -.87603E-04    .10976E-04
   8  norm          .10000E-03    3.2920        .10586E-06** at limit **
   9  Prefactor     .10000E-03    2.9430       -.94037E-07** at limit **
  10  Prefactor     .10000E-03    45.379       -.22663E-04** at limit **
  11  Prefactor     .10000E-03    5.5288       -.31081E-06** at limit **
  12  Prefactor     .10000E-03    11.172       -.11468E-04** at limit **
  13  Prefactor     .10000E-03    5.5698       -.81339E-06** at limit **
  14  Prefactor     .10000E-03    216.77       -.33347E-04** at limit **
  15  Prefactor     9.8353        10.682       -.89625E-06   -.11571E-05
  16  Prefactor     .10000E-03    11.905        .49743E-05** at limit **
  17  Prefactor     5.0495        17.227       -.39614E-05   -.67094E-04
  18  norm          .10000E-03    7.5000       -.12295E-05** at limit **
  19  norm          .10000E-03    2.2130       -.86595E-07** at limit **
  20  norm          .10000E-03    5.5532        .76697E-06** at limit **
  21  Prefactor     2.5342        4.7610        .29010E-05   -.30989E-03
  22  Prefactor     .10000E-03    32.855        .22468E-04** at limit **
  23  norm          6.4060        6.3217       -.44717E-06   -.68039E-03
  24  Prefactor     .10000E-03    14.803        .13709E-04** at limit **
  25  norm          .10000E-03    .57819       -.12877E-06** at limit **
  26  norm          5.3728        6.7671        .82763E-06   -.37307E-03
  27  Prefactor     22.626        21.688       -.11288E-05    .19571E-04
  28  Prefactor     .10000E-03    1.0584       -.94643E-07** at limit **
  29  Prefactor     .10000E-03    15.724       -.14609E-04** at limit **
  30  norm          .10000E-03    9.3855        .38261E-05** at limit **
  31  Prefactor     .10000E-03    4.2643       -.15248E-06** at limit **
  32  Prefactor     .10000E-03    2.3235       -.56789E-07** at limit **
  33  Normalizat    1.4211        .22062        .41743E-05   -.59852E-04
  34  Prefactor     .65561        .21977        .20984E-05    .18367E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.34028
  Prefactor  = 0.761439
  Prefactor  = 74.356
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.83531
  Prefactor  = 0.0001
  Prefactor  = 5.04952
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 2.53416
  Prefactor  = 0.0001
  norm       = 6.40601
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.37279
  Prefactor  = 22.626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42111
  Prefactor  = 0.655607
 **********
 **   18 **HESSE 
 **********

 FCN=   4304.877     FROM HESSE     STATUS=OK           726 CALLS     5651 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.585        83.011        .27904E-03   -1.4270    
   2  Prefactor     .10000E-03    29.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    97.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9704        .15608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3403        12.844        .15938E-03   -1.5204    
   6  Prefactor     .76144        23.779        .38538E-02   -1.5533    
   7  Prefactor     74.356        139.92        .23268E-03   -1.3981    
   8  norm          .10000E-03    3.2959        .11627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3803        .21796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6288        .15058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.5875        .15121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    217.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.8353        10.676        .12778E-03   -1.5081    
  16  Prefactor     .10000E-03    11.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0495        17.298        .17875E-03   -1.5259    
  18  norm          .10000E-03    7.5084        .17551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2131        .95324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.762        .27366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5342        4.7257        .18935E-03   -1.5390    
  22  Prefactor     .10000E-03    32.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.4060        5.7434        .13639E-03   -1.5202    
  24  Prefactor     .10000E-03    14.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .59809        .97084E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.3728        6.7220        .17321E-03   -1.5244    
  27  Prefactor     22.626        21.774        .84166E-04   -1.4756    
  28  Prefactor     .10000E-03    1.0606        .65911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    15.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    9.3869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    4.3571        .13222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.3375        .97641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.4211        .26680        .21171E-03   -.80020    
  34  Prefactor     .65561        .26267        .30698E-03   -1.0529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3672e-09
Minuit parameter uncertainties:
  1  83.1976
  2  5.93227e-05
  3  0.000360514
  4  2.30349e-05
  5  12.8493
  6  8.51335
  7  140.546
  8  1.67047e-05
  9  8.94736e-05
  10  3.19624e-05
  11  3.1203e-05
  12  4.22836e-05
  13  9.47073e-06
  14  9.65056e-06
  15  10.6785
  16  1.34614e-06
  17  17.3151
  18  1.87466e-05
  19  3.05871e-06
  20  0.000374465
  21  4.72642
  22  0.000100222
  23  5.74387
  24  0.000164235
  25  7.05955e-06
  26  6.72291
  27  21.7812
  28  3.91555e-06
  29  4.9192e-05
  30  7.94241e-06
  31  3.26104e-05
  32  4.98238e-06
  33  0.267061
  34  0.26317
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  3.059e-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:  6.556e-01  2.632e-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.421e+00  2.671e-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.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804987/likelihoodResults_509414401_509673601_4FGL_J2322.8-4916_daily_bin1042.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) = 4304.87757226
delta logL = -0.00100667820789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4304.87656556
delta logL = 2.23690221901e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6042       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65557       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=   4304.877     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      243 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    129.38        .95668E-02** at limit **
   2  alpha         1.2815        3.0299        .18049        .27715E-08
   3  Normalizat    1.4211        .40483E-01    .21171E-03    .84310E-05
   4  Prefactor     .65560        .41686E-01    .30698E-03    .55181E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.28151
  Normalizat = 1.42111
  Prefactor  = 0.655601
 **********
 **   18 **HESSE 
 **********

 FCN=   4304.877     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3772        .98746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2815        3.4967        .72195E-02   -.50911    
   3  Normalizat    1.4211        .25245        .84682E-05   -.80020    
   4  Prefactor     .65560        .25972        .12279E-04   -1.0529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37266e-13
Minuit parameter uncertainties:
  1  7.78253e-07
  2  184.741
  3  0.252676
  4  0.260198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804987': 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) = 4304.87656404
delta logL = 1.53784367285e-06

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  7.783e-07  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.282e+00  1.847e+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:  6.556e-01  2.602e-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.421e+00  2.527e-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/804987/cmap_HighResolution_509414401_509673601_4FGL_J2322.8-4916_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-05', job_status='DONE', photon_flux_upper_limit='2.07e-08', time_completed='2021-09-29 14:30:48.070965', job_id='804987', GAL2='0.66', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1632951048.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1042' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:30:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 804987: <4FGL_J2322.8-4916_daily_bin1042> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1042 350.708 -49.2725 509414401 509673601 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 :                                   772.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

