/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 6 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2322.6-0735_daily_bin98
RA = 350.658, Dec = -7.5907
tmin = 264729601, tmax = 264988801
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='790416', job_status='RUN', time_executed='2021-09-29 13:30:45.085179', time_epoch_executed='1632947445.09' WHERE source_name='4FGL J2322.6-0735' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790416/ft1_4FGL_J2322.6-0735_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790416/ft2_4FGL_J2322.6-0735_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790416/ft1_4FGL_J2322.6-0735_daily_bin98.fits outfile=/scratch/kocevski/790416/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin98.fits ra=350.658 dec=-7.5907 rad=12.0 tmin=264729601.0 tmax=264988801.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 1.45
user 1.24
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/790416/ft2_4FGL_J2322.6-0735_daily_bin98.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790416/ft2_4FGL_J2322.6-0735_daily_bin98.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/790416/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin98.fits evtable="EVENTS" outfile="/scratch/kocevski/790416/ft1_filtered_4FGL_J2322.6-0735_daily_bin98.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790416/ft1_filtered_4FGL_J2322.6-0735_daily_bin98.fits" evtable="EVENTS" scfile=/scratch/kocevski/790416/ft2_4FGL_J2322.6-0735_daily_bin98.fits sctable="SC_DATA" outfile=/scratch/kocevski/790416/ltcube_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.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/790416/ft2_4FGL_J2322.6-0735_daily_bin98.fits
.....................!
real 12.83
user 12.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790416/ft1_filtered_4FGL_J2322.6-0735_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/790416/ft2_4FGL_J2322.6-0735_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/790416/ltcube_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.fits outfile=/scratch/kocevski/790416/expmap_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.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/790416/ltcube_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.fits
.....................!
real 190.29
user 184.85
sys 5.05

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2322.6-0735 @ 350.658 -7.5907

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/790416/ft1_filtered_4FGL_J2322.6-0735_daily_bin98.fits scfile=/scratch/kocevski/790416/ft2_4FGL_J2322.6-0735_daily_bin98.fits outfile=/scratch/kocevski/790416/cmap_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.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.658 yref=-7.5907 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790416/ft1_filtered_4FGL_J2322.6-0735_daily_bin98.fits scfile=/scratch/kocevski/790416/ft2_4FGL_J2322.6-0735_daily_bin98.fits outfile=/scratch/kocevski/790416/cmap_HighResolution_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.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.658 yref=-7.5907 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790416/ft1_filtered_4FGL_J2322.6-0735_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/790416/ft2_4FGL_J2322.6-0735_daily_bin98.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790416/Model_4FGL_J2322.6-0735_daily_bin98.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/790416/ft1_filtered_4FGL_J2322.6-0735_daily_bin98.fits....................!
real 60.16
user 58.83
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790416/ft1_filtered_4FGL_J2322.6-0735_daily_bin98.fits', '/scratch/kocevski/790416/ft2_4FGL_J2322.6-0735_daily_bin98.fits', expMap='/scratch/kocevski/790416/expmap_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.fits', expCube='/scratch/kocevski/790416/ltcube_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790416/Model_4FGL_J2322.6-0735_daily_bin98.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2322.6-0735'

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.363e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/790416/ft1_filtered_4FGL_J2322.6-0735_daily_bin98.fits
Spacecraft file(s): /scratch/kocevski/790416/ft2_4FGL_J2322.6-0735_daily_bin98.fits
Exposure map: /scratch/kocevski/790416/expmap_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.fits
Exposure cube: /scratch/kocevski/790416/ltcube_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790416/Model_4FGL_J2322.6-0735_daily_bin98.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) = 6807.83491441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.121       1.0000         .10000E-03   10000.    
     5 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8920       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4437       1.0000         .10000E-03   10000.    
     9 'norm      '    .10106E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3920       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9015       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2924       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1291       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.410       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .61902E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2866       1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.187       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3908       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.856       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.4856       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11652E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.6931       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .67519       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0451       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6807.791     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     4542 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2599        .14227E-06** at limit **
   2  Prefactor     .10000E-03    11.448       -.26977E-06** at limit **
   3  Prefactor     .10000E-03    144.13       -.14311E-05** at limit **
   4  Prefactor     10.111        7.5653       -.11711E-05   -.67379E-03
   5  norm          .10000E-03    .29181        .35402E-06** at limit **
   6  Prefactor     .10000E-03    5.8399        .17195E-06** at limit **
   7  Prefactor     6.8911        6.4206       -.34471E-07   -.67969E-04
   8  Prefactor     7.4429        6.5286       -.57670E-07   -.70399E-04
   9  norm          .10000E-03    32.502       -.54735E-05** at limit **
  10  Prefactor     7.3930        11.062        .11702E-06    .24836E-04
  11  Prefactor     3.8894        77.517       -.80210E-06   -.60043E-04
  12  Prefactor     5.2931        38.742       -.12741E-06   -.49158E-04
  13  Prefactor     .10000E-03    7.2065       -.62255E-06** at limit **
  14  norm          2.1292        .90045        .31506E-07   -.49423E-03
  15  norm          .10000E-03    2.4281       -.11823E-06** at limit **
  16  Prefactor     .10000E-03    20.982        .31173E-06** at limit **
  17  Prefactor     62.380        58.006       -.79786E-06   -.10517E-03
  18  Prefactor     .10000E-03    10.460        .87997E-06** at limit **
  19  Prefactor     .10000E-03    456.34        .99200E-05** at limit **
  20  Prefactor     6.2864        7.5526       -.35516E-07   -.74363E-04
  21  norm          .10000E-03    6.3945       -.10791E-06** at limit **
  22  Prefactor     39.183        39.278        .55918E-07   -.34719E-05
  23  Prefactor     4.3905        3.6520       -.15400E-06   -.16205E-03
  24  Prefactor     23.854        27.030        .12950E-06    .23637E-05
  25  norm          .10000E-03    .13197        .40104E-07** at limit **
  26  norm          4.4847        3.3920       -.20350E-06   -.17066E-03
  27  Prefactor     .10000E-03    265.93       -.21073E-04** at limit **
  28  Prefactor     2.6921        6.1808       -.82050E-06    .92232E-04
  29  Normalizat    .67522        .20301        .40036E-05   -.11553E-03
  30  Prefactor     1.0452        .15585       -.30141E-05    .60695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1106
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.89107
  Prefactor  = 7.44287
  norm       = 0.0001
  Prefactor  = 7.393
  Prefactor  = 3.88936
  Prefactor  = 5.29309
  Prefactor  = 0.0001
  norm       = 2.12916
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.3802
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.2864
  norm       = 0.0001
  Prefactor  = 39.1829
  Prefactor  = 4.39051
  Prefactor  = 23.8544
  norm       = 0.0001
  norm       = 4.48474
  Prefactor  = 0.000100003
  Prefactor  = 2.69215
  Normalizat = 0.675218
  Prefactor  = 1.04517
 **********
 **   18 **HESSE 
 **********

 FCN=   6807.791     FROM HESSE     STATUS=OK           594 CALLS     5136 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2742        .14550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    144.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.111        7.6580        .12595E-03   -1.5072    
   5  norm          .10000E-03    .43120        .84809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8911        6.4190        .15282E-03   -1.5183    
   8  Prefactor     7.4429        6.5280        .14700E-03   -1.5162    
   9  norm          .10000E-03    32.168        .36740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.3930        11.058        .14752E-03   -1.5164    
  11  Prefactor     3.8894        80.126        .20426E-03   -1.5314    
  12  Prefactor     5.2931        38.552        .17471E-03   -1.5248    
  13  Prefactor     .10000E-03    7.4719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1292        .89561        .48305E-04   -1.5416    
  15  norm          .10000E-03    2.4768        .12543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     62.380        57.665        .50793E-04   -1.4127    
  18  Prefactor     .10000E-03    10.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    462.23        .21047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2864        7.5212        .16009E-03   -1.5206    
  21  norm          .10000E-03    6.3979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     39.183        39.268        .64029E-04   -1.4455    
  23  Prefactor     4.3905        3.6358        .13222E-03   -1.5289    
  24  Prefactor     23.854        27.023        .82011E-04   -1.4731    
  25  norm          .10000E-03    .13553        .58106E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.4847        3.3654        .12621E-03   -1.5284    
  27  Prefactor     .10000E-03    18.712        .80039E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.6921        6.1893        .24826E-03   -1.5380    
  29  Normalizat    .67522        .20404        .29153E-03   -1.0488    
  30  Prefactor     1.0452        .15591        .19526E-03   -.91239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3269e-10
