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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1105
RA = 350.708, Dec = -49.2725
tmin = 525744001, tmax = 526003201
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='805082', job_status='RUN', time_executed='2021-09-29 14:15:36.307778', time_epoch_executed='1632950136.31' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805082

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805082/ft1_4FGL_J2322.8-4916_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805082/ft2_4FGL_J2322.8-4916_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805082/ft1_4FGL_J2322.8-4916_daily_bin1105.fits outfile=/scratch/kocevski/805082/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1105.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=525744001.0 tmax=526003201.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 4.33
user 4.09
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805082/ft1_filtered_4FGL_J2322.8-4916_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/805082/ft2_4FGL_J2322.8-4916_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/805082/ltcube_525744001_526003201_4FGL_J2322.8-4916_daily_bin1105.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/805082/ft2_4FGL_J2322.8-4916_daily_bin1105.fits
.....................!
real 11.89
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805082/ft1_filtered_4FGL_J2322.8-4916_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/805082/ft2_4FGL_J2322.8-4916_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/805082/ltcube_525744001_526003201_4FGL_J2322.8-4916_daily_bin1105.fits outfile=/scratch/kocevski/805082/expmap_525744001_526003201_4FGL_J2322.8-4916_daily_bin1105.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/805082/ltcube_525744001_526003201_4FGL_J2322.8-4916_daily_bin1105.fits
.....................!
real 192.01
user 186.60
sys 5.03

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/805082/ft1_filtered_4FGL_J2322.8-4916_daily_bin1105.fits scfile=/scratch/kocevski/805082/ft2_4FGL_J2322.8-4916_daily_bin1105.fits outfile=/scratch/kocevski/805082/cmap_525744001_526003201_4FGL_J2322.8-4916_daily_bin1105.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805082/ft1_filtered_4FGL_J2322.8-4916_daily_bin1105.fits scfile=/scratch/kocevski/805082/ft2_4FGL_J2322.8-4916_daily_bin1105.fits outfile=/scratch/kocevski/805082/cmap_HighResolution_525744001_526003201_4FGL_J2322.8-4916_daily_bin1105.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805082/ft1_filtered_4FGL_J2322.8-4916_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/805082/ft2_4FGL_J2322.8-4916_daily_bin1105.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805082/Model_4FGL_J2322.8-4916_daily_bin1105.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/805082/ft1_filtered_4FGL_J2322.8-4916_daily_bin1105.fits.....................!
real 42.33
user 40.92
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.428       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.115       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9842       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.195       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .51106       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.569       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8279       1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.392       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12449E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4973       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.039       1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.2832       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.339       1.0000         .10000E-03   10000.    
    25 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.1215       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11030E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    11.367       1.0000         .10000E-03   10000.    
    30 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.4120       1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.4520       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .65432       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .94033       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=   5764.766     FROM MIGRAD    STATUS=CONVERGED    970 CALLS     4896 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.533        61.734        .13768E-04   -.54196E-06
   2  Prefactor     .10000E-03    13.167        .18775E-05** at limit **
   3  Prefactor     59.112        37.350        .80871E-05   -.12079E-04
   4  Prefactor     .10000E-03    4.1128        .37911E-06** at limit **
   5  Prefactor     3.9843        4.7480        .68861E-06   -.52461E-04
   6  Prefactor     .10000E-03    4.1524       -.15397E-06** at limit **
   7  Prefactor     12.052        61.853        .20069E-04   -.10700E-05
   8  norm          .10000E-03    1.8954        .54827E-08** at limit **
   9  Prefactor     .51275        1.9995       -.60775E-06   -.54330E-03
  10  Prefactor     .10000E-03    18.212        .34357E-07** at limit **
  11  Prefactor     18.570        6.1989        .23935E-06    .37005E-04
  12  Prefactor     10.396        17.938       -.44213E-05   -.38791E-04
  13  Prefactor     5.8289        9.4134        .57285E-05   -.22756E-04
  14  Prefactor     55.320        84.947       -.45671E-04   -.92655E-05
  15  Prefactor     .10001E-03    4.6645       -.45551E-06** at limit **
  16  Prefactor     6.5004        60.231       -.18686E-06   -.70242E-07
  17  Prefactor     14.030        13.753        .13477E-05   -.26534E-04
  18  norm          .10000E-03    2.7590       -.27210E-08** at limit **
  19  norm          .10000E-03    1.8766        .17524E-07** at limit **
  20  norm          .10000E-03    1.9560        .20684E-07** at limit **
  21  Prefactor     .10000E-03    4.1268       -.14629E-06** at limit **
  22  Prefactor     .10000E-03    16.295       -.40215E-07** at limit **
  23  norm          8.2822        4.2991       -.13638E-06   -.13389E-03
  24  Prefactor     10.332        11.083       -.74000E-06   -.40992E-04
  25  norm          .10000E-03    .31660        .17998E-07** at limit **
  26  norm          2.1217        2.3234        .32150E-08   -.60823E-04
  27  Prefactor     .10000E-03    7.0752       -.93630E-08** at limit **
  28  Prefactor     .10000E-03    1.8964        .23373E-07** at limit **
  29  Prefactor     11.424        25.079       -.26577E-05   -.39842E-04
  30  norm          .10000E-03    7.5279        .59364E-07** at limit **
  31  Prefactor     5.4197        4.3029       -.53775E-06   -.15194E-03
  32  Prefactor     3.4504        3.0931       -.26241E-06   -.26250E-03
  33  Normalizat    .65472        .16682       -.11777E-05    .10099E-03
  34  Prefactor     .94001        .16695        .53721E-06    .29954E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.5327
  Prefactor  = 0.0001
  Prefactor  = 59.1118
  Prefactor  = 0.0001
  Prefactor  = 3.9843
  Prefactor  = 0.0001
  Prefactor  = 12.0521
  norm       = 0.0001
  Prefactor  = 0.512755
  Prefactor  = 0.0001
  Prefactor  = 18.5702
  Prefactor  = 10.3959
  Prefactor  = 5.82889
  Prefactor  = 55.3203
  Prefactor  = 0.000100006
  Prefactor  = 6.50045
  Prefactor  = 14.0297
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.28219
  Prefactor  = 10.3321
  norm       = 0.0001
  norm       = 2.12166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4244
  norm       = 0.0001
  Prefactor  = 5.41972
  Prefactor  = 3.45037
  Normalizat = 0.65472
  Prefactor  = 0.940014
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.766     FROM HESSE     STATUS=OK           738 CALLS     5634 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.533        61.676        .53402E-04   -1.4203    
   2  Prefactor     .10000E-03    13.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     59.112        37.313        .52181E-04   -1.4169    
   4  Prefactor     .10000E-03    4.1328        .15036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9843        4.7427        .17511E-03   -1.5309    
   6  Prefactor     .10000E-03    4.2140        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.052        61.763        .11471E-03   -1.5014    
   8  norm          .10000E-03    1.8966        .10208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .51275        3.3787        .19956E-02   -1.5565    
  10  Prefactor     .10000E-03    18.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.570        6.1912        .92945E-04   -1.4846    
  12  Prefactor     10.396        17.888        .12427E-03   -1.5063    
  13  Prefactor     5.8289        9.3492        .16636E-03   -1.5225    
  14  Prefactor     55.320        84.754        .53896E-04   -1.4219    
  15  Prefactor     .10001E-03    13.054        .31363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.5004        59.981        .15745E-03   -1.5198    
  17  Prefactor     14.030        13.739        .10690E-03   -1.4959    
  18  norm          .10000E-03    2.7595        .12317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.8779        .10157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9621        .10364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1450        .29799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.2822        4.2930        .10609E-03   -1.5132    
  24  Prefactor     10.332        10.959        .12461E-03   -1.5065    
  25  norm          .10000E-03    .32846        .83093E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.1217        2.3148        .11581E-03   -1.5417    
  27  Prefactor     .10000E-03    7.0953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.0660        .18366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     11.424        23.593        .11882E-03   -1.5032    
  30  norm          .10000E-03    7.5294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.4197        4.2588        .13174E-03   -1.5242    
  32  Prefactor     3.4504        3.0838        .12038E-03   -1.5336    
  33  Normalizat    .65472        .19891        .24294E-03   -1.0571    
  34  Prefactor     .94001        .20052        .22277E-03   -.94757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89182e-10
