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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1424
RA = 350.708, Dec = -49.2725
tmin = 608428801, tmax = 608688001
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='806555', job_status='RUN', time_executed='2021-09-29 14:21:04.419631', time_epoch_executed='1632950464.42' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806555

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806555/ft1_4FGL_J2322.8-4916_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806555/ft2_4FGL_J2322.8-4916_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806555/ft1_4FGL_J2322.8-4916_daily_bin1424.fits outfile=/scratch/kocevski/806555/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1424.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=608428801.0 tmax=608688001.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.98
user 4.72
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806555/ft1_filtered_4FGL_J2322.8-4916_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/806555/ft2_4FGL_J2322.8-4916_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/806555/ltcube_608428801_608688001_4FGL_J2322.8-4916_daily_bin1424.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/806555/ft2_4FGL_J2322.8-4916_daily_bin1424.fits
.....................!
real 11.81
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806555/ft1_filtered_4FGL_J2322.8-4916_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/806555/ft2_4FGL_J2322.8-4916_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/806555/ltcube_608428801_608688001_4FGL_J2322.8-4916_daily_bin1424.fits outfile=/scratch/kocevski/806555/expmap_608428801_608688001_4FGL_J2322.8-4916_daily_bin1424.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/806555/ltcube_608428801_608688001_4FGL_J2322.8-4916_daily_bin1424.fits
.....................!
real 193.62
user 187.57
sys 5.52

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/806555/ft1_filtered_4FGL_J2322.8-4916_daily_bin1424.fits scfile=/scratch/kocevski/806555/ft2_4FGL_J2322.8-4916_daily_bin1424.fits outfile=/scratch/kocevski/806555/cmap_608428801_608688001_4FGL_J2322.8-4916_daily_bin1424.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806555/ft1_filtered_4FGL_J2322.8-4916_daily_bin1424.fits scfile=/scratch/kocevski/806555/ft2_4FGL_J2322.8-4916_daily_bin1424.fits outfile=/scratch/kocevski/806555/cmap_HighResolution_608428801_608688001_4FGL_J2322.8-4916_daily_bin1424.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806555/ft1_filtered_4FGL_J2322.8-4916_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/806555/ft2_4FGL_J2322.8-4916_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806555/Model_4FGL_J2322.8-4916_daily_bin1424.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/806555/ft1_filtered_4FGL_J2322.8-4916_daily_bin1424.fits.....................!
real 42.10
user 40.70
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.819       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4497       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4564       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6058       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.543       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.5225       1.0000         .10000E-03   10000.    
    19 'norm      '    5.3814       1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7622       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1142       1.0000         .10000E-03   10000.    
    23 'norm      '    .10197       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.569       1.0000         .10000E-03   10000.    
    25 'norm      '    .78438       1.0000         .10000E-03   10000.    
    26 'norm      '    1.2443       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.400       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.6607       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .23695E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .17206E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .93387       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .88109       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=   5806.811     FROM MIGRAD    STATUS=CONVERGED    967 CALLS     4872 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.793        58.860       -.58648E-06   -.36996E-04
   2  Prefactor     .10000E-03    5.0590       -.11795E-07** at limit **
   3  Prefactor     .10000E-03    34.632       -.59376E-06** at limit **
   4  Prefactor     .10000E-03    4.0156       -.25660E-08** at limit **
   5  Prefactor     5.4498        7.4916        .75112E-07   -.40113E-04
   6  Prefactor     .10000E-03    6.5121       -.15553E-07** at limit **
   7  Prefactor     .10000E-03    50.925       -.11469E-05** at limit **
   8  norm          .10000E-03    4.8484        .98389E-08** at limit **
   9  Prefactor     4.4567        3.1935       -.36268E-07   -.45541E-04
  10  Prefactor     12.574        24.561        .39685E-05    .22205E-03
  11  Prefactor     6.6057        5.0898        .17918E-06    .27627E-04
  12  Prefactor     .10000E-03    42.282        .15989E-05** at limit **
  13  Prefactor     11.540        11.636        .18306E-06   -.61792E-04
  14  Prefactor     .10000E-03    56.425       -.44209E-06** at limit **
  15  Prefactor     .10000E-03    1.6797        .21554E-07** at limit **
  16  Prefactor     .10000E-03    46.521        .11544E-06** at limit **
  17  Prefactor     .10000E-03    6.0041       -.35093E-07** at limit **
  18  norm          6.5225        6.7888       -.31237E-06   -.97587E-04
  19  norm          5.3817        4.8407        .38769E-08    .77202E-04
  20  norm          .10000E-03    1.7191        .17265E-07** at limit **
  21  Prefactor     4.7623        5.3097        .18106E-05   -.46252E-03
  22  Prefactor     6.3345        52.786       -.67571E-06    .31430E-04
  23  norm          .70509E-01    3.0881       -.19588E-06    .23503E-03
  24  Prefactor     29.562        16.777       -.67952E-06   -.10754E-04
  25  norm          .78443        .69574       -.32872E-07    .28727E-05
  26  norm          1.2464        3.2849        .51833E-06    .91341E-05
  27  Prefactor     13.395        15.319        .15129E-06    .28523E-04
  28  Prefactor     5.6595        3.9320        .78635E-07    .89790E-04
  29  Prefactor     .10000E-03    21.144        .17052E-07** at limit **
  30  norm          .10000E-03    14.489        .11949E-06** at limit **
  31  Prefactor     .10001E-03    2.5780       -.29525E-06** at limit **
  32  Prefactor     .10000E-03    1.8206        .16384E-06** at limit **
  33  Normalizat    .93388        .17661       -.80785E-07    .23407E-04
  34  Prefactor     .88101        .18074       -.37664E-06    .29818E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.7931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.44983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.4567
  Prefactor  = 12.574
  Prefactor  = 6.60574
  Prefactor  = 0.0001
  Prefactor  = 11.5405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.52249
  norm       = 5.38166
  norm       = 0.0001
  Prefactor  = 4.76233
  Prefactor  = 6.33451
  norm       = 0.0705087
  Prefactor  = 29.5624
  norm       = 0.784426
  norm       = 1.24635
  Prefactor  = 13.3947
  Prefactor  = 5.65951
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Normalizat = 0.933882
  Prefactor  = 0.881013
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.811     FROM HESSE     STATUS=OK           738 CALLS     5610 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.793        58.960        .49846E-04   -1.4096    
   2  Prefactor     .10000E-03    5.0605        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0342        .14912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4498        7.4894        .17213E-03   -1.5241    
   6  Prefactor     .10000E-03    6.6349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    51.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9543        .16385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4567        3.1928        .11054E-03   -1.5286    
  10  Prefactor     12.574        26.108        .11288E-03   -1.4999    
  11  Prefactor     6.6057        5.0889        .14369E-03   -1.5194    
  12  Prefactor     .10000E-03    42.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.540        11.606        .11791E-03   -1.5028    
  14  Prefactor     .10000E-03    56.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6839        .96445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    46.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.0181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.5225        6.8006        .15714E-03   -1.5197    
  19  norm          5.3817        4.8454        .15488E-03   -1.5244    
  20  norm          .10000E-03    1.7205        .97516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.7623        5.5225        .88101E-03   -1.5271    
  22  Prefactor     6.3345        505.84        .16237E-03   -1.5205    
  23  norm          .70509E-01    666.17        .20206E-02   -1.5655    
  24  Prefactor     29.562        16.871        .73680E-04   -1.4620    
  25  norm          .78443        .73245        .57240E-03   -1.5531    
  26  norm          1.2464        3.2782        .20290E-03   -1.5485    
  27  Prefactor     13.395        15.295        .10942E-03   -1.4976    
  28  Prefactor     5.6595        3.8618        .11626E-03   -1.5232    
  29  Prefactor     .10000E-03    21.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    14.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    14.085        .22800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    13.843        .19708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .93388        .21603        .22795E-03   -.95280    
  34  Prefactor     .88101        .22046        .25104E-03   -.96808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75024e-08