Minuit parameter uncertainties:
  1  7.54432e-06
  2  7.38481e-06
  3  0.000157856
  4  7.65878
  5  7.28406e-06
  6  7.28554e-06
  7  6.41966
  8  6.52859
  9  0.000189502
  10  11.0609
  11  35.3605
  12  28.5956
  13  3.25148e-05
  14  0.895614
  15  6.9764e-06
  16  5.47945e-06
  17  57.7169
  18  0.000179894
  19  2.70044e-05
  20  7.5223
  21  2.47619e-06
  22  39.2941
  23  3.63595
  24  27.0365
  25  4.64945e-08
  26  3.36559
  27  0.000490649
  28  6.19075
  29  0.20427
  30  0.155979
Done.

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

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.000e-04  3.251e-05  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  1.045e+00  1.560e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  6.752e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.658 -7.591
Photon Flux Upper Limit: 5.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/790416/likelihoodResults_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6807.79131684
delta logL = -0.000639039559246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6807.79067695
delta logL = 8.47133378556e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2857       1.0000          .0000       10.000    
     3 'Normalizat'    .67521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0452       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+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=   6807.791     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      252 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10187E-03    18.941        .36285E-02** at limit **
   2  Index         2.2093        6.7098        .50000        .40765E-04
   3  Normalizat    .67522        .55268E-02    .29153E-03   -.82986E-04
   4  Prefactor     1.0452        .45546E-02    .19526E-03    .40523E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101866
  Index      = 2.20934
  Normalizat = 0.675218
  Prefactor  = 1.04517
 **********
 **   18 **HESSE 
 **********

 FCN=   6807.791     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10187E-03    92.972        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2093        5.7323        .50000       -.59213    
   3  Normalizat    .67522        .12311E-01    .11661E-04   -1.0488    
   4  Prefactor     1.0452        .10145E-01    .39052E-04   -.91239    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.72154e-09
Minuit parameter uncertainties:
  1  0.0263813
  2  139.801
  3  0.012311
  4  0.0101453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790416': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6807.79067613
delta logL = 1.6612248146e-06

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.019e-04  2.638e-02  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.209e+00  1.398e+02  0.000e+00  1.000e+01 (-1.000e+00)
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  1.045e+00  1.015e-02  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  6.752e-01  1.231e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.658 -7.591

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/790416/cmap_HighResolution_264729601_264988801_4FGL_J2322.6-0735_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-09-29 13:45:17.225758', job_id='790416', GAL2='1.05', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632948317.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='98' AND source_name='4FGL J2322.6-0735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:45:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 790416: <4FGL_J2322.6-0735_daily_bin98> in cluster <slac> Done

Job <4FGL_J2322.6-0735_daily_bin98> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 13:30:27 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:30:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 13:30:29 2021
Terminated at Wed Sep 29 13:45:18 2021
Results reported at Wed Sep 29 13:45:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.6-0735_daily_bin98 350.658 -7.5907 264729601 264988801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2322.6-0735 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   870.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

