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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1041
RA = 350.708, Dec = -49.2725
tmin = 509155201, tmax = 509414401
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='804985', job_status='RUN', time_executed='2021-09-29 14:15:37.836174', time_epoch_executed='1632950137.84' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804985

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804985/ft1_4FGL_J2322.8-4916_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804985/ft2_4FGL_J2322.8-4916_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804985/ft1_4FGL_J2322.8-4916_daily_bin1041.fits outfile=/scratch/kocevski/804985/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1041.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=509155201.0 tmax=509414401.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.65
user 3.40
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804985/ft1_filtered_4FGL_J2322.8-4916_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/804985/ft2_4FGL_J2322.8-4916_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/804985/ltcube_509155201_509414401_4FGL_J2322.8-4916_daily_bin1041.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/804985/ft2_4FGL_J2322.8-4916_daily_bin1041.fits
.....................!
real 12.48
user 12.09
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804985/ft1_filtered_4FGL_J2322.8-4916_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/804985/ft2_4FGL_J2322.8-4916_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/804985/ltcube_509155201_509414401_4FGL_J2322.8-4916_daily_bin1041.fits outfile=/scratch/kocevski/804985/expmap_509155201_509414401_4FGL_J2322.8-4916_daily_bin1041.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/804985/ltcube_509155201_509414401_4FGL_J2322.8-4916_daily_bin1041.fits
.....................!
real 190.70
user 185.40
sys 4.81

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/804985/ft1_filtered_4FGL_J2322.8-4916_daily_bin1041.fits scfile=/scratch/kocevski/804985/ft2_4FGL_J2322.8-4916_daily_bin1041.fits outfile=/scratch/kocevski/804985/cmap_509155201_509414401_4FGL_J2322.8-4916_daily_bin1041.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804985/ft1_filtered_4FGL_J2322.8-4916_daily_bin1041.fits scfile=/scratch/kocevski/804985/ft2_4FGL_J2322.8-4916_daily_bin1041.fits outfile=/scratch/kocevski/804985/cmap_HighResolution_509155201_509414401_4FGL_J2322.8-4916_daily_bin1041.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.734       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.430       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    365.47       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8789       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9765       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.070       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3153       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49046E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.6839       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.459       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.868       1.0000         .10000E-03   10000.    
    25 'norm      '    1.9975       1.0000         .10000E-03   10000.    
    26 'norm      '    18.194       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    11.148       1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.6295       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .85011       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1614       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=   4618.604     FROM MIGRAD    STATUS=CONVERGED    914 CALLS     4830 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.111       -.20146E-06** at limit **
   2  Prefactor     23.738        27.408        .13037E-06    .13033E-04
   3  Prefactor     25.534        41.627        .12881E-06    .79343E-05
   4  Prefactor     12.430        11.803        .81855E-06    .11767E-03
   5  Prefactor     .10000E-03    5.8470       -.10713E-06** at limit **
   6  Prefactor     .10000E-03    3.5659       -.42658E-07** at limit **
   7  Prefactor     365.53        211.30        .74666E-06    .55703E-04
   8  norm          .10000E-03    6.2248        .10124E-06** at limit **
   9  Prefactor     5.8787        5.1981        .16932E-06    .24902E-04
  10  Prefactor     .10000E-03    27.295       -.88560E-08** at limit **
  11  Prefactor     8.9786        9.4884        .33275E-06    .63241E-04
  12  Prefactor     22.064        31.057        .61545E-07    .61007E-05
  13  Prefactor     .10000E-03    15.186       -.49905E-06** at limit **
  14  Prefactor     .10000E-03    53.634        .32996E-06** at limit **
  15  Prefactor     7.3148        7.3648        .89239E-07    .77297E-05
  16  Prefactor     .10000E-03    19.610        .14930E-06** at limit **
  17  Prefactor     .10469E-03    14.367       -.27780E-05** at limit **
  18  norm          8.6829        9.4804       -.19144E-07    .15519E-05
  19  norm          .10000E-03    2.8205       -.62677E-08** at limit **
  20  norm          .10000E-03    2.7665        .47494E-06** at limit **
  21  Prefactor     .10000E-03    2.7679        .14485E-07** at limit **
  22  Prefactor     26.509        59.270        .98510E-06   -.16768E-04
  23  norm          .10000E-03    9.3999        .53844E-05** at limit **
  24  Prefactor     29.871        19.594        .27302E-06    .85157E-04
  25  norm          1.9975        1.4579        .95139E-07    .82609E-03
  26  norm          18.195        9.0373       -.44006E-07   -.34171E-03
  27  Prefactor     .10000E-03    7.9588       -.37200E-06** at limit **
  28  Prefactor     .10000E-03    1.1260       -.47071E-07** at limit **
  29  Prefactor     .10000E-03    7.4733        .12803E-06** at limit **
  30  norm          .10000E-03    33.315       -.10022E-05** at limit **
  31  Prefactor     11.150        7.0614        .92276E-06    .35591E-03
  32  Prefactor     5.6301        5.6696        .25159E-06    .50565E-04
  33  Normalizat    .84974        .25073       -.40060E-05    .10891E-03
  34  Prefactor     1.1618        .24176        .25277E-05   -.33277E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.7378
  Prefactor  = 25.5342
  Prefactor  = 12.4298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 365.533
  norm       = 0.0001
  Prefactor  = 5.87866
  Prefactor  = 0.0001
  Prefactor  = 8.97858
  Prefactor  = 22.0643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.31483
  Prefactor  = 0.0001
  Prefactor  = 0.000104686
  norm       = 8.6829
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5094
  norm       = 0.000100002
  Prefactor  = 29.8706
  norm       = 1.99748
  norm       = 18.1952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 11.1495
  Prefactor  = 5.63008
  Normalizat = 0.849738
  Prefactor  = 1.1618
 **********
 **   18 **HESSE 
 **********

 FCN=   4618.604     FROM HESSE     STATUS=OK           738 CALLS     5568 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    97.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.738        27.373        .82222E-04   -1.4733    
   3  Prefactor     25.534        41.665        .79279E-04   -1.4697    
   4  Prefactor     12.430        11.806        .56809E-03   -1.5003    
   5  Prefactor     .10000E-03    5.8780        .16044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5731        .12532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     365.53        211.74        .10658E-03   -1.1860    
   8  norm          .10000E-03    6.3098        .16558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8787        5.1935        .13924E-03   -1.5223    
  10  Prefactor     .10000E-03    27.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9786        9.4754        .13378E-03   -1.5109    
  12  Prefactor     22.064        31.029        .85260E-04   -1.4768    
  13  Prefactor     .10000E-03    15.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    53.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3148        7.3642        .14829E-03   -1.5167    
  16  Prefactor     .10000E-03    19.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10469E-03    17.242        .75066E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.6829        9.4819        .13602E-03   -1.5119    
  19  norm          .10000E-03    2.8215        .11146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7697        .11038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7697        .11038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.509        59.105        .77881E-04   -1.4678    
  23  norm          .10000E-03    9.6999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.871        19.614        .73311E-04   -1.4614    
  25  norm          1.9975        1.4479        .65335E-04   -1.5425    
  26  norm          18.195        9.0406        .93899E-04   -1.4855    
  27  Prefactor     .10000E-03    7.9900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.1296        .70410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.4803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    33.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     11.150        7.0684        .59994E-03   -1.5040    
  32  Prefactor     5.6301        5.6633        .15026E-03   -1.5233    
  33  Normalizat    .84974        .29299        .28430E-03   -.98249    
  34  Prefactor     1.1618        .28514        .25985E-03   -.87515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37051e-09
