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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin849
RA = 350.708, Dec = -49.2725
tmin = 459388801, tmax = 459648001
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='802391', job_status='RUN', time_executed='2021-09-29 14:12:57.902245', time_epoch_executed='1632949977.9' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='849'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802391

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802391/ft1_4FGL_J2322.8-4916_daily_bin849.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802391/ft2_4FGL_J2322.8-4916_daily_bin849.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802391/ft1_4FGL_J2322.8-4916_daily_bin849.fits outfile=/scratch/kocevski/802391/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin849.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=459388801.0 tmax=459648001.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.48
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802391/ft1_filtered_4FGL_J2322.8-4916_daily_bin849.fits" evtable="EVENTS" scfile=/scratch/kocevski/802391/ft2_4FGL_J2322.8-4916_daily_bin849.fits sctable="SC_DATA" outfile=/scratch/kocevski/802391/ltcube_459388801_459648001_4FGL_J2322.8-4916_daily_bin849.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/802391/ft2_4FGL_J2322.8-4916_daily_bin849.fits
.....................!
real 13.46
user 13.08
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802391/ft1_filtered_4FGL_J2322.8-4916_daily_bin849.fits evtable="EVENTS" scfile=/scratch/kocevski/802391/ft2_4FGL_J2322.8-4916_daily_bin849.fits sctable="SC_DATA" expcube=/scratch/kocevski/802391/ltcube_459388801_459648001_4FGL_J2322.8-4916_daily_bin849.fits outfile=/scratch/kocevski/802391/expmap_459388801_459648001_4FGL_J2322.8-4916_daily_bin849.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/802391/ltcube_459388801_459648001_4FGL_J2322.8-4916_daily_bin849.fits
.....................!
real 191.72
user 187.55
sys 3.85

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/802391/ft1_filtered_4FGL_J2322.8-4916_daily_bin849.fits scfile=/scratch/kocevski/802391/ft2_4FGL_J2322.8-4916_daily_bin849.fits outfile=/scratch/kocevski/802391/cmap_459388801_459648001_4FGL_J2322.8-4916_daily_bin849.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.17

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19331E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17424E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54377E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6116       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.221       1.0000         .10000E-03   10000.    
    18 'norm      '    5.8709       1.0000         .10000E-03   10000.    
    19 'norm      '    5.2438       1.0000         .10000E-03   10000.    
    20 'norm      '    5.7901       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    70.002       1.0000         .10000E-03   10000.    
    23 'norm      '    .10392E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .95690       1.0000         .10000E-03   10000.    
    25 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.8947       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.209       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.7192       1.0000         .10000E-03   10000.    
    29 'Prefactor '    11.540       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.2458       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.6813       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .38912       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=   4739.402     FROM MIGRAD    STATUS=CONVERGED    942 CALLS     4858 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.876       -.12883E-05** at limit **
   2  Prefactor     .10000E-03    19.107       -.70419E-06** at limit **
   3  Prefactor     .10001E-03    92.062        .21931E-05** at limit **
   4  Prefactor     .10000E-03    4.9522        .55254E-08** at limit **
   5  Prefactor     .10000E-03    8.4099        .76150E-07** at limit **
   6  Prefactor     .10000E-03    3.7697        .77888E-10** at limit **
   7  Prefactor     .10002E-03    196.98       -.25690E-05** at limit **
   8  norm          .10000E-03    3.5074        .36086E-08** at limit **
   9  Prefactor     .10001E-03    2.0167       -.19030E-06** at limit **
  10  Prefactor     .10000E-03    17.010        .39989E-06** at limit **
  11  Prefactor     .10000E-03    5.5539        .65993E-07** at limit **
  12  Prefactor     .10000E-03    78.816        .12870E-05** at limit **
  13  Prefactor     .10102E-03    13.243       -.42840E-05** at limit **
  14  Prefactor     .10000E-03    38.163        .59365E-06** at limit **
  15  Prefactor     6.6124        7.2388        .68839E-07    .46163E-04
  16  Prefactor     .10000E-03    24.242        .21384E-06** at limit **
  17  Prefactor     15.225        14.991        .48817E-07    .79085E-04
  18  norm          5.8714        10.993        .45793E-05    .75654E-03
  19  norm          5.2436        5.1427       -.11327E-06   -.21222E-04
  20  norm          5.7903        5.5007       -.30631E-07   -.18825E-05
  21  Prefactor     .10000E-03    12.965       -.20048E-06** at limit **
  22  Prefactor     70.009        51.581       -.17158E-06    .27441E-04
  23  norm          .10000E-03    2.6138        .25249E-06** at limit **
  24  Prefactor     .93042        13.428       -.99702E-06    .74222E-04
  25  norm          .10000E-03    .47424       -.55538E-09** at limit **
  26  norm          1.8961        3.1461        .20225E-06    .14601E-03
  27  Prefactor     17.211        18.589        .18891E-06    .36340E-04
  28  Prefactor     2.7191        2.7402        .38331E-07    .10044E-03
  29  Prefactor     11.544        22.398        .20942E-06    .36321E-04
  30  norm          .10000E-03    6.6680        .12498E-08** at limit **
  31  Prefactor     .10000E-03    3.1996        .28693E-07** at limit **
  32  Prefactor     3.2468        5.6167        .56014E-06    .21620E-03
  33  Normalizat    1.6811        .23514       -.19496E-06    .34619E-03
  34  Prefactor     .38939        .22453       -.16479E-06    .17443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000101019
  Prefactor  = 0.000100001
  Prefactor  = 6.6124
  Prefactor  = 0.0001
  Prefactor  = 15.2247
  norm       = 5.87143
  norm       = 5.24361
  norm       = 5.79029
  Prefactor  = 0.0001
  Prefactor  = 70.0094
  norm       = 0.0001
  Prefactor  = 0.930419
  norm       = 0.0001
  norm       = 1.89605
  Prefactor  = 17.2108
  Prefactor  = 2.71909
  Prefactor  = 11.544
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.24685
  Normalizat = 1.68106
  Prefactor  = 0.389392
 **********
 **   18 **HESSE 
 **********

 FCN=   4739.402     FROM HESSE     STATUS=OK           728 CALLS     5586 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    93.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9727        .14962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.6076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7792        .13053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    198.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.5120        .12592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    27.908        .18908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6485        .15836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    80.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10102E-03    54.578        .33353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6124        7.2363        .15607E-03   -1.5194    
  16  Prefactor     .10000E-03    24.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.225        15.009        .10266E-03   -1.4927    
  18  norm          5.8714        11.332        .82871E-03   -1.5223    
  19  norm          5.2436        5.1516        .15037E-03   -1.5250    
  20  norm          5.7903        5.5031        .14897E-03   -1.5227    
  21  Prefactor     .10000E-03    13.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     70.009        51.718        .47978E-04   -1.4033    
  23  norm          .10000E-03    2.6182        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .93042        114.81        .44837E-02   -1.5515    
  25  norm          .10000E-03    .48270        .92146E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.8961        3.1126        .15082E-03   -1.5433    
  27  Prefactor     17.211        18.670        .96547E-04   -1.4878    
  28  Prefactor     2.7191        2.7362        .10812E-03   -1.5378    
  29  Prefactor     11.544        22.336        .11793E-03   -1.5028    
  30  norm          .10000E-03    6.6685        .17363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.2281        .12018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     3.2468        5.6240        .20157E-03   -1.5348    
  33  Normalizat    1.6811        .27067        .20124E-03   -.72810    
  34  Prefactor     .38939        .25143        .38999E-03   -1.1735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02005e-08
