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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin638
RA = 350.708, Dec = -49.2725
tmin = 404697601, tmax = 404956801
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='800654', job_status='RUN', time_executed='2021-09-29 14:05:35.770551', time_epoch_executed='1632949535.77' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='638'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/800654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/800654/ft1_4FGL_J2322.8-4916_daily_bin638.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/800654/ft2_4FGL_J2322.8-4916_daily_bin638.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/800654/ft1_4FGL_J2322.8-4916_daily_bin638.fits outfile=/scratch/kocevski/800654/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin638.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=404697601.0 tmax=404956801.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 6.14
user 5.90
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/800654/ft1_filtered_4FGL_J2322.8-4916_daily_bin638.fits" evtable="EVENTS" scfile=/scratch/kocevski/800654/ft2_4FGL_J2322.8-4916_daily_bin638.fits sctable="SC_DATA" outfile=/scratch/kocevski/800654/ltcube_404697601_404956801_4FGL_J2322.8-4916_daily_bin638.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/800654/ft2_4FGL_J2322.8-4916_daily_bin638.fits
.....................!
real 11.63
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/800654/ft1_filtered_4FGL_J2322.8-4916_daily_bin638.fits evtable="EVENTS" scfile=/scratch/kocevski/800654/ft2_4FGL_J2322.8-4916_daily_bin638.fits sctable="SC_DATA" expcube=/scratch/kocevski/800654/ltcube_404697601_404956801_4FGL_J2322.8-4916_daily_bin638.fits outfile=/scratch/kocevski/800654/expmap_404697601_404956801_4FGL_J2322.8-4916_daily_bin638.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/800654/ltcube_404697601_404956801_4FGL_J2322.8-4916_daily_bin638.fits
.....................!
real 190.92
user 184.96
sys 5.62

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/800654/ft1_filtered_4FGL_J2322.8-4916_daily_bin638.fits scfile=/scratch/kocevski/800654/ft2_4FGL_J2322.8-4916_daily_bin638.fits outfile=/scratch/kocevski/800654/cmap_404697601_404956801_4FGL_J2322.8-4916_daily_bin638.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/800654/ft1_filtered_4FGL_J2322.8-4916_daily_bin638.fits scfile=/scratch/kocevski/800654/ft2_4FGL_J2322.8-4916_daily_bin638.fits outfile=/scratch/kocevski/800654/cmap_HighResolution_404697601_404956801_4FGL_J2322.8-4916_daily_bin638.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/800654/ft1_filtered_4FGL_J2322.8-4916_daily_bin638.fits evtable="EVENTS" scfile=/scratch/kocevski/800654/ft2_4FGL_J2322.8-4916_daily_bin638.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/800654/Model_4FGL_J2322.8-4916_daily_bin638.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/800654/ft1_filtered_4FGL_J2322.8-4916_daily_bin638.fits.....................!
real 43.01
user 41.72
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.673       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62430       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4916       1.0000         .10000E-03   10000.    
     8 'norm      '    5.4428       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1965       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34334E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.365       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0008       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.231       1.0000         .10000E-03   10000.    
    23 'norm      '    12.895       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    17.701       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.534       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.1061       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .56845E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.8038       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0178       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0200       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=   5834.622     FROM MIGRAD    STATUS=CONVERGED    949 CALLS     4855 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.177        .41237E-06** at limit **
   2  Prefactor     .10000E-03    7.1092       -.80895E-06** at limit **
   3  Prefactor     .10000E-03    13.466        .67664E-05** at limit **
   4  Prefactor     10.672        10.628       -.14909E-08   -.72547E-05
   5  Prefactor     3.5492        4.6279       -.10995E-06    .31099E-04
   6  Prefactor     .59597        7.8222       -.36014E-05    .40065E-03
   7  Prefactor     3.3513        274.15       -.17457E-03    .11031E-04
   8  norm          5.4420        6.6337        .81982E-07   -.22408E-04
   9  Prefactor     4.6771        4.1290       -.98251E-07   -.14904E-03
  10  Prefactor     .10000E-03    31.759        .94881E-05** at limit **
  11  Prefactor     8.1965        6.0988       -.91514E-06    .32135E-04
  12  Prefactor     .10000E-03    14.411       -.45285E-05** at limit **
  13  Prefactor     .10000E-03    7.8562       -.84827E-06** at limit **
  14  Prefactor     .10000E-03    33.048       -.22855E-05** at limit **
  15  Prefactor     .10000E-03    9.9826        .17845E-05** at limit **
  16  Prefactor     26.239        47.408        .27444E-04    .29811E-04
  17  Prefactor     .10000E-03    33.166       -.78620E-05** at limit **
  18  norm          .10000E-03    6.9713        .74940E-06** at limit **
  19  norm          .10000E-03    2.8816       -.71344E-08** at limit **
  20  norm          .10000E-03    1.8863        .17909E-07** at limit **
  21  Prefactor     8.0012        6.5304       -.20321E-06    .55226E-04
  22  Prefactor     11.230        51.544       -.93830E-05   -.57703E-05
  23  norm          12.894        7.2779        .41264E-06   -.20664E-04
  24  Prefactor     .10000E-03    5.8540       -.65587E-08** at limit **
  25  norm          17.700        2.6969        .22991E-07    .10563E-02
  26  norm          .10000E-03    2.1528        .75868E-07** at limit **
  27  Prefactor     11.522        17.378        .28978E-05    .13023E-04
  28  Prefactor     1.1068        3.7906       -.14037E-05   -.98484E-03
  29  Prefactor     .10000E-03    11.205       -.38221E-05** at limit **
  30  norm          .10000E-03    50.841        .73483E-06** at limit **
  31  Prefactor     .10001E-03    3.2876       -.10775E-06** at limit **
  32  Prefactor     2.8029        3.5348       -.10692E-06   -.25349E-03
  33  Normalizat    1.0180        .20868       -.60953E-06    .48806E-03
  34  Prefactor     1.0199        .21220        .18134E-05    .31320E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6717
  Prefactor  = 3.54916
  Prefactor  = 0.595969
  Prefactor  = 3.35133
  norm       = 5.44205
  Prefactor  = 4.67713
  Prefactor  = 0.0001
  Prefactor  = 8.19651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2385
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.00118
  Prefactor  = 11.2295
  norm       = 12.8944
  Prefactor  = 0.0001
  norm       = 17.7
  norm       = 0.0001
  Prefactor  = 11.5224
  Prefactor  = 1.10683
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 2.80287
  Normalizat = 1.01797
  Prefactor  = 1.01993
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.622     FROM HESSE     STATUS=OK           734 CALLS     5589 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.1141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.672        10.602        .12264E-03   -1.5054    
   5  Prefactor     3.5492        4.6199        .18249E-03   -1.5331    
   6  Prefactor     .59597        29.099        .40474E-02   -1.5554    
   7  Prefactor     3.3513        276.35        .21638E-03   -1.5342    
   8  norm          5.4420        6.6351        .17224E-03   -1.5241    
   9  Prefactor     4.6771        4.1251        .14040E-03   -1.5275    
  10  Prefactor     .10000E-03    31.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.1965        6.0966        .14004E-03   -1.5135    
  12  Prefactor     .10000E-03    14.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    67.890        .41208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.239        47.318        .78019E-04   -1.4683    
  17  Prefactor     .10000E-03    33.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.9820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.8861        .12663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8864        .10244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.0012        6.5278        .14175E-03   -1.5142    
  22  Prefactor     11.230        51.021        .11955E-03   -1.5038    
  23  norm          12.894        7.2431        .11155E-03   -1.4990    
  24  Prefactor     .10000E-03    5.8625        .18047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          17.700        2.6866        .45227E-04   -1.4866    
  26  norm          .10000E-03    2.1634        .10929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.522        17.283        .11796E-03   -1.5029    
  28  Prefactor     1.1068        3.6521        .24952E-03   -1.5498    
  29  Prefactor     .10000E-03    11.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    51.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    44.606        .25099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     2.8029        3.5245        .15503E-03   -1.5373    
  33  Normalizat    1.0180        .24880        .26353E-03   -.92431    
  34  Prefactor     1.0199        .25594        .27992E-03   -.92068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4167e-09
