/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 90 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7404
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1448
RA = 350.708, Dec = -49.2725
tmin = 614649601, tmax = 614908801
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='806592', job_status='RUN', time_executed='2021-09-29 14:22:03.638470', time_epoch_executed='1632950523.64' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1448'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806592

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806592/ft1_4FGL_J2322.8-4916_daily_bin1448.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806592/ft2_4FGL_J2322.8-4916_daily_bin1448.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806592/ft1_4FGL_J2322.8-4916_daily_bin1448.fits outfile=/scratch/kocevski/806592/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1448.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=614649601.0 tmax=614908801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.62
user 3.42
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806592/ft1_filtered_4FGL_J2322.8-4916_daily_bin1448.fits" evtable="EVENTS" scfile=/scratch/kocevski/806592/ft2_4FGL_J2322.8-4916_daily_bin1448.fits sctable="SC_DATA" outfile=/scratch/kocevski/806592/ltcube_614649601_614908801_4FGL_J2322.8-4916_daily_bin1448.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/806592/ft2_4FGL_J2322.8-4916_daily_bin1448.fits
.....................!
real 11.66
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806592/ft1_filtered_4FGL_J2322.8-4916_daily_bin1448.fits evtable="EVENTS" scfile=/scratch/kocevski/806592/ft2_4FGL_J2322.8-4916_daily_bin1448.fits sctable="SC_DATA" expcube=/scratch/kocevski/806592/ltcube_614649601_614908801_4FGL_J2322.8-4916_daily_bin1448.fits outfile=/scratch/kocevski/806592/expmap_614649601_614908801_4FGL_J2322.8-4916_daily_bin1448.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/806592/ltcube_614649601_614908801_4FGL_J2322.8-4916_daily_bin1448.fits
.....................!
real 192.13
user 187.27
sys 4.55

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/806592/ft1_filtered_4FGL_J2322.8-4916_daily_bin1448.fits scfile=/scratch/kocevski/806592/ft2_4FGL_J2322.8-4916_daily_bin1448.fits outfile=/scratch/kocevski/806592/cmap_614649601_614908801_4FGL_J2322.8-4916_daily_bin1448.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/806592/ft1_filtered_4FGL_J2322.8-4916_daily_bin1448.fits scfile=/scratch/kocevski/806592/ft2_4FGL_J2322.8-4916_daily_bin1448.fits outfile=/scratch/kocevski/806592/cmap_HighResolution_614649601_614908801_4FGL_J2322.8-4916_daily_bin1448.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/806592/ft1_filtered_4FGL_J2322.8-4916_daily_bin1448.fits evtable="EVENTS" scfile=/scratch/kocevski/806592/ft2_4FGL_J2322.8-4916_daily_bin1448.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806592/Model_4FGL_J2322.8-4916_daily_bin1448.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/806592/ft1_filtered_4FGL_J2322.8-4916_daily_bin1448.fits.....................!
real 38.05
user 36.82
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.882       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0608       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6662       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    149.89       1.0000         .10000E-03   10000.    
     8 'norm      '    3.4319       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11609E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12052       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4188       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66398       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10961E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7572       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.014       1.0000         .10000E-03   10000.    
    23 'norm      '    2.0736       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.9886       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.1968       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.3003       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .24109       1.0000         .10000E-03   10000.    
    32 'Prefactor '    11.002       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2373       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .65970       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=   4672.004     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     4051 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10059E-03    18.928        .60880E-05** at limit **
   2  Prefactor     .10005E-03    9.1999        .39791E-05** at limit **
   3  Prefactor     15.938        21.472       -.94932E-05    .25916E-02
   4  Prefactor     3.0662        1.0940        .11555E-06   -.39043E-04
   5  Prefactor     2.6710        1.2246       -.24889E-06    .92760E-04
   6  Prefactor     .10001E-03    3.0714       -.53192E-05** at limit **
   7  Prefactor     149.88        2.2393       -.32554E-06    .12514E-02
   8  norm          3.4312        1.0588        .50719E-06    .87598E-04
   9  Prefactor     .10001E-03    7.0881       -.21764E-05** at limit **
  10  Prefactor     .10028E-03    12.329        .49064E-05** at limit **
  11  Prefactor     .22823        20.303        .10211E-04   -.26601E-03
  12  Prefactor     1.1518        378.00       -.56470E-04   -.74285E-05
  13  Prefactor     .78528        104.66        .13225E-04   -.20658E-03
  14  Prefactor     .10023E-03    10.481        .20585E-05** at limit **
  15  Prefactor     .10001E-03    5.8931        .45217E-05** at limit **
  16  Prefactor     .10004E-03    20.810       -.49414E-05** at limit **
  17  Prefactor     .10001E-03    8.4914       -.19830E-05** at limit **
  18  norm          .10002E-03    6.2010        .61051E-05** at limit **
  19  norm          .10000E-03    3.2151        .44174E-06** at limit **
  20  norm          .10001E-03    3.2648       -.45186E-05** at limit **
  21  Prefactor     6.7604        5.0639       -.42507E-05   -.46459E-02
  22  Prefactor     44.996        2.9022       -.76916E-06    .75082E-03
  23  norm          2.0883        3.7080        .61574E-06   -.28125E-03
  24  Prefactor     .10024E-03    11.747       -.18972E-05** at limit **
  25  norm          .10000E-03    .32610       -.54946E-07** at limit **
  26  norm          5.9828        3.0504       -.63983E-06    .32902E-03
  27  Prefactor     5.2057        1.1765       -.39973E-06    .16951E-03
  28  Prefactor     1.3020        2.0905        .22517E-06    .19327E-03
  29  Prefactor     .10004E-03    10.307       -.26617E-05** at limit **
  30  norm          .10059E-03    13.569       -.45694E-05** at limit **
  31  Prefactor     .23994        .56664        .93430E-06    .12232E-03
  32  Prefactor     11.007        4.8505        .23510E-05    .33616E-02
  33  Normalizat    1.2363        .23425        .71589E-06    .12943E-03
  34  Prefactor     .65991        .23800        .62686E-06    .14174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100589
  Prefactor  = 0.000100046
  Prefactor  = 15.9383
  Prefactor  = 3.06618
  Prefactor  = 2.67097
  Prefactor  = 0.000100015
  Prefactor  = 149.885
  norm       = 3.43124
  Prefactor  = 0.00010001
  Prefactor  = 0.000100282
  Prefactor  = 0.228234
  Prefactor  = 1.15177
  Prefactor  = 0.785277
  Prefactor  = 0.000100234
  Prefactor  = 0.000100011
  Prefactor  = 0.000100041
  Prefactor  = 0.000100008
  norm       = 0.000100019
  norm       = 0.0001
  norm       = 0.000100013
  Prefactor  = 6.76039
  Prefactor  = 44.9957
  norm       = 2.08829
  Prefactor  = 0.000100241
  norm       = 0.0001
  norm       = 5.98275
  Prefactor  = 5.20573
  Prefactor  = 1.302
  Prefactor  = 0.000100043
  norm       = 0.000100587
  Prefactor  = 0.239939
  Prefactor  = 11.0069
  Normalizat = 1.23631
  Prefactor  = 0.659912
 **********
 **   18 **HESSE 
 **********

 FCN=   4672.004     FROM HESSE     STATUS=OK           822 CALLS     4873 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10059E-03    40.001        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10005E-03    9.5791        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.938        24.014        .25126E-02   -1.4909    
   4  Prefactor     3.0662        7.9625        .57969E-02   -1.5358    
   5  Prefactor     2.6710        6.3591        .62402E-02   -1.5381    
   6  Prefactor     .10001E-03    6.1487        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     149.88        155.24        .82298E-03   -1.3253    
   8  norm          3.4312        6.3241        .54585E-02   -1.5337    
   9  Prefactor     .10001E-03    2.5095        .61629E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10028E-03    15.922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22823        4.6018        .75267E-01   -1.5612    
  12  Prefactor     1.1518        950.02        .90821E-02   -1.5493    
  13  Prefactor     .78528        72.273        .79643E-01   -1.5531    
  14  Prefactor     .10023E-03    41.436        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    5.9750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    21.717        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    8.5377        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10002E-03    6.4165        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.1979        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    6.1407        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.7604        5.3350        .38589E-02   -1.5188    
  22  Prefactor     44.996        50.231        .14939E-02   -1.4365    
  23  norm          2.0883        7.7425        .71712E-02   -1.5419    
  24  Prefactor     .10024E-03    14.507        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .32079        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.9828        7.0617        .41020E-02   -1.5219    
  27  Prefactor     5.2057        10.418        .44085E-02   -1.5252    
  28  Prefactor     1.3020        2.1401        .96880E-02   -1.5480    
  29  Prefactor     .10004E-03    10.696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10059E-03    44.536        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .23994        3.2104        .38341E-01   -1.5610    
  32  Prefactor     11.007        4.9123        .30196E-02   -1.5044    
  33  Normalizat    1.2363        .20671        .34035E-01   -.85488    
  34  Prefactor     .65991        .20652        .65185E-01   -1.0512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39115e-06