Minuit parameter uncertainties:
  1  7.02815e-05
  2  27.3872
  3  41.7125
  4  11.8086
  5  3.34128e-06
  6  2.81143e-07
  7  212.196
  8  2.54788e-06
  9  5.19388
  10  1.50527e-05
  11  9.47694
  12  31.0518
  13  6.21365e-05
  14  0.000295447
  15  7.36511
  16  9.12118e-05
  17  0.0179829
  18  9.48353
  19  4.45058e-07
  20  1.00237e-05
  21  2.72304e-06
  22  59.2359
  23  0.000278523
  24  19.6183
  25  1.44792
  26  9.04126
  27  5.9848e-05
  28  1.36695e-06
  29  3.96237e-05
  30  0.000424709
  31  7.06891
  32  5.66384
  33  0.293536
  34  0.285522
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  4.451e-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:  1.162e+00  2.855e-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:  8.497e-01  2.935e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804985/likelihoodResults_509155201_509414401_4FGL_J2322.8-4916_daily_bin1041.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) = 4618.60546189
delta logL = -0.00133273216852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4618.60412917
delta logL = -3.27054294758e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6083       1.0000          .0000       5.0000    
     3 'Normalizat'    .84972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1618       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=   4618.604     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      241 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.229        .11154E-02** at limit **
   2  alpha         1.4584        3.0723        .18031       -.25157E-07
   3  Normalizat    .84973        .26361        .28430E-03    .67180E-05
   4  Prefactor     1.1618        .27880        .25985E-03    .71752E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.45839
  Normalizat = 0.849734
  Prefactor  = 1.16181
 **********
 **   18 **HESSE 
 **********

 FCN=   4618.604     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8591        .22307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4584        3.8670        .72125E-02   -.42975    
   3  Normalizat    .84973        .26391        .11372E-04   -.98250    
   4  Prefactor     1.1618        .27912        .10394E-04   -.87515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50789e-11
Minuit parameter uncertainties:
  1  3.55134e-05
  2  222.048
  3  0.264314
  4  0.279475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804985': 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) = 4618.60412893
delta logL = 2.32577804127e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  3.551e-05  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.458e+00  2.220e+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:  1.162e+00  2.795e-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:  8.497e-01  2.643e-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/804985/cmap_HighResolution_509155201_509414401_4FGL_J2322.8-4916_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-05', job_status='DONE', photon_flux_upper_limit='2.52e-08', time_completed='2021-09-29 14:28:53.251344', job_id='804985', GAL2='1.16', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632950933.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1041' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:28:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 804985: <4FGL_J2322.8-4916_daily_bin1041> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1041> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:15:15 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:15:17 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:15:17 2021
Terminated at Wed Sep 29 14:28:56 2021
Results reported at Wed Sep 29 14:28:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1041 350.708 -49.2725 509155201 509414401 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 :                                   789.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            821 sec.

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