Minuit parameter uncertainties:
  1  59.0128
  2  4.69759e-07
  3  8.59354e-05
  4  1.4245e-06
  5  7.49069
  6  3.61743e-06
  7  0.000251713
  8  2.05462e-06
  9  3.19293
  10  26.1316
  11  5.08918
  12  0.000284996
  13  11.6085
  14  0.000100425
  15  5.80323e-07
  16  2.19075e-05
  17  3.73248e-06
  18  6.80139
  19  4.84573
  20  8.52351e-07
  21  5.52308
  22  114.225
  23  13.8542
  24  16.8733
  25  0.732456
  26  3.27865
  27  15.299
  28  3.86201
  29  3.38203e-06
  30  2.15676e-05
  31  0.000566544
  32  0.000304899
  33  0.216228
  34  0.220688
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  5.382e+00  4.846e+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:  8.810e-01  2.207e-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:  9.339e-01  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.55
Ra Dec: 350.708 -49.273
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 8.46e-09 +/- 7.61e-09
Energy Flux (Fixed Index): 1.85e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/806555/likelihoodResults_608428801_608688001_4FGL_J2322.8-4916_daily_bin1424.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5806.78960139
delta logL = 0.021881570211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5806.78953824
delta logL = 0.0219447207264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3916       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4194       1.0000          .0000       5.0000    
     3 'Normalizat'    .93444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88147       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=   5806.790     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      242 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3912        4.9787        .15881E-03    .29491E-02
   2  alpha         1.4193        .87956        .23816E-01    .19345E-03
   3  Normalizat    .93450        .19904        .22790E-03   -.25313E-03
   4  Prefactor     .88139        .21470        .25102E-03   -.22568E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.39121
  alpha      = 1.41926
  Normalizat = 0.9345
  Prefactor  = 0.88139
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.790     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3912        5.0026        .31762E-04   -1.5244    
   2  alpha         1.4193        .88383        .95265E-03   -.44704    
   3  Normalizat    .93450        .19927        .45580E-04   -.95258    
   4  Prefactor     .88139        .21494        .10041E-04   -.96794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16704e-08
