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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin757
RA = 350.708, Dec = -49.2725
tmin = 435542401, tmax = 435801601
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='800839', job_status='RUN', time_executed='2021-09-29 14:05:46.627314', time_epoch_executed='1632949546.63' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/800839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/800839/ft1_4FGL_J2322.8-4916_daily_bin757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/800839/ft2_4FGL_J2322.8-4916_daily_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/800839/ft1_4FGL_J2322.8-4916_daily_bin757.fits outfile=/scratch/kocevski/800839/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin757.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=435542401.0 tmax=435801601.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 5.48
user 5.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/800839/ft1_filtered_4FGL_J2322.8-4916_daily_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/800839/ft2_4FGL_J2322.8-4916_daily_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/800839/ltcube_435542401_435801601_4FGL_J2322.8-4916_daily_bin757.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/800839/ft2_4FGL_J2322.8-4916_daily_bin757.fits
.....................!
real 12.02
user 11.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/800839/ft1_filtered_4FGL_J2322.8-4916_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/800839/ft2_4FGL_J2322.8-4916_daily_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/800839/ltcube_435542401_435801601_4FGL_J2322.8-4916_daily_bin757.fits outfile=/scratch/kocevski/800839/expmap_435542401_435801601_4FGL_J2322.8-4916_daily_bin757.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/800839/ltcube_435542401_435801601_4FGL_J2322.8-4916_daily_bin757.fits
.....................!
real 190.16
user 185.36
sys 4.36

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/800839/ft1_filtered_4FGL_J2322.8-4916_daily_bin757.fits scfile=/scratch/kocevski/800839/ft2_4FGL_J2322.8-4916_daily_bin757.fits outfile=/scratch/kocevski/800839/cmap_435542401_435801601_4FGL_J2322.8-4916_daily_bin757.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.50
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/800839/ft1_filtered_4FGL_J2322.8-4916_daily_bin757.fits scfile=/scratch/kocevski/800839/ft2_4FGL_J2322.8-4916_daily_bin757.fits outfile=/scratch/kocevski/800839/cmap_HighResolution_435542401_435801601_4FGL_J2322.8-4916_daily_bin757.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/800839/ft1_filtered_4FGL_J2322.8-4916_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/800839/ft2_4FGL_J2322.8-4916_daily_bin757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/800839/Model_4FGL_J2322.8-4916_daily_bin757.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/800839/ft1_filtered_4FGL_J2322.8-4916_daily_bin757.fits.....................!
real 23.24
user 21.94
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29607E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.202       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9035       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12518E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .28644       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7882       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.459       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.971       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .14283E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10356E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.180       1.0000         .10000E-03   10000.    
    23 'norm      '    .10283E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.706       1.0000         .10000E-03   10000.    
    26 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.7937       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.8285       1.0000         .10000E-03   10000.    
    30 'norm      '    1.2005       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.9984       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2290       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .57503       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=   1828.514     FROM MIGRAD    STATUS=CONVERGED    956 CALLS     4853 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.62       -.46585E-05** at limit **
   2  Prefactor     .10000E-03    24.692        .21191E-06** at limit **
   3  Prefactor     .10000E-03    361.84        .17524E-05** at limit **
   4  Prefactor     .10000E-03    7.3976       -.98476E-07** at limit **
   5  Prefactor     15.197        19.256        .20658E-06   -.13131E-04
   6  Prefactor     6.9043        17.372       -.81848E-07   -.96131E-05
   7  Prefactor     .10000E-03    389.12       -.77195E-05** at limit **
   8  norm          .26176        58.763        .11079E-04   -.48542E-04
   9  Prefactor     1.7883        4.0573        .11833E-06   -.99788E-05
  10  Prefactor     17.451        46.757       -.16168E-06   -.23868E-05
  11  Prefactor     .10000E-03    2.9255       -.14329E-07** at limit **
  12  Prefactor     .10000E-03    13.129       -.38043E-08** at limit **
  13  Prefactor     .10000E-03    6.0967       -.32680E-07** at limit **
  14  Prefactor     .10000E-03    66.619        .96181E-06** at limit **
  15  Prefactor     11.973        12.478       -.45198E-07   -.19086E-04
  16  Prefactor     .10000E-03    25.766       -.69063E-06** at limit **
  17  Prefactor     .10000E-03    10.779       -.20036E-07** at limit **
  18  norm          .10000E-03    293.31        .12777E-04** at limit **
  19  norm          .10000E-03    6.1687       -.43419E-07** at limit **
  20  norm          .10000E-03    114.73        .19133E-04** at limit **
  21  Prefactor     .10000E-03    8.4579        .48436E-06** at limit **
  22  Prefactor     51.295        101.30       -.41417E-06   -.29550E-04
  23  norm          .10000E-03    6.8072        .18564E-05** at limit **
  24  Prefactor     .10000E-03    19.715        .29617E-06** at limit **
  25  norm          13.706        4.2811       -.28644E-07   -.24531E-03
  26  norm          .10000E-03    5.1989        .75186E-06** at limit **
  27  Prefactor     .10000E-03    23.584        .35105E-06** at limit **
  28  Prefactor     6.7851        12.156        .78708E-06   -.30613E-04
  29  Prefactor     3.9371        296.61        .24496E-05    .10357E-04
  30  norm          1.2150        528.34        .55398E-05   -.24152E-05
  31  Prefactor     2.9981        28.645       -.30981E-05   -.11493E-03
  32  Prefactor     .10000E-03    8.4010        .37624E-06** at limit **
  33  Normalizat    1.2283        .38512        .28002E-05   -.28555E-03
  34  Prefactor     .57562        .35727       -.53801E-05   -.11832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1972
  Prefactor  = 6.90434
  Prefactor  = 0.000100001
  norm       = 0.261764
  Prefactor  = 1.78833
  Prefactor  = 17.4508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 51.2955
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.7061
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.78513
  Prefactor  = 3.93712
  norm       = 1.21499
  Prefactor  = 2.99809
  Prefactor  = 0.0001
  Normalizat = 1.22833
  Prefactor  = 0.575618
 **********
 **   18 **HESSE 
 **********

 FCN=   1828.514     FROM HESSE     STATUS=OK           728 CALLS     5581 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    365.38        .21395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4017        .11360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.197        19.262        .10272E-03   -1.4928    
   6  Prefactor     6.9043        17.393        .15270E-03   -1.5182    
   7  Prefactor     .10000E-03    389.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .26176        359.05        .41657E-02   -1.5606    
   9  Prefactor     1.7883        4.0239        .12533E-03   -1.5441    
  10  Prefactor     17.451        46.744        .95853E-04   -1.4872    
  11  Prefactor     .10000E-03    2.9284        .71434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.131        .15136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.0989        .10313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    66.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.973        12.476        .11578E-03   -1.5016    
  16  Prefactor     .10000E-03    25.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.783        .13714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    300.57        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.1693        .10374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    122.84        .31945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.4705        .12142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     51.295        101.31        .28030E-03   -1.4274    
  23  norm          .10000E-03    6.8790        .10921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.706        4.2807        .45917E-04   -1.4967    
  26  norm          .10000E-03    5.2299        .95329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    23.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.7851        11.959        .13715E-03   -1.5187    
  29  Prefactor     3.9371        283.11        .20627E-03   -1.5311    
  30  norm          1.2150        568.84        .41431E-03   -1.5488    
  31  Prefactor     2.9981        30.736        .11721E-02   -1.5362    
  32  Prefactor     .10000E-03    8.5250        .12096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2283        .44953        .22075E-03   -.85732    
  34  Prefactor     .57562        .43078        .30546E-03   -1.0862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06783e-10