Minuit parameter uncertainties:
  1  0.000942651
  2  0.000268588
  3  0.00184913
  4  7.07985e-07
  5  9.78267e-06
  6  1.57046e-07
  7  0.00349111
  8  2.32113e-06
  9  0.000992059
  10  0.000163983
  11  1.66642e-05
  12  0.00120533
  13  0.0149298
  14  0.000379879
  15  7.23727
  16  0.000104125
  17  15.0126
  18  11.3361
  19  5.152
  20  5.50358
  21  2.3378e-05
  22  51.7512
  23  1.49965e-05
  24  20.7103
  25  6.65271e-07
  26  3.11283
  27  18.6764
  28  2.73635
  29  22.3526
  30  7.91423e-08
  31  2.1369e-06
  32  5.62493
  33  0.270911
  34  0.252148
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  5.244e+00  5.152e+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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  3.894e-01  2.521e-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.681e+00  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.57
Ra Dec: 350.708 -49.273
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 8.24e-09 +/- 8.09e-09
Energy Flux (Fixed Index): 1.81e-05 +/- 1.78e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4737.61171483
delta logL = 1.79061558582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4736.95190175
delta logL = 2.45042866576

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1908       1.0000         .10000E-03   10000.    
     2 'alpha     '    .94337E-06   1.0000          .0000       5.0000    
     3 'Normalizat'    1.6847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38915       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4736.952     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      221 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1905        1.4237        .16063E-01   -.25338E-03
   2  alpha         .59897E-12    .83414        .46376    ** at limit **
   3  Normalizat    1.6849        .22192        .45483E-01   -.32392E-05
   4  Prefactor     .38909        .22279        .88049E-01    .38266E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.19048
  alpha      = 5.98965e-13
  Normalizat = 1.6849
  Prefactor  = 0.389091
 **********
 **   18 **HESSE 
 **********

 FCN=   4736.952     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1905        1.1966        .66415E-03   -1.5490    
   2  alpha         .59897E-12    1.0246        .42826E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6849        .24553        .20104E-03   -.72707    
   4  Prefactor     .38909        .24568        .39013E-03   -1.1737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44789e-10
Minuit parameter uncertainties:
  1  1.19658
  2  1.626e-06
  3  0.245705
  4  0.246348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802391': 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) = 4736.95190015
delta logL = 2.45043026234

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.190e+00  1.197e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  5.990e-13  1.626e-06  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:  3.891e-01  2.463e-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.685e+00  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.47
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.78e-09 +/- 3.80e-09
Energy Flux (Free Index): 1.17e-04 +/- 1.18e-04

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/802391/cmap_HighResolution_459388801_459648001_4FGL_J2322.8-4916_daily_bin849.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.24e-09', energy_flux2='1.17e-04', photon_flux_error='8.09e-09', dlogl='2.45e+00', energy_flux='1.81e-05', photon_flux2='3.78e-09', job_status='DONE', time_completed='2021-09-29 14:25:22.459097', photon_index_error2='0.00', photon_index2='0.00', ts='12.57', fit_tolerance='1e-08', GAL='0.39', photon_index_error='0.00', energy_flux_error2='1.18e-04', EG='1.68', time_epoch_completed='1632950722.46', return_code='0', job_id='802391', GAL2='0.39', EG2='1.68', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='3.80e-09', ts2='17.47', photon_index='1.61' WHERE bin_id='849' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:25:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 802391: <4FGL_J2322.8-4916_daily_bin849> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin849 350.708 -49.2725 459388801 459648001 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 :                                   740.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