Minuit parameter uncertainties:
  1  61.7458
  2  6.6561e-05
  3  37.3276
  4  6.01251e-07
  5  4.74317
  6  2.28703e-05
  7  54.6555
  8  1.01494e-06
  9  2.63239
  10  1.63953e-05
  11  6.1914
  12  17.8973
  13  9.35158
  14  84.9391
  15  0.000580773
  16  39.5441
  17  13.7416
  18  9.04811e-07
  19  1.93094e-07
  20  1.54724e-06
  21  3.18368e-05
  22  1.85515e-05
  23  4.29316
  24  10.9614
  25  1.08802e-06
  26  2.31485
  27  5.86963e-06
  28  8.00413e-06
  29  23.6119
  30  2.57776e-06
  31  4.25905
  32  3.08389
  33  0.199124
  34  0.200674
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.931e-07  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:  9.400e-01  2.007e-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:  6.547e-01  1.991e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805082/likelihoodResults_525744001_526003201_4FGL_J2322.8-4916_daily_bin1105.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) = 5764.76808029
delta logL = -0.00239704895012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5764.76568314
delta logL = 9.83563950285e-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.6017       1.0000          .0000       5.0000    
     3 'Normalizat'    .65472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94001       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=   5764.766     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      228 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    93.959        .10199E-01** at limit **
   2  alpha         1.3279        2.8634        .18059        .18949E-06
   3  Normalizat    .65472        .26045E-01    .24294E-03   -.75061E-04
   4  Prefactor     .94001        .28401E-01    .22277E-03   -.11028E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.32793
  Normalizat = 0.654719
  Prefactor  = 0.940014
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.766     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0014        .10474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3279        3.0291        .72236E-02   -.48796    
   3  Normalizat    .65472        .18036        .97177E-05   -1.0571    
   4  Prefactor     .94001        .19670        .89108E-05   -.94757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98078e-10
Minuit parameter uncertainties:
  1  4.08072e-06
  2  158.381
  3  0.180527
  4  0.196848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805082': 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) = 5764.76568165
delta logL = 1.58655348059e-06

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  4.081e-06  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.328e+00  1.584e+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:  9.400e-01  1.968e-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:  6.547e-01  1.805e-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/805082/cmap_HighResolution_525744001_526003201_4FGL_J2322.8-4916_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', job_status='DONE', photon_flux_upper_limit='1.67e-08', time_completed='2021-09-29 14:30:50.286071', job_id='805082', GAL2='0.94', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632951050.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1105' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:30:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 805082: <4FGL_J2322.8-4916_daily_bin1105> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1105 350.708 -49.2725 525744001 526003201 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 :                                   907.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

