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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1309
RA = 350.708, Dec = -49.2725
tmin = 578620801, tmax = 578880001
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='805382', job_status='RUN', time_executed='2021-09-29 14:16:31.125766', time_epoch_executed='1632950191.13' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805382

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805382/ft1_4FGL_J2322.8-4916_daily_bin1309.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805382/ft2_4FGL_J2322.8-4916_daily_bin1309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805382/ft1_4FGL_J2322.8-4916_daily_bin1309.fits outfile=/scratch/kocevski/805382/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1309.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=578620801.0 tmax=578880001.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.58
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805382/ft1_filtered_4FGL_J2322.8-4916_daily_bin1309.fits" evtable="EVENTS" scfile=/scratch/kocevski/805382/ft2_4FGL_J2322.8-4916_daily_bin1309.fits sctable="SC_DATA" outfile=/scratch/kocevski/805382/ltcube_578620801_578880001_4FGL_J2322.8-4916_daily_bin1309.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/805382/ft2_4FGL_J2322.8-4916_daily_bin1309.fits
.....................!
real 13.28
user 12.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805382/ft1_filtered_4FGL_J2322.8-4916_daily_bin1309.fits evtable="EVENTS" scfile=/scratch/kocevski/805382/ft2_4FGL_J2322.8-4916_daily_bin1309.fits sctable="SC_DATA" expcube=/scratch/kocevski/805382/ltcube_578620801_578880001_4FGL_J2322.8-4916_daily_bin1309.fits outfile=/scratch/kocevski/805382/expmap_578620801_578880001_4FGL_J2322.8-4916_daily_bin1309.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/805382/ltcube_578620801_578880001_4FGL_J2322.8-4916_daily_bin1309.fits
.....................!
real 192.89
user 188.33
sys 4.20

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/805382/ft1_filtered_4FGL_J2322.8-4916_daily_bin1309.fits scfile=/scratch/kocevski/805382/ft2_4FGL_J2322.8-4916_daily_bin1309.fits outfile=/scratch/kocevski/805382/cmap_578620801_578880001_4FGL_J2322.8-4916_daily_bin1309.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.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805382/ft1_filtered_4FGL_J2322.8-4916_daily_bin1309.fits evtable="EVENTS" scfile=/scratch/kocevski/805382/ft2_4FGL_J2322.8-4916_daily_bin1309.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805382/Model_4FGL_J2322.8-4916_daily_bin1309.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/805382/ft1_filtered_4FGL_J2322.8-4916_daily_bin1309.fits.....................!
real 43.47
user 42.12
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6350       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9859       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.982       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2955       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .16404E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6972       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58010E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.200       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6997       1.0000         .10000E-03   10000.    
    18 'norm      '    12.934       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.877       1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.8737       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2703       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    13.341       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .11033E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0613       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .88773       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=   5862.325     FROM MIGRAD    STATUS=CONVERGED    900 CALLS     4107 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.801        .38946E-06** at limit **
   2  Prefactor     3.5919        37.683        .65302E-05    .12994E-03
   3  Prefactor     2.0046        104.69       -.74181E-05   -.28388E-04
   4  Prefactor     10.982        10.578        .12908E-06    .27311E-04
   5  Prefactor     2.2956        4.4086        .73236E-06    .28505E-03
   6  Prefactor     .10000E-03    3.8266       -.11198E-06** at limit **
   7  Prefactor     .10000E-03    41.382        .44237E-07** at limit **
   8  norm          .10016E-03    7.0645       -.33872E-05** at limit **
   9  Prefactor     14.847        5.5653        .27101E-07    .23201E-05
  10  Prefactor     .10000E-03    15.484        .10162E-06** at limit **
  11  Prefactor     7.6971        6.2644        .53833E-07    .12166E-03
  12  Prefactor     .10000E-03    41.399       -.41115E-07** at limit **
  13  Prefactor     .10026E-03    6.0383       -.16193E-05** at limit **
  14  Prefactor     .10000E-03    28.459        .21346E-06** at limit **
  15  Prefactor     .10000E-03    7.8493        .29331E-06** at limit **
  16  Prefactor     14.183        37.673       -.43474E-06   -.39463E-04
  17  Prefactor     4.7015        13.093        .40497E-06    .32304E-04
  18  norm          12.935        11.731       -.21168E-07   -.23428E-04
  19  norm          .10000E-03    2.7603        .12943E-07** at limit **
  20  norm          .10000E-03    1.7546        .27940E-07** at limit **
  21  Prefactor     .10000E-03    4.4077       -.24858E-07** at limit **
  22  Prefactor     .10000E-03    19.273       -.19522E-06** at limit **
  23  norm          .10000E-03    4.9403        .15067E-06** at limit **
  24  Prefactor     17.882        13.089       -.22336E-06   -.59827E-04
  25  norm          .10000E-03    .37562        .16951E-07** at limit **
  26  norm          4.8778        4.8988        .21220E-06    .11183E-03
  27  Prefactor     3.2705        7.9762        .66708E-06    .10904E-03
  28  Prefactor     .10000E-03    1.3678        .34301E-07** at limit **
  29  Prefactor     .10000E-03    4.8389       -.97086E-07** at limit **
  30  norm          .10000E-03    14.896        .20468E-06** at limit **
  31  Prefactor     13.342        5.8435        .24386E-06    .31014E-03
  32  Prefactor     .10000E-03    3.2917       -.34484E-05** at limit **
  33  Normalizat    1.0611        .18324       -.17301E-06    .23763E-03
  34  Prefactor     .88785        .18616       -.49455E-06    .20850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.59188
  Prefactor  = 2.00465
  Prefactor  = 10.9819
  Prefactor  = 2.29564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100158
  Prefactor  = 14.8475
  Prefactor  = 0.0001
  Prefactor  = 7.69709
  Prefactor  = 0.0001
  Prefactor  = 0.000100256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1834
  Prefactor  = 4.70145
  norm       = 12.935
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.8817
  norm       = 0.0001
  norm       = 4.87782
  Prefactor  = 3.2705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3423
  Prefactor  = 0.000100004
  Normalizat = 1.06113
  Prefactor  = 0.887853
 **********
 **   18 **HESSE 
 **********

 FCN=   5862.325     FROM HESSE     STATUS=OK           732 CALLS     4839 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5919        39.732        .21190E-03   -1.5329    
   3  Prefactor     2.0046        104.39        .29405E-03   -1.5425    
   4  Prefactor     10.982        10.572        .12089E-03   -1.5045    
   5  Prefactor     2.2956        4.3853        .21621E-03   -1.5405    
   6  Prefactor     .10000E-03    3.8624        .14625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10016E-03    19.054        .29574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.847        5.5650        .10394E-03   -1.4937    
  10  Prefactor     .10000E-03    15.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6971        6.2511        .14454E-03   -1.5153    
  12  Prefactor     .10000E-03    41.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10026E-03    47.656        .33488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.183        37.602        .10629E-03   -1.4955    
  17  Prefactor     4.7015        13.009        .18562E-03   -1.5274    
  18  norm          12.935        11.731        .11138E-03   -1.4989    
  19  norm          .10000E-03    2.7776        .12421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7570        .99043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4599        .15656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.0950        .33045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.882        13.041        .94727E-04   -1.4862    
  25  norm          .10000E-03    .68884        .90216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.8778        4.8750        .16028E-03   -1.5266    
  27  Prefactor     3.2705        7.9555        .22393E-03   -1.5346    
  28  Prefactor     .10000E-03    1.3861        .87359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.8412        .16449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    14.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     13.342        5.8436        .10966E-03   -1.4977    
  32  Prefactor     .10000E-03    3.5429        .27658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0611        .21345        .22991E-03   -.91010    
  34  Prefactor     .88785        .21623        .26362E-03   -.96567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46618e-08
