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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1337
RA = 350.708, Dec = -49.2725
tmin = 585878401, tmax = 586137601
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='805423', job_status='RUN', time_executed='2021-09-29 14:16:08.035240', time_epoch_executed='1632950168.04' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805423/ft1_4FGL_J2322.8-4916_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805423/ft2_4FGL_J2322.8-4916_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805423/ft1_4FGL_J2322.8-4916_daily_bin1337.fits outfile=/scratch/kocevski/805423/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1337.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=585878401.0 tmax=586137601.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.82
user 2.64
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805423/ft1_filtered_4FGL_J2322.8-4916_daily_bin1337.fits" evtable="EVENTS" scfile=/scratch/kocevski/805423/ft2_4FGL_J2322.8-4916_daily_bin1337.fits sctable="SC_DATA" outfile=/scratch/kocevski/805423/ltcube_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.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/805423/ft2_4FGL_J2322.8-4916_daily_bin1337.fits
.....................!
real 12.66
user 12.30
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805423/ft1_filtered_4FGL_J2322.8-4916_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/805423/ft2_4FGL_J2322.8-4916_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/805423/ltcube_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.fits outfile=/scratch/kocevski/805423/expmap_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.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/805423/ltcube_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.fits
.....................!
real 190.72
user 185.62
sys 4.73

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/805423/ft1_filtered_4FGL_J2322.8-4916_daily_bin1337.fits scfile=/scratch/kocevski/805423/ft2_4FGL_J2322.8-4916_daily_bin1337.fits outfile=/scratch/kocevski/805423/cmap_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.708 yref=-49.2725 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805423/ft1_filtered_4FGL_J2322.8-4916_daily_bin1337.fits scfile=/scratch/kocevski/805423/ft2_4FGL_J2322.8-4916_daily_bin1337.fits outfile=/scratch/kocevski/805423/cmap_HighResolution_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.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/805423/ft1_filtered_4FGL_J2322.8-4916_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/805423/ft2_4FGL_J2322.8-4916_daily_bin1337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805423/Model_4FGL_J2322.8-4916_daily_bin1337.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/805423/ft1_filtered_4FGL_J2322.8-4916_daily_bin1337.fits.....................!
real 30.15
user 28.86
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/805423/ft1_filtered_4FGL_J2322.8-4916_daily_bin1337.fits', '/scratch/kocevski/805423/ft2_4FGL_J2322.8-4916_daily_bin1337.fits', expMap='/scratch/kocevski/805423/expmap_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.fits', expCube='/scratch/kocevski/805423/ltcube_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/805423/Model_4FGL_J2322.8-4916_daily_bin1337.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/805423/ft1_filtered_4FGL_J2322.8-4916_daily_bin1337.fits
Spacecraft file(s): /scratch/kocevski/805423/ft2_4FGL_J2322.8-4916_daily_bin1337.fits
Exposure map: /scratch/kocevski/805423/expmap_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.fits
Exposure cube: /scratch/kocevski/805423/ltcube_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/805423/Model_4FGL_J2322.8-4916_daily_bin1337.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3168.94329916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.765       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3591       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4005       1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.595       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1175       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    85.455       1.0000         .10000E-03   10000.    
     8 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.677       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27576E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.190       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.253       1.0000         .10000E-03   10000.    
    18 'norm      '    12.812       1.0000         .10000E-03   10000.    
    19 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4434       1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.314       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.0199       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22651E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.8964       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .29936E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .49351       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2824       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.2266       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=   3168.904     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     4851 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.688        203.40       -.24136E-05   -.29131E-04
   2  Prefactor     4.3767        82.871       -.87967E-05   -.46244E-04
   3  Prefactor     7.3792        142.27       -.16779E-05   -.82264E-04
   4  Prefactor     44.593        22.809        .80510E-07   -.14872E-03
   5  Prefactor     9.1208        15.377        .51335E-07   -.15868E-03
   6  Prefactor     .10000E-03    3.0775        .68401E-07** at limit **
   7  Prefactor     84.653        580.48       -.12573E-04   -.45732E-04
   8  norm          .10000E-03    27.878       -.39120E-05** at limit **
   9  Prefactor     14.675        12.785        .10339E-06   -.94457E-05
  10  Prefactor     .10000E-03    246.23        .57224E-06** at limit **
  11  Prefactor     .10000E-03    8.3716       -.12684E-05** at limit **
  12  Prefactor     .10000E-03    31.114       -.11659E-05** at limit **
  13  Prefactor     39.194        26.933        .38378E-06    .14279E-05
  14  Prefactor     .10000E-03    96.452        .14509E-05** at limit **
  15  Prefactor     .10000E-03    21.229        .12145E-05** at limit **
  16  Prefactor     .10001E-03    133.95       -.16217E-05** at limit **
  17  Prefactor     25.243        42.760       -.32093E-05   -.80985E-04
  18  norm          12.810        21.636       -.90621E-06   -.21237E-04
  19  norm          .10000E-03    31.994       -.20100E-05** at limit **
  20  norm          .10000E-03    3.8437        .21304E-06** at limit **
  21  Prefactor     3.4442        12.682        .14809E-04   -.83324E-04
  22  Prefactor     44.329        68.599       -.20879E-06    .52103E-05
  23  norm          .10000E-03    3.3783        .49302E-06** at limit **
  24  Prefactor     .10000E-03    21.955       -.26936E-05** at limit **
  25  norm          4.0204        2.5511       -.65142E-06   -.60354E-03
  26  norm          .10000E-03    2.7852        .29043E-06** at limit **
  27  Prefactor     .10000E-03    20.544        .62042E-06** at limit **
  28  Prefactor     .10011E-03    4.1466        .13809E-05** at limit **
  29  Prefactor     1.8870        89.609       -.90540E-08   -.64818E-04
  30  norm          .10000E-03    21.342        .14537E-06** at limit **
  31  Prefactor     .10112E-03    6.0347        .19805E-05** at limit **
  32  Prefactor     .49271        8.4512        .11463E-05    .72442E-04
  33  Normalizat    1.2816        .34325       -.30726E-05   -.37749E-03
  34  Prefactor     1.2276        .33833       -.30351E-06   -.35140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6876
  Prefactor  = 4.37671
  Prefactor  = 7.37917
  Prefactor  = 44.5931
  Prefactor  = 9.12081
  Prefactor  = 0.0001
  Prefactor  = 84.6532
  norm       = 0.0001
  Prefactor  = 14.6751
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.1937
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 25.2428
  norm       = 12.8099
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.44421
  Prefactor  = 44.3287
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 4.02038
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100108
  Prefactor  = 1.88703
  norm       = 0.0001
  Prefactor  = 0.000101118
  Prefactor  = 0.492706
  Normalizat = 1.28163
  Prefactor  = 1.22756
 **********
 **   18 **HESSE 
 **********

 FCN=   3168.904     FROM HESSE     STATUS=OK           724 CALLS     5575 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.688        204.74        .97816E-04   -1.4891    
   2  Prefactor     4.3767        76.521        .19292E-03   -1.5290    
   3  Prefactor     7.3792        138.54        .14743E-03   -1.5165    
   4  Prefactor     44.593        22.844        .60036E-04   -1.4371    
   5  Prefactor     9.1208        15.333        .13273E-03   -1.5104    
   6  Prefactor     .10000E-03    3.0782        .96450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     84.653        589.48        .21729E-03   -1.3865    
   8  norm          .10000E-03    28.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.675        12.790        .10455E-03   -1.4942    
  10  Prefactor     .10000E-03    246.75        .21425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.3814        .15892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.194        26.952        .64027E-04   -1.4455    
  14  Prefactor     .10000E-03    96.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    134.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.243        42.751        .79714E-04   -1.4703    
  18  norm          12.810        21.627        .11191E-03   -1.4992    
  19  norm          .10000E-03    32.895        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.8448        .10777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4442        12.658        .10898E-02   -1.5337    
  22  Prefactor     44.329        68.827        .60226E-04   -1.4375    
  23  norm          .10000E-03    3.3801        .10094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.0204        2.5432        .63396E-04   -1.5307    
  26  norm          .10000E-03    2.7896        .91706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10011E-03    25.233        .20853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.8870        87.433        .30207E-03   -1.5433    
  30  norm          .10000E-03    21.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10112E-03    74.746        .25284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .49271        16.487        .27696E-02   -1.5568    
  33  Normalizat    1.2816        .43521        .28122E-03   -.84116    
  34  Prefactor     1.2276        .42895        .30150E-03   -.85487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98359e-08
