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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1275
RA = 350.708, Dec = -49.2725
tmin = 569808001, tmax = 570067201
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='805331', job_status='RUN', time_executed='2021-09-29 14:16:05.592939', time_epoch_executed='1632950165.59' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805331/ft1_4FGL_J2322.8-4916_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805331/ft2_4FGL_J2322.8-4916_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805331/ft1_4FGL_J2322.8-4916_daily_bin1275.fits outfile=/scratch/kocevski/805331/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1275.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=569808001.0 tmax=570067201.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.60
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805331/ft1_filtered_4FGL_J2322.8-4916_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/805331/ft2_4FGL_J2322.8-4916_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/805331/ltcube_569808001_570067201_4FGL_J2322.8-4916_daily_bin1275.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/805331/ft2_4FGL_J2322.8-4916_daily_bin1275.fits
.....................!
real 12.24
user 11.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805331/ft1_filtered_4FGL_J2322.8-4916_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/805331/ft2_4FGL_J2322.8-4916_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/805331/ltcube_569808001_570067201_4FGL_J2322.8-4916_daily_bin1275.fits outfile=/scratch/kocevski/805331/expmap_569808001_570067201_4FGL_J2322.8-4916_daily_bin1275.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/805331/ltcube_569808001_570067201_4FGL_J2322.8-4916_daily_bin1275.fits
.....................!
real 191.63
user 186.14
sys 5.16

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/805331/ft1_filtered_4FGL_J2322.8-4916_daily_bin1275.fits scfile=/scratch/kocevski/805331/ft2_4FGL_J2322.8-4916_daily_bin1275.fits outfile=/scratch/kocevski/805331/cmap_569808001_570067201_4FGL_J2322.8-4916_daily_bin1275.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/805331/ft1_filtered_4FGL_J2322.8-4916_daily_bin1275.fits scfile=/scratch/kocevski/805331/ft2_4FGL_J2322.8-4916_daily_bin1275.fits outfile=/scratch/kocevski/805331/cmap_HighResolution_569808001_570067201_4FGL_J2322.8-4916_daily_bin1275.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/805331/ft1_filtered_4FGL_J2322.8-4916_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/805331/ft2_4FGL_J2322.8-4916_daily_bin1275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805331/Model_4FGL_J2322.8-4916_daily_bin1275.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/805331/ft1_filtered_4FGL_J2322.8-4916_daily_bin1275.fits.....................!
real 44.66
user 43.41
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.421       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3486       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0760       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26350E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69667E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5530       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.180       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8805       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.746       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .67193       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.746       1.0000         .10000E-03   10000.    
    18 'norm      '    5.6808       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.9343       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7072       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.163       1.0000         .10000E-03   10000.    
    23 'norm      '    7.7923       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .17758       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.6823       1.0000         .10000E-03   10000.    
    29 'Prefactor '    33.900       1.0000         .10000E-03   10000.    
    30 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .21567E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .84932       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .98931       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=   6048.534     FROM MIGRAD    STATUS=CONVERGED    926 CALLS     4859 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.425        42.629       -.60055E-07   -.84637E-05
   2  Prefactor     .10000E-03    8.9250        .24596E-07** at limit **
   3  Prefactor     1.3669        130.27       -.26764E-05   -.16557E-04
   4  Prefactor     .10000E-03    12.973        .68097E-06** at limit **
   5  Prefactor     9.0769        6.0408       -.15279E-06   -.41188E-04
   6  Prefactor     .10001E-03    41.032        .10344E-04** at limit **
   7  Prefactor     .10003E-03    931.86        .40694E-05** at limit **
   8  norm          .10000E-03    10.057        .83851E-06** at limit **
   9  Prefactor     8.5526        4.6825        .49204E-07    .18040E-03
  10  Prefactor     .10000E-03    60.863        .55609E-06** at limit **
  11  Prefactor     29.179        8.3278        .45372E-06    .18600E-03
  12  Prefactor     .10000E-03    11.389        .51031E-06** at limit **
  13  Prefactor     7.8792        7.5185        .26873E-06    .19428E-04
  14  Prefactor     25.731        48.637       -.86853E-07    .80011E-05
  15  Prefactor     .67024        6.4066       -.22719E-05   -.56464E-04
  16  Prefactor     .10000E-03    10.252        .10699E-06** at limit **
  17  Prefactor     14.759        15.690       -.61092E-06    .11449E-03
  18  norm          5.6795        8.4787       -.25768E-07    .77483E-05
  19  norm          .10000E-03    3.4468        .13167E-06** at limit **
  20  norm          5.9343        5.3625        .61124E-07    .80299E-05
  21  Prefactor     5.7094        5.0281       -.19784E-06    .13289E-03
  22  Prefactor     33.151        34.597       -.10585E-06    .70440E-05
  23  norm          7.7918        6.0758       -.43783E-07   -.20383E-04
  24  Prefactor     .10000E-03    4.7274        .22192E-06** at limit **
  25  norm          .17699        .88189        .31254E-06    .12342E-02
  26  norm          .10000E-03    1.0919        .58997E-07** at limit **
  27  Prefactor     .10000E-03    7.2334        .36485E-06** at limit **
  28  Prefactor     3.6847        3.7486       -.82360E-06   -.29062E-03
  29  Prefactor     33.906        21.641       -.49677E-06   -.53161E-04
  30  norm          .10000E-03    9.7831        .60623E-07** at limit **
  31  Prefactor     .10000E-03    8.6818       -.34710E-05** at limit **
  32  Prefactor     .10001E-03    2.1793       -.28102E-06** at limit **
  33  Normalizat    .84945        .18133       -.77738E-06   -.33215E-04
  34  Prefactor     .98933        .18822        .41378E-07   -.11104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4253
  Prefactor  = 0.0001
  Prefactor  = 1.36686
  Prefactor  = 0.0001
  Prefactor  = 9.07692
  Prefactor  = 0.000100005
  Prefactor  = 0.000100027
  norm       = 0.0001
  Prefactor  = 8.55259
  Prefactor  = 0.0001
  Prefactor  = 29.1794
  Prefactor  = 0.0001
  Prefactor  = 7.87919
  Prefactor  = 25.7309
  Prefactor  = 0.670237
  Prefactor  = 0.0001
  Prefactor  = 14.7588
  norm       = 5.67948
  norm       = 0.0001
  norm       = 5.93432
  Prefactor  = 5.70942
  Prefactor  = 33.1515
  norm       = 7.79184
  Prefactor  = 0.0001
  norm       = 0.17699
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.68468
  Prefactor  = 33.9065
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100006
  Normalizat = 0.849445
  Prefactor  = 0.989331
 **********
 **   18 **HESSE 
 **********

 FCN=   6048.534     FROM HESSE     STATUS=OK           750 CALLS     5609 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.425        42.629        .84593E-04   -1.4761    
   2  Prefactor     .10000E-03    8.9423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3669        130.37        .37687E-03   -1.5474    
   4  Prefactor     .10000E-03    13.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0769        6.0280        .13304E-03   -1.5105    
   6  Prefactor     .10001E-03    4.4991        .53197E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    936.69        .18707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5526        4.6802        .11870E-03   -1.5123    
  10  Prefactor     .10000E-03    61.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.179        8.3408        .74168E-04   -1.4627    
  12  Prefactor     .10000E-03    11.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8792        7.5169        .14284E-03   -1.5146    
  14  Prefactor     25.731        48.640        .78949E-04   -1.4693    
  15  Prefactor     .67024        6.5187        .38087E-03   -1.5544    
  16  Prefactor     .10000E-03    10.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.759        15.404        .10430E-03   -1.4939    
  18  norm          5.6795        8.4746        .16853E-03   -1.5231    
  19  norm          .10000E-03    3.4642        .14096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.9343        5.3628        .15984E-03   -1.5221    
  21  Prefactor     5.7094        4.9911        .15421E-03   -1.5230    
  22  Prefactor     33.151        34.625        .69583E-04   -1.4556    
  23  norm          7.7918        6.0667        .13455E-03   -1.5150    
  24  Prefactor     .10000E-03    4.7409        .16513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .17699        1.4739        .12555E-02   -1.5624    
  26  norm          .10000E-03    1.0978        .79324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.2619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.6847        3.6993        .13367E-03   -1.5324    
  29  Prefactor     33.906        21.553        .68825E-04   -1.4543    
  30  norm          .10000E-03    9.7928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    30.545        .23364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10001E-03    6.0343        .20763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .84945        .21591        .24830E-03   -.98260    
  34  Prefactor     .98933        .22544        .25115E-03   -.93086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45222e-09
