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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1573
RA = 350.708, Dec = -49.2725
tmin = 647049601, tmax = 647308801
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='806791', job_status='RUN', time_executed='2021-09-29 14:21:13.204942', time_epoch_executed='1632950473.2' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806791

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806791/ft1_4FGL_J2322.8-4916_daily_bin1573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806791/ft2_4FGL_J2322.8-4916_daily_bin1573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806791/ft1_4FGL_J2322.8-4916_daily_bin1573.fits outfile=/scratch/kocevski/806791/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1573.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=647049601.0 tmax=647308801.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.54
user 3.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806791/ft2_4FGL_J2322.8-4916_daily_bin1573.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/806791/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1573.fits evtable="EVENTS" outfile="/scratch/kocevski/806791/ft1_filtered_4FGL_J2322.8-4916_daily_bin1573.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/806791/ft1_filtered_4FGL_J2322.8-4916_daily_bin1573.fits" evtable="EVENTS" scfile=/scratch/kocevski/806791/ft2_4FGL_J2322.8-4916_daily_bin1573.fits sctable="SC_DATA" outfile=/scratch/kocevski/806791/ltcube_647049601_647308801_4FGL_J2322.8-4916_daily_bin1573.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/806791/ft2_4FGL_J2322.8-4916_daily_bin1573.fits
.....................!
real 12.60
user 12.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806791/ft1_filtered_4FGL_J2322.8-4916_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/806791/ft2_4FGL_J2322.8-4916_daily_bin1573.fits sctable="SC_DATA" expcube=/scratch/kocevski/806791/ltcube_647049601_647308801_4FGL_J2322.8-4916_daily_bin1573.fits outfile=/scratch/kocevski/806791/expmap_647049601_647308801_4FGL_J2322.8-4916_daily_bin1573.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/806791/ltcube_647049601_647308801_4FGL_J2322.8-4916_daily_bin1573.fits
.....................!
real 191.22
user 186.39
sys 4.47

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/806791/ft1_filtered_4FGL_J2322.8-4916_daily_bin1573.fits scfile=/scratch/kocevski/806791/ft2_4FGL_J2322.8-4916_daily_bin1573.fits outfile=/scratch/kocevski/806791/cmap_647049601_647308801_4FGL_J2322.8-4916_daily_bin1573.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806791/ft1_filtered_4FGL_J2322.8-4916_daily_bin1573.fits scfile=/scratch/kocevski/806791/ft2_4FGL_J2322.8-4916_daily_bin1573.fits outfile=/scratch/kocevski/806791/cmap_HighResolution_647049601_647308801_4FGL_J2322.8-4916_daily_bin1573.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806791/ft1_filtered_4FGL_J2322.8-4916_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/806791/ft2_4FGL_J2322.8-4916_daily_bin1573.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806791/Model_4FGL_J2322.8-4916_daily_bin1573.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/806791/ft1_filtered_4FGL_J2322.8-4916_daily_bin1573.fits.....................!
real 38.91
user 37.59
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1763       1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.400       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10795E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3979       1.0000         .10000E-03   10000.    
     7 'Prefactor '    102.36       1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29311       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11252E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.188       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1627       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.804       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.900       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.351       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.2819       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2190       1.0000         .10000E-03   10000.    
    25 'norm      '    .48714       1.0000         .10000E-03   10000.    
    26 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    14.710       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .39072       1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.2611       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .99735       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .77319       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=   4930.692     FROM MIGRAD    STATUS=CONVERGED    951 CALLS     4897 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.783        .20254E-05** at limit **
   2  Prefactor     8.1777        16.691       -.94117E-06    .23337E-04
   3  Prefactor     42.438        32.912        .93118E-05    .21049E-03
   4  Prefactor     1.0495        2.2937        .13491E-05   -.26884E-02
   5  Prefactor     .10000E-03    13.419       -.85184E-05** at limit **
   6  Prefactor     3.3937        7.6776       -.80176E-06   -.77977E-03
   7  Prefactor     102.31        106.91       -.37775E-04   -.33806E-04
   8  norm          .10000E-03    3.8506       -.14415E-07** at limit **
   9  Prefactor     .29994        2.8426       -.83880E-06    .77026E-03
  10  Prefactor     .10000E-03    96.869        .31114E-04** at limit **
  11  Prefactor     .10000E-03    4.3694        .22482E-06** at limit **
  12  Prefactor     .10000E-03    8.9932        .28318E-07** at limit **
  13  Prefactor     20.183        13.692        .10201E-05    .11353E-03
  14  Prefactor     .10000E-03    85.623       -.28670E-04** at limit **
  15  Prefactor     2.1619        4.5367       -.43304E-06   -.34340E-04
  16  Prefactor     34.790        43.109       -.79879E-05   -.17781E-05
  17  Prefactor     40.906        22.345        .11002E-06    .77347E-04
  18  norm          .10000E-03    3.9648        .57999E-07** at limit **
  19  norm          .10000E-03    3.5676       -.16578E-07** at limit **
  20  norm          .10000E-03    2.8693       -.16642E-07** at limit **
  21  Prefactor     12.354        8.3411       -.48834E-06   -.20283E-04
  22  Prefactor     .10000E-03    11.501       -.17042E-05** at limit **
  23  norm          6.2795        4.3932        .18580E-06    .26722E-04
  24  Prefactor     2.2115        25.818        .61996E-05    .31355E-04
  25  norm          .48614        1.1106       -.20911E-06   -.58929E-03
  26  norm          .10000E-03    3.0671        .23962E-07** at limit **
  27  Prefactor     .10000E-03    12.901        .69831E-05** at limit **
  28  Prefactor     .10000E-03    2.6501       -.28579E-06** at limit **
  29  Prefactor     .10000E-03    15.147        .27397E-05** at limit **
  30  norm          15.071        21.875       -.39463E-06    .12707E-03
  31  Prefactor     .27981        3.8584       -.11314E-05    .35442E-03
  32  Prefactor     3.2594        3.8909       -.21166E-06   -.41504E-05
  33  Normalizat    .99824        .18839       -.58886E-06    .43349E-03
  34  Prefactor     .77268        .19136        .15368E-05    .21432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.17767
  Prefactor  = 42.4378
  Prefactor  = 1.04952
  Prefactor  = 0.0001
  Prefactor  = 3.39375
  Prefactor  = 102.309
  norm       = 0.0001
  Prefactor  = 0.299937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1829
  Prefactor  = 0.0001
  Prefactor  = 2.16194
  Prefactor  = 34.79
  Prefactor  = 40.906
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3544
  Prefactor  = 0.0001
  norm       = 6.27953
  Prefactor  = 2.21149
  norm       = 0.486143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.0713
  Prefactor  = 0.279812
  Prefactor  = 3.25938
  Normalizat = 0.998242
  Prefactor  = 0.772676
 **********
 **   18 **HESSE 
 **********

 FCN=   4930.692     FROM HESSE     STATUS=OK           736 CALLS     5633 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1777        16.657        .14021E-03   -1.5136    
   3  Prefactor     42.438        33.179        .61565E-04   -1.4404    
   4  Prefactor     1.0495        9.6235        .20909E-02   -1.5503    
   5  Prefactor     .10000E-03    14.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3937        7.8701        .10974E-02   -1.5340    
   7  Prefactor     102.31        106.90        .19870E-03   -1.3682    
   8  norm          .10000E-03    3.8595        .13457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .29994        23.024        .22086E-02   -1.5598    
  10  Prefactor     .10000E-03    97.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4401        .14323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.9977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.183        13.730        .89143E-04   -1.4809    
  14  Prefactor     .10000E-03    85.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1619        4.5084        .20979E-03   -1.5414    
  16  Prefactor     34.790        43.151        .67927E-04   -1.4528    
  17  Prefactor     40.906        21.915        .62679E-04   -1.4428    
  18  norm          .10000E-03    3.9656        .13656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.5833        .12943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8901        .11608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.354        8.1734        .11398E-03   -1.5005    
  22  Prefactor     .10000E-03    11.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.2795        4.3945        .11783E-03   -1.5207    
  24  Prefactor     2.2115        24.488        .27606E-03   -1.5411    
  25  norm          .48614        .95906        .98993E-03   -1.5569    
  26  norm          .10000E-03    3.1383        .23971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    12.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.2185        .21422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    15.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          15.071        44.057        .10443E-03   -1.4931    
  31  Prefactor     .27981        110.78        .22580E-02   -1.5602    
  32  Prefactor     3.2594        3.8871        .14203E-03   -1.5347    
  33  Normalizat    .99824        .23491        .22213E-03   -.93089    
  34  Prefactor     .77268        .22963        .26373E-03   -1.0074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93992e-08