Minuit parameter uncertainties:
  1  117.405
  2  36.6556
  3  64.1202
  4  22.8488
  5  15.3396
  6  3.13764e-06
  7  453.302
  8  0.000134247
  9  12.7926
  10  0.000968148
  11  3.52807e-05
  12  1.59918e-05
  13  26.9599
  14  0.00136149
  15  4.88851e-05
  16  0.00187881
  17  42.8027
  18  21.6402
  19  0.000272106
  20  4.73659e-07
  21  12.6675
  22  68.9508
  23  1.71332e-06
  24  0.000606606
  25  2.54324
  26  1.33087e-06
  27  6.24117e-05
  28  0.00330604
  29  25.729
  30  1.34401e-05
  31  0.0183078
  32  5.70142
  33  0.436463
  34  0.43018
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.228e+00  4.302e-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.282e+00  4.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: 6.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805423/likelihoodResults_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.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) = 3168.90416594
delta logL = -0.000144835640185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3168.90402398
delta logL = -2.86733575194e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25413E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5843       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2277       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.

 FCN=   3168.904     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    46.158        .10729E-01** at limit **
   2  alpha         1.5862        3.2888        .45337       -.14751E-04
   3  Normalizat    1.2816        .31287        .63575E-01   -.68806E-05
   4  Prefactor     1.2276        .33053        .68148E-01    .46864E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.58617
  Normalizat = 1.28164
  Prefactor  = 1.22756
 **********
 **   18 **HESSE 
 **********

 FCN=   3168.904     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    29.416        .42917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5862        3.2691        .50000       -.37420    
   3  Normalizat    1.2816        .39294        .28122E-03   -.84116    
   4  Prefactor     1.2276        .41489        .30149E-03   -.85487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93495e-10
Minuit parameter uncertainties:
  1  0.000539907
  2  2.32811
  3  0.393857
  4  0.416005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805423': 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) = 3168.90402127
delta logL = -1.61171101354e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  5.399e-04  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.586e+00  2.328e+00  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:  1.228e+00  4.160e-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.282e+00  3.939e-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/805423/cmap_HighResolution_585878401_586137601_4FGL_J2322.8-4916_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-04', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2021-09-29 14:27:02.578956', job_id='805423', GAL2='1.23', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632950822.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='-1.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1337' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:27:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 805423: <4FGL_J2322.8-4916_daily_bin1337> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1337 350.708 -49.2725 585878401 586137601 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 :                                   639.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            673 sec.

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

