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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1081
RA = 350.708, Dec = -49.2725
tmin = 519523201, tmax = 519782401
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='805048', job_status='RUN', time_executed='2021-09-29 14:16:13.357110', time_epoch_executed='1632950173.36' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805048

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805048/ft1_4FGL_J2322.8-4916_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805048/ft2_4FGL_J2322.8-4916_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805048/ft1_4FGL_J2322.8-4916_daily_bin1081.fits outfile=/scratch/kocevski/805048/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1081.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=519523201.0 tmax=519782401.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.95
user 2.72
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805048/ft1_filtered_4FGL_J2322.8-4916_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/805048/ft2_4FGL_J2322.8-4916_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/805048/ltcube_519523201_519782401_4FGL_J2322.8-4916_daily_bin1081.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/805048/ft2_4FGL_J2322.8-4916_daily_bin1081.fits
.....................!
real 9.89
user 9.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805048/ft1_filtered_4FGL_J2322.8-4916_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/805048/ft2_4FGL_J2322.8-4916_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/805048/ltcube_519523201_519782401_4FGL_J2322.8-4916_daily_bin1081.fits outfile=/scratch/kocevski/805048/expmap_519523201_519782401_4FGL_J2322.8-4916_daily_bin1081.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/805048/ltcube_519523201_519782401_4FGL_J2322.8-4916_daily_bin1081.fits
.....................!
real 190.16
user 185.30
sys 4.41

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/805048/ft1_filtered_4FGL_J2322.8-4916_daily_bin1081.fits scfile=/scratch/kocevski/805048/ft2_4FGL_J2322.8-4916_daily_bin1081.fits outfile=/scratch/kocevski/805048/cmap_519523201_519782401_4FGL_J2322.8-4916_daily_bin1081.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.55
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.777       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22899E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0011       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.568       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.292       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.6548       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.6259       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8057       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.4978       1.0000         .10000E-03   10000.    
    23 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.433       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .72810E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.3503       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    1.0773       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.8688       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .80997       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0758       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4530.890     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     4051 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10034E-03    25.526        .68507E-05** at limit **
   2  Prefactor     21.292        1.3379        .16248E-06    .59398E-03
   3  Prefactor     30.740        7.9089       -.11681E-05   -.63802E-02
   4  Prefactor     .10000E-03    4.2549       -.50154E-06** at limit **
   5  Prefactor     .10000E-03    2.4828       -.12649E-05** at limit **
   6  Prefactor     .10000E-03    2.9743        .11741E-06** at limit **
   7  Prefactor     .34480E-03    904.51       -.68638E-04** at limit **
   8  norm          .10000E-03    7.1885        .25514E-05** at limit **
   9  Prefactor     .10000E-03    1.5082       -.21666E-05** at limit **
  10  Prefactor     .10201E-03    88.309       -.19097E-04** at limit **
  11  Prefactor     .99896        3.3296       -.42263E-06   -.36758E-04
  12  Prefactor     .10091E-03    26.594        .73983E-06** at limit **
  13  Prefactor     18.563        1.0666        .56387E-07    .67050E-03
  14  Prefactor     .10438E-03    33.280       -.45379E-05** at limit **
  15  Prefactor     .10000E-03    2.3368       -.18787E-06** at limit **
  16  Prefactor     11.293        1.0052        .30344E-07    .32481E-04
  17  Prefactor     .10000E-03    7.3498        .62985E-06** at limit **
  18  norm          8.6558        1.0134       -.48011E-07   -.30535E-04
  19  norm          .10000E-03    2.0433       -.76117E-06** at limit **
  20  norm          6.6257        4.6740       -.42347E-06    .65982E-03
  21  Prefactor     2.8058        4.8685       -.18102E-05   -.60555E-03
  22  Prefactor     8.5298        7.2969        .13703E-05    .36455E-02
  23  norm          .10000E-03    2.7567        .45997E-07** at limit **
  24  Prefactor     14.433        1.4320       -.17369E-06   -.32670E-03
  25  norm          .10000E-03    .28533        .88982E-07** at limit **
  26  norm          .10000E-03    1.8201        .21741E-05** at limit **
  27  Prefactor     .21838E-03    63.921       -.79565E-05** at limit **
  28  Prefactor     1.3568        4.2442       -.26277E-05   -.12082E-02
  29  Prefactor     .10441E-03    37.597       -.12489E-04** at limit **
  30  norm          1.0695        1.9060       -.13848E-05   -.81601E-04
  31  Prefactor     2.8673        6.4010       -.78507E-06   -.83621E-03
  32  Prefactor     .10000E-03    2.6299        .31619E-06** at limit **
  33  Normalizat    .80976        .22151       -.52344E-05   -.19474E-04
  34  Prefactor     1.0758        .23985        .58194E-05    .21250E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100337
  Prefactor  = 21.2916
  Prefactor  = 30.74
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000344799
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102013
  Prefactor  = 0.998956
  Prefactor  = 0.00010091
  Prefactor  = 18.5634
  Prefactor  = 0.00010438
  Prefactor  = 0.0001
  Prefactor  = 11.2926
  Prefactor  = 0.0001
  norm       = 8.65577
  norm       = 0.0001
  norm       = 6.62572
  Prefactor  = 2.80577
  Prefactor  = 8.52982
  norm       = 0.0001
  Prefactor  = 14.4332
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000218377
  Prefactor  = 1.35683
  Prefactor  = 0.000104407
  norm       = 1.06949
  Prefactor  = 2.86733
  Prefactor  = 0.0001
  Normalizat = 0.809763
  Prefactor  = 1.07579
 **********
 **   18 **HESSE 
 **********

 FCN=   4530.890     FROM HESSE     STATUS=OK           798 CALLS     4849 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10034E-03    25.770        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.292        19.586        .21703E-02   -1.4785    
   3  Prefactor     30.740        36.473        .18056E-02   -1.4599    
   4  Prefactor     .10000E-03    4.2437        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4790        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9621        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .34480E-03    1061.3        .91370E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.0559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4974        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10201E-03    89.253        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .99896        3.3563        .50498E-01   -1.5508    
  12  Prefactor     .10091E-03    27.214        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.563        13.518        .23237E-02   -1.4846    
  14  Prefactor     .10438E-03    36.730        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3305        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.293        19.401        .29805E-02   -1.5036    
  17  Prefactor     .10000E-03    7.3262        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.6558        11.282        .34064E-02   -1.5119    
  19  norm          .10000E-03    2.0428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.6257        4.7065        .38974E-02   -1.5193    
  21  Prefactor     2.8058        5.7634        .60715E-02   -1.5373    
  22  Prefactor     8.5298        30.533        .34379E-02   -1.5124    
  23  norm          .10000E-03    2.7422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.433        13.818        .26357E-02   -1.4948    
  25  norm          .10000E-03    .28317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.8057        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .21838E-03    14.222        .10479       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.3568        4.4950        .94133E-02   -1.5475    
  29  Prefactor     .10441E-03    40.649        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.0695        114.71        .11634E-01   -1.5501    
  31  Prefactor     2.8673        7.1375        .59998E-02   -1.5369    
  32  Prefactor     .10000E-03    2.5955        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .80976        .19696        .43740E-01   -.99708    
  34  Prefactor     1.0758        .20499        .38589E-01   -.90244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37437e-06