Minuit parameter uncertainties:
  1  0.00971613
  2  0.00132491
  3  24.029
  4  7.9653
  5  6.36072
  6  0.000602786
  7  155.669
  8  6.3253
  9  0.000315565
  10  0.00424045
  11  2.0494
  12  67.2538
  13  15.085
  14  0.00622693
  15  0.000520435
  16  0.00189732
  17  0.000513376
  18  0.000697118
  19  1.50291e-05
  20  0.00056423
  21  5.3354
  22  50.2787
  23  7.74618
  24  0.00373941
  25  1.98149e-06
  26  7.06264
  27  10.4217
  28  2.14018
  29  0.00136209
  30  0.0102297
  31  1.75508
  32  4.91244
  33  0.206843
  34  0.206759
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  6.599e-01  2.068e-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.236e+00  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.708 -49.273
Photon Flux Upper Limit: 2.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806592/likelihoodResults_614649601_614908801_4FGL_J2322.8-4916_daily_bin1448.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) = 4672.00552329
delta logL = -0.00143640438273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4672.00408687
delta logL = 1.74286469701e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6179       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65990       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=   4672.004     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      242 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    229.09        .11954E-02** at limit **
   2  alpha         1.9035        3.8106        .50000        .20054E-07
   3  Normalizat    1.2363        .41668E-01    .20999E-03   -.64998E-04
   4  Prefactor     .65991        .43266E-01    .28842E-03   -.46040E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90352
  Normalizat = 1.23631
  Prefactor  = 0.65991
 **********
 **   18 **HESSE 
 **********

 FCN=   4672.004     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    728.49        .23908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9035        3.1493        .50000       -.24092    
   3  Normalizat    1.2363        .13291        .41999E-04   -.85488    
   4  Prefactor     .65991        .13795        .11537E-04   -1.0512    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12964e-09
Minuit parameter uncertainties:
  1  8.33303e-05
  2  2546.19
  3  0.132946
  4  0.138023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806592': 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): 102
logL (Free Index) = 4672.00408631
delta logL = 5.78105755267e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  6.599e-01  1.380e-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.236e+00  1.329e-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/806592/cmap_HighResolution_614649601_614908801_4FGL_J2322.8-4916_daily_bin1448.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-05', job_status='DONE', photon_flux_upper_limit='2.26e-08', time_completed='2021-09-29 14:35:03.932918', job_id='806592', GAL2='0.66', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632951303.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='5.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1448' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:35:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 806592: <4FGL_J2322.8-4916_daily_bin1448> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1448> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:21 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:23 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:20:23 2021
Terminated at Wed Sep 29 14:35:04 2021
Results reported at Wed Sep 29 14:35:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1448 350.708 -49.2725 614649601 614908801 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 :                                   769.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