Minuit parameter uncertainties:
  1  42.6869
  2  7.09615e-07
  3  26.7577
  4  2.92446e-05
  5  6.02842
  6  0.000311498
  7  0.0102966
  8  2.97898e-05
  9  4.68043
  10  3.62628e-05
  11  8.34114
  12  3.38258e-05
  13  7.51775
  14  48.7149
  15  4.18075
  16  5.03747e-06
  17  15.4076
  18  8.47635
  19  1.02243e-05
  20  5.36324
  21  4.99147
  22  34.6462
  23  6.06714
  24  1.21561e-05
  25  1.02123
  26  7.90441e-07
  27  7.35773e-06
  28  3.69957
  29  21.5583
  30  9.42513e-06
  31  0.000682241
  32  0.000369098
  33  0.216124
  34  0.225653
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.022e-05  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:  9.893e-01  2.257e-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.494e-01  2.161e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805331/likelihoodResults_569808001_570067201_4FGL_J2322.8-4916_daily_bin1275.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) = 6048.53517307
delta logL = -0.00136505966566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6048.53380828
delta logL = -2.73663317785e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10408E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6417       1.0000          .0000       5.0000    
     3 'Normalizat'    .84932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98947       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.

 FCN=   6048.534     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      193 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.137        .90712E-02** at limit **
   2  alpha         1.6729        2.7808        .44736       -.40834E-04
   3  Normalizat    .84945        .17108        .44251E-01    .19080E-04
   4  Prefactor     .98933        .18642        .46135E-01   -.19193E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.67294
  Normalizat = 0.849446
  Prefactor  = 0.989331
 **********
 **   18 **HESSE 
 **********

 FCN=   6048.534     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8697        .14615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6729        3.3078        .50000       -.33718    
   3  Normalizat    .84945        .20349        .24830E-03   -.98260    
   4  Prefactor     .98933        .22175        .25115E-03   -.93086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36579e-09
Minuit parameter uncertainties:
  1  0.000136901
  2  2.40452
  3  0.203677
  4  0.221952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805331': 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) = 6048.53380698
delta logL = 1.03263664641e-06

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.369e-04  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.673e+00  2.405e+00  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:  9.893e-01  2.220e-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.494e-01  2.037e-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/805331/cmap_HighResolution_569808001_570067201_4FGL_J2322.8-4916_daily_bin1275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-05', job_status='DONE', photon_flux_upper_limit='2.35e-08', time_completed='2021-09-29 14:32:18.310275', job_id='805331', GAL2='0.99', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632951138.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1275' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:32:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 805331: <4FGL_J2322.8-4916_daily_bin1275> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1275 350.708 -49.2725 569808001 570067201 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 :                                   958.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