Minuit parameter uncertainties:
  1  0.00589254
  2  19.5918
  3  36.4992
  4  2.76765e-06
  5  1.22783e-05
  6  1.57253e-06
  7  1.03837
  8  1.99289e-06
  9  1.02486e-05
  10  0.0268456
  11  3.35697
  12  0.00995965
  13  13.5204
  14  0.025383
  15  1.47084e-06
  16  19.4117
  17  3.27142e-05
  18  11.285
  19  4.30445e-06
  20  4.70679
  21  5.76458
  22  30.5886
  23  1.19083e-06
  24  13.8212
  25  2.41616e-07
  26  1.15313e-05
  27  0.0820831
  28  4.49608
  29  0.0267858
  30  22.195
  31  7.13963
  32  1.60436e-06
  33  0.197132
  34  0.205144
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  4.304e-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:  1.076e+00  2.051e-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:  8.098e-01  1.971e-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: 1.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805048/likelihoodResults_519523201_519782401_4FGL_J2322.8-4916_daily_bin1081.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) = 4530.88953039
delta logL = -3.80495475838e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4530.88952648
delta logL = 1.0449821275e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5870       1.0000          .0000       5.0000    
     3 'Normalizat'    .80985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0757       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=   4530.890     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      239 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    108.87        .94756E-02** at limit **
   2  alpha         1.2876        2.8367        .18123       -.48303E-08
   3  Normalizat    .80976        .32626E-01    .23841E-03    .25635E-03
   4  Prefactor     1.0758        .35940E-01    .22969E-03    .26670E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.28761
  Normalizat = 0.809764
  Prefactor  = 1.07579
 **********
 **   18 **HESSE 
 **********

 FCN=   4530.890     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2179        .97841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2876        3.1044        .72492E-02   -.50631    
   3  Normalizat    .80976        .21714        .47681E-04   -.99707    
   4  Prefactor     1.0758        .23921        .45939E-04   -.90244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4985e-11
Minuit parameter uncertainties:
  1  8.24342e-06
  2  166.624
  3  0.217375
  4  0.239451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805048': 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) = 4530.88952468
delta logL = 1.90090304386e-06

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  8.243e-06  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.288e+00  1.666e+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:  1.076e+00  2.395e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  8.098e-01  2.174e-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/805048/cmap_HighResolution_519523201_519782401_4FGL_J2322.8-4916_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-05', job_status='DONE', photon_flux_upper_limit='1.88e-08', time_completed='2021-09-29 14:28:50.072900', job_id='805048', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632950930.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.90e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1081' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:28:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 805048: <4FGL_J2322.8-4916_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1081 350.708 -49.2725 519523201 519782401 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 :                                   735.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