Minuit parameter uncertainties:
  1  5.00304
  2  0.908194
  3  0.199425
  4  0.21515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806555': 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) = 5806.78953812
delta logL = 0.0219448432927

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  5.391e+00  5.003e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.419e+00  9.082e-01  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:  8.814e-01  2.151e-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:  9.345e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.59
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 1.42 +/- 0.91
Photon Flux (Free Index): 6.94e-09 +/- 8.95e-09
Energy Flux (Free Index): 2.29e-05 +/- 3.17e-05

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/806555/cmap_HighResolution_608428801_608688001_4FGL_J2322.8-4916_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-05', comment='SUCCESS', photon_flux='8.46e-09', energy_flux2='2.29e-05', photon_flux_error='7.61e-09', dlogl='2.19e-02', energy_flux='1.85e-05', photon_flux2='6.94e-09', job_status='DONE', time_completed='2021-09-29 14:36:33.714953', photon_index_error2='0.91', photon_index2='1.42', ts='3.55', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='3.13e-08', energy_flux_error2='3.17e-05', EG='0.93', time_epoch_completed='1632951393.72', return_code='0', job_id='806555', GAL2='0.88', EG2='0.93', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='8.95e-09', ts2='3.59', photon_index='1.61' WHERE bin_id='1424' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:36:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 806555: <4FGL_J2322.8-4916_daily_bin1424> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1424> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:17 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:18 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:18 2021
Terminated at Wed Sep 29 14:36:34 2021
Results reported at Wed Sep 29 14:36:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1424 350.708 -49.2725 608428801 608688001 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 :                                   922.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