Minuit parameter uncertainties:
  1  0.000504468
  2  1.75093e-05
  3  0.000322878
  4  1.86871e-06
  5  19.2703
  6  17.4052
  7  0.00116169
  8  19.5038
  9  4.02451
  10  46.8421
  11  1.16018e-06
  12  2.14593e-06
  13  2.84713e-06
  14  8.67748e-05
  15  12.479
  16  3.07567e-05
  17  3.93731e-06
  18  0.000702309
  19  5.52306e-07
  20  0.000753188
  21  3.23362e-07
  22  101.649
  23  1.53315e-05
  24  3.07268e-05
  25  4.28077
  26  7.46002e-06
  27  3.57118e-05
  28  11.9635
  29  67.1041
  30  53.092
  31  19.2114
  32  3.3046e-05
  33  0.450958
  34  0.433272
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  5.523e-07  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:  5.756e-01  4.333e-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.228e+00  4.510e-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: 5.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/800839/likelihoodResults_435542401_435801601_4FGL_J2322.8-4916_daily_bin757.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) = 1828.51367254
delta logL = -9.50755181748e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1828.51358919
delta logL = -1.17260317438e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24566E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6014       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57568       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=   1828.514     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      242 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    323.93        .10424E-01** at limit **
   2  alpha         1.2726        2.8227        .18060        .27697E-08
   3  Normalizat    1.2283        .57109E-01    .22076E-03    .58060E-04
   4  Prefactor     .57562        .56198E-01    .30544E-03    .54100E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.27258
  Normalizat = 1.22833
  Prefactor  = 0.575616
 **********
 **   18 **HESSE 
 **********

 FCN=   1828.514     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6971        .10801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2726        4.3402        .72241E-02   -.51320    
   3  Normalizat    1.2283        .36825        .44153E-04   -.85732    
   4  Prefactor     .57562        .36169        .12218E-04   -1.0862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66436e-11
Minuit parameter uncertainties:
  1  5.17843e-06
  2  296.095
  3  0.369033
  4  0.363159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/800839': 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) = 1828.51357683
delta logL = 6.28273937764e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  5.178e-06  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.273e+00  2.961e+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:  5.756e-01  3.632e-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.228e+00  3.690e-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/800839/cmap_HighResolution_435542401_435801601_4FGL_J2322.8-4916_daily_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-04', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-09-29 14:14:27.664509', job_id='800839', GAL2='0.58', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1632950067.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='6.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='757' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:14:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 800839: <4FGL_J2322.8-4916_daily_bin757> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin757 350.708 -49.2725 435542401 435801601 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 :                                   517.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            534 sec.

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