Minuit parameter uncertainties:
  1  2.86295e-06
  2  16.6662
  3  33.1935
  4  6.35717
  5  6.61083e-05
  6  7.87245
  7  107.102
  8  1.09782e-05
  9  5.25697
  10  0.000226802
  11  4.6915e-05
  12  1.48459e-05
  13  13.7323
  14  0.000324071
  15  4.50908
  16  43.1895
  17  21.9189
  18  1.4308e-06
  19  1.39418e-06
  20  4.37461e-06
  21  8.17414
  22  1.55138e-05
  23  4.39469
  24  14.7254
  25  0.959088
  26  1.00155e-05
  27  1.3795e-05
  28  0.000100347
  29  3.1921e-05
  30  44.152
  31  11.1537
  32  3.8874
  33  0.235153
  34  0.229918
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.727e-01  2.299e-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.982e-01  2.352e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806791/likelihoodResults_647049601_647308801_4FGL_J2322.8-4916_daily_bin1573.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) = 4930.69312097
delta logL = -0.00131332154979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4930.69180761
delta logL = 3.44443833455e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6238       1.0000          .0000       5.0000    
     3 'Normalizat'    .99820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77272       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=   4930.692     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      237 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2479        .61017E-01** at limit **
   2  alpha         2.1123        3.1348        .17967E-01    .75932E-09
   3  Normalizat    .99824        .58351E-02    .22213E-03   -.86648E-04
   4  Prefactor     .77268        .62020E-02    .26373E-03   -.68109E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.11235
  Normalizat = 0.998239
  Prefactor  = 0.772678
 **********
 **   18 **HESSE 
 **********

 FCN=   4930.692     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0990        .20939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1123        3.5173        .35933E-02   -.15569    
   3  Normalizat    .99824        .20832        .88852E-05   -.93089    
   4  Prefactor     .77268        .22134        .10549E-04   -1.0074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00078e-12
Minuit parameter uncertainties:
  1  1.29738e-06
  2  246.127
  3  0.208488
  4  0.221596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806791': 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) = 4930.69180593
delta logL = 1.71801730176e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.727e-01  2.216e-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.982e-01  2.085e-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/806791/cmap_HighResolution_647049601_647308801_4FGL_J2322.8-4916_daily_bin1573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-05', job_status='DONE', photon_flux_upper_limit='2.43e-08', time_completed='2021-09-29 14:34:56.657404', job_id='806791', GAL2='0.77', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632951296.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1573' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:34:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 806791: <4FGL_J2322.8-4916_daily_bin1573> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1573 350.708 -49.2725 647049601 647308801 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 :                                   820.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            858 sec.

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