Minuit parameter uncertainties:
  1  0.000216293
  2  23.9123
  3  28.9851
  4  10.5737
  5  4.38594
  6  5.53802e-06
  7  9.36599e-06
  8  0.00347048
  9  5.56516
  10  3.24335e-05
  11  6.25165
  12  0.000102882
  13  0.00699492
  14  0.000132082
  15  2.7385e-05
  16  37.6653
  17  13.0164
  18  11.7334
  19  1.12113e-06
  20  1.30992e-06
  21  2.93574e-06
  22  0.00010415
  23  1.09685e-05
  24  13.0429
  25  1.17913e-06
  26  4.87536
  27  7.95806
  28  1.10124e-06
  29  3.87918e-06
  30  6.58717e-05
  31  5.84382
  32  0.000224459
  33  0.213625
  34  0.216443
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.121e-06  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:  8.879e-01  2.164e-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.061e+00  2.136e-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: 1.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805382/likelihoodResults_578620801_578880001_4FGL_J2322.8-4916_daily_bin1309.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5862.32717741
delta logL = -0.00168723212028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5862.32549015
delta logL = 3.06526999339e-08

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.6050       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88785       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=   5862.325     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      234 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    560.11        .12442E-02** at limit **
   2  alpha         1.4840        3.2385        .18045        .33328E-07
   3  Normalizat    1.0611        .96653E-01    .22991E-03    .13499E-04
   4  Prefactor     .88785        .10281        .26362E-03    .79349E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.48398
  Normalizat = 1.06113
  Prefactor  = 0.887853
 **********
 **   18 **HESSE 
 **********

 FCN=   5862.325     FROM HESSE     STATUS=OK            27 CALLS      261 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8587        .24885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4840        4.2402        .72180E-01   -.41852    
   3  Normalizat    1.0611        .20192        .91965E-05   -.91010    
   4  Prefactor     .88785        .21474        .10545E-04   -.96567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34281e-11
Minuit parameter uncertainties:
  1  4.06041e-05
  2  167.297
  3  0.202066
  4  0.214942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805382': 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) = 5862.32548988
delta logL = 2.98651684716e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  4.060e-05  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.484e+00  1.673e+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:  8.879e-01  2.149e-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.061e+00  2.021e-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/805382/cmap_HighResolution_578620801_578880001_4FGL_J2322.8-4916_daily_bin1309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-05', job_status='DONE', photon_flux_upper_limit='1.96e-08', time_completed='2021-09-29 14:31:18.598151', job_id='805382', GAL2='0.89', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632951078.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1309' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:31:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 805382: <4FGL_J2322.8-4916_daily_bin1309> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1309 350.708 -49.2725 578620801 578880001 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 :                                   870.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