Minuit parameter uncertainties:
  1  5.21927e-07
  2  7.14808e-06
  3  8.17875e-06
  4  10.6036
  5  4.62037
  6  8.33229
  7  61.1583
  8  6.63601
  9  4.12531
  10  1.29025e-05
  11  6.0971
  12  4.09954e-05
  13  0.000308809
  14  3.61277e-05
  15  2.1755e-05
  16  47.3856
  17  0.000113104
  18  2.49348e-06
  19  6.02461e-07
  20  2.10665e-06
  21  6.52841
  22  47.9399
  23  7.24361
  24  1.48534e-06
  25  2.68662
  26  1.09312e-05
  27  17.2905
  28  3.65284
  29  2.59186e-05
  30  6.04617e-05
  31  0.00106583
  32  3.52473
  33  0.249085
  34  0.256249
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  6.025e-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.020e+00  2.562e-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.018e+00  2.491e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/800654/likelihoodResults_404697601_404956801_4FGL_J2322.8-4916_daily_bin638.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) = 5834.62374656
delta logL = -0.00154167860273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5834.62220488
delta logL = 4.11091605201e-10

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.6158       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0199       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5834.622     FROM MIGRAD    STATUS=FAILED        90 CALLS      233 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    65.365        .12672E-02** at limit **
   2  alpha         1.9482        3.0386        .50000       -.68712E-07
   3  Normalizat    1.0180        .22872E-01    .26353E-03    .35116E-04
   4  Prefactor     1.0199        .24413E-01    .27992E-03    .32532E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5834.622     FROM SIMPLEX   STATUS=UNCHANGED    178 CALLS      411 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    65.365        .28835E-03** at limit **
   2  alpha         1.9482        3.0386        .51567E-06   -.68712E-07
   3  Normalizat    1.0180        .22872E-01    .24064E-07    .35116E-04
   4  Prefactor     1.0199        .24413E-01    .86180E-08    .32532E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5834.604     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      511 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18515E-01    .76281        .63616E-02    .49639E-02
   2  alpha         4.2356        4.6177        .50000        .54714E-04
   3  Normalizat    1.0070        .16885E-01    .10541E-04   -.15962E-04
   4  Prefactor     1.0264        .18035E-01    .11197E-04   -.37568E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0185145
  alpha      = 4.23563
  Normalizat = 1.00695
  Prefactor  = 1.02641
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.604     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      542 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18515E-01    20.425        .37078E-03   -1.5681    
   2  alpha         4.2356        2.8028        .49859E-01    7.0506    
   3  Normalizat    1.0070        .98582E-01    .21082E-05   -.92798    
   4  Prefactor     1.0264        .10506        .22393E-05   -.91854    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.3768e-07
Minuit parameter uncertainties:
  1  1.22697
  2  21.8103
  3  0.0986
  4  0.105085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/800654': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5834.60351951
delta logL = 0.0186853732112

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.851e-02  1.227e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  4.236e+00  2.181e+01  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.026e+00  1.051e-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.007e+00  9.860e-02  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/800654/cmap_HighResolution_404697601_404956801_4FGL_J2322.8-4916_daily_bin638.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-05', job_status='DONE', photon_flux_upper_limit='2.40e-08', time_completed='2021-09-29 14:21:50.040377', job_id='800654', GAL2='1.03', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1632950510.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.87e-02', ts2='0.04', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='638' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:21:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 800654: <4FGL_J2322.8-4916_daily_bin638> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin638 350.708 -49.2725 404697601 404956801 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 :                                   970.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

