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


Performing analysis on: 4FGL_J2322.6-0735_daily_bin562
RA = 350.658, Dec = -7.5907
tmin = 384998401, tmax = 385257601
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='792134', job_status='RUN', time_executed='2021-09-29 13:36:10.394327', time_epoch_executed='1632947770.39' WHERE source_name='4FGL J2322.6-0735' and cadence='daily' and bin_id='562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792134

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792134/ft1_4FGL_J2322.6-0735_daily_bin562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792134/ft2_4FGL_J2322.6-0735_daily_bin562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792134/ft1_4FGL_J2322.6-0735_daily_bin562.fits outfile=/scratch/kocevski/792134/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin562.fits ra=350.658 dec=-7.5907 rad=12.0 tmin=384998401.0 tmax=385257601.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.52
user 3.26
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/792134/ft2_4FGL_J2322.6-0735_daily_bin562.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/792134/ft2_4FGL_J2322.6-0735_daily_bin562.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/792134/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin562.fits evtable="EVENTS" outfile="/scratch/kocevski/792134/ft1_filtered_4FGL_J2322.6-0735_daily_bin562.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792134/ft1_filtered_4FGL_J2322.6-0735_daily_bin562.fits" evtable="EVENTS" scfile=/scratch/kocevski/792134/ft2_4FGL_J2322.6-0735_daily_bin562.fits sctable="SC_DATA" outfile=/scratch/kocevski/792134/ltcube_384998401_385257601_4FGL_J2322.6-0735_daily_bin562.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/792134/ft2_4FGL_J2322.6-0735_daily_bin562.fits
.....................!
real 12.11
user 11.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792134/ft1_filtered_4FGL_J2322.6-0735_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/792134/ft2_4FGL_J2322.6-0735_daily_bin562.fits sctable="SC_DATA" expcube=/scratch/kocevski/792134/ltcube_384998401_385257601_4FGL_J2322.6-0735_daily_bin562.fits outfile=/scratch/kocevski/792134/expmap_384998401_385257601_4FGL_J2322.6-0735_daily_bin562.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/792134/ltcube_384998401_385257601_4FGL_J2322.6-0735_daily_bin562.fits
.....................!
real 190.55
user 185.28
sys 4.95

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2322.6-0735 @ 350.658 -7.5907

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/792134/ft1_filtered_4FGL_J2322.6-0735_daily_bin562.fits scfile=/scratch/kocevski/792134/ft2_4FGL_J2322.6-0735_daily_bin562.fits outfile=/scratch/kocevski/792134/cmap_384998401_385257601_4FGL_J2322.6-0735_daily_bin562.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.658 yref=-7.5907 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792134/ft1_filtered_4FGL_J2322.6-0735_daily_bin562.fits scfile=/scratch/kocevski/792134/ft2_4FGL_J2322.6-0735_daily_bin562.fits outfile=/scratch/kocevski/792134/cmap_HighResolution_384998401_385257601_4FGL_J2322.6-0735_daily_bin562.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.658 yref=-7.5907 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/792134/ft1_filtered_4FGL_J2322.6-0735_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/792134/ft2_4FGL_J2322.6-0735_daily_bin562.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/792134/Model_4FGL_J2322.6-0735_daily_bin562.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/792134/ft1_filtered_4FGL_J2322.6-0735_daily_bin562.fits.....................!
real 51.89
user 50.60
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/792134/ft1_filtered_4FGL_J2322.6-0735_daily_bin562.fits', '/scratch/kocevski/792134/ft2_4FGL_J2322.6-0735_daily_bin562.fits', expMap='/scratch/kocevski/792134/expmap_384998401_385257601_4FGL_J2322.6-0735_daily_bin562.fits', expCube='/scratch/kocevski/792134/ltcube_384998401_385257601_4FGL_J2322.6-0735_daily_bin562.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/792134/Model_4FGL_J2322.6-0735_daily_bin562.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2322.6-0735'

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.363e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/792134/ft1_filtered_4FGL_J2322.6-0735_daily_bin562.fits
Spacecraft file(s): /scratch/kocevski/792134/ft2_4FGL_J2322.6-0735_daily_bin562.fits
Exposure map: /scratch/kocevski/792134/expmap_384998401_385257601_4FGL_J2322.6-0735_daily_bin562.fits
Exposure cube: /scratch/kocevski/792134/ltcube_384998401_385257601_4FGL_J2322.6-0735_daily_bin562.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/792134/Model_4FGL_J2322.6-0735_daily_bin562.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) = 5413.93921188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.354       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19288E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.935       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.025       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.057       1.0000         .10000E-03   10000.    
     9 'norm      '    20.393       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.798       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12347E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .59445       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.371       1.0000         .10000E-03   10000.    
    14 'norm      '    4.5548       1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12781E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.013       1.0000         .10000E-03   10000.    
    21 'norm      '    47.336       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.288       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2674       1.0000         .10000E-03   10000.    
    25 'norm      '    3.4919       1.0000         .10000E-03   10000.    
    26 'norm      '    1.7908       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.418       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.938       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .67988       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1684       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5413.883     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3936 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.359        14.036        .27761E-05    .15393E-03
   2  Prefactor     .10000E-03    115.13       -.48863E-04** at limit **
   3  Prefactor     32.925        106.68       -.19751E-04    .16732E-05
   4  Prefactor     .10000E-03    6.9157       -.80981E-07** at limit **
   5  norm          .10000E-03    .47005       -.82988E-07** at limit **
   6  Prefactor     .10000E-03    18.338        .23590E-07** at limit **
   7  Prefactor     17.024        14.689        .35752E-06    .21914E-04
   8  Prefactor     10.056        11.757       -.56506E-06    .55695E-04
   9  norm          20.381        13.587       -.42880E-05   -.22154E-04
  10  Prefactor     28.805        19.420       -.85689E-06   -.60224E-04
  11  Prefactor     .10000E-03    150.85        .36608E-04** at limit **
  12  Prefactor     .24495        27.749       -.65321E-05    .41988E-03
  13  Prefactor     25.374        14.246        .17361E-05   -.24999E-03
  14  norm          4.5542        1.5535       -.17904E-06   -.56622E-03
  15  norm          .10000E-03    3.2150       -.13251E-06** at limit **
  16  Prefactor     .10000E-03    211.16        .11015E-03** at limit **
  17  Prefactor     .10000E-03    26.325        .81696E-07** at limit **
  18  Prefactor     .10000E-03    10.282       -.29609E-07** at limit **
  19  Prefactor     .10000E-03    78.820        .10020E-04** at limit **
  20  Prefactor     32.020        27.842        .60908E-05   -.19644E-03
  21  norm          47.308        61.756       -.16292E-04   -.60323E-04
  22  Prefactor     .10000E-03    47.297        .20448E-05** at limit **
  23  Prefactor     17.289        9.2556        .37969E-06   -.17121E-03
  24  Prefactor     1.1984        345.10       -.32749E-04   -.43380E-04
  25  norm          3.4918        1.0534        .38324E-07    .46201E-03
  26  norm          1.7901        4.9975       -.92522E-06   -.58472E-03
  27  Prefactor     15.418        21.688        .10694E-05    .18320E-04
  28  Prefactor     12.932        9.0770       -.46632E-05    .29668E-04
  29  Normalizat    .68031        .25163        .19473E-05    .11631E-03
  30  Prefactor     1.1685        .19174        .12871E-05    .72039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3587
  Prefactor  = 0.0001
  Prefactor  = 32.9254
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0236
  Prefactor  = 10.0558
  norm       = 20.3811
  Prefactor  = 28.8045
  Prefactor  = 0.000100004
  Prefactor  = 0.244953
  Prefactor  = 25.3737
  norm       = 4.55421
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0202
  norm       = 47.3075
  Prefactor  = 0.0001
  Prefactor  = 17.2891
  Prefactor  = 1.19842
  norm       = 3.49178
  norm       = 1.79014
  Prefactor  = 15.4177
  Prefactor  = 12.932
  Normalizat = 0.680309
  Prefactor  = 1.16854
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.883     FROM HESSE     STATUS=OK           592 CALLS     4528 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.359        14.028        .12452E-03   -1.5064    
   2  Prefactor     .10000E-03    115.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.925        106.81        .69823E-04   -1.4560    
   4  Prefactor     .10000E-03    6.9352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .69797        .97184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.024        14.637        .97069E-04   -1.4883    
   8  Prefactor     10.056        11.751        .12635E-03   -1.5074    
   9  norm          20.381        13.597        .88695E-04   -1.4805    
  10  Prefactor     28.805        19.435        .74657E-04   -1.4634    
  11  Prefactor     .10000E-03    150.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .24495        32.899        .12402       -1.5609    
  13  Prefactor     25.374        14.199        .79530E-04   -1.4700    
  14  norm          4.5542        1.5520        .50311E-04   -1.5281    
  15  norm          .10000E-03    3.2268        .12872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    211.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    78.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.020        27.828        .70818E-04   -1.4576    
  21  norm          47.308        61.920        .58280E-04   -1.4331    
  22  Prefactor     .10000E-03    47.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.289        9.2530        .96328E-04   -1.4876    
  24  Prefactor     1.1984        357.70        .39553E-02   -1.5489    
  25  norm          3.4918        1.0568        .37011E-04   -1.5334    
  26  norm          1.7901        4.9894        .24728E-03   -1.5440    
  27  Prefactor     15.418        21.684        .10200E-03   -1.4922    
  28  Prefactor     12.932        9.0848        .11136E-03   -1.4989    
  29  Normalizat    .68031        .29080        .36683E-03   -1.0468    
  30  Prefactor     1.1685        .22541        .22947E-03   -.87305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46806e-09
Minuit parameter uncertainties:
  1  14.0324
  2  0.000257748
  3  107.439
  4  1.0927e-05
  5  8.52263e-06
  6  3.06801e-05
  7  14.6403
  8  11.7542
  9  13.599
  10  19.4388
  11  0.00151721
  12  5.67958
  13  14.2005
  14  1.55203
  15  2.3991e-05
  16  0.00131937
  17  1.03066e-05
  18  5.05416e-06
  19  9.78813e-06
  20  27.8396
  21  62.0041
  22  9.0516e-05
  23  9.25376
  24  41.6606
  25  1.05685
  26  4.99058
  27  21.695
  28  9.08574
  29  0.291464
  30  0.225596
Done.

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

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  2.537e+01  1.420e+01  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  1.169e+00  2.256e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  6.803e-01  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.11
Ra Dec: 350.658 -7.591
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 5.77e-08
Energy Flux (Fixed Index): 3.65e-05 +/- 2.04e-05

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) = 5413.79728342
delta logL = 0.0861344989362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5413.78337748
delta logL = 0.100040446379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.758       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1609       1.0000          .0000       10.000    
     3 'Normalizat'    .69714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1586       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+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=   5413.783     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      275 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.757        22.550        .71102E-04    .40687E-03
   2  Index         2.1605        .41428        .47808E-02    .14476E-03
   3  Normalizat    .69732        .27694        .36266E-03   -.54514E-04
   4  Prefactor     1.1585        .22131        .23031E-03   -.13075E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.757
  Index      = 2.16054
  Normalizat = 0.697325
  Prefactor  = 1.15854
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.783     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.757        21.903        .14220E-04   -1.4580    
   2  Index         2.1605        .40215        .19123E-03   -.60394    
   3  Normalizat    .69732        .27697        .14506E-04   -1.0400    
   4  Prefactor     1.1585        .22137        .46061E-04   -.87617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1938e-10
Minuit parameter uncertainties:
  1  21.9088
  2  0.402794
  3  0.277527
  4  0.221543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792134': 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) = 5413.78337651
delta logL = 0.100041409863

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  3.176e+01  2.191e+01  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  2.161e+00  4.028e-01  0.000e+00  1.000e+01 (-1.000e+00)
384        Scale:  1.470e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  1.159e+00  2.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  6.973e-01  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.24
Ra Dec: 350.658 -7.591
Photon Index (Free Index): 2.16 +/- 0.40
Photon Flux (Free Index): 9.10e-08 +/- 5.96e-08
Energy Flux (Free Index): 4.41e-05 +/- 3.19e-05

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/792134/cmap_HighResolution_384998401_385257601_4FGL_J2322.6-0735_daily_bin562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='4.41e-05', photon_flux_error='5.77e-08', dlogl='1.00e-01', energy_flux='3.65e-05', photon_flux2='9.10e-08', job_status='DONE', time_completed='2021-09-29 13:47:09.653235', photon_index_error2='0.40', photon_index2='2.16', ts='6.11', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='3.19e-05', EG='0.68', time_epoch_completed='1632948429.65', return_code='0', job_id='792134', GAL2='1.16', EG2='0.70', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='5.96e-08', ts2='6.24', photon_index='2.35' WHERE bin_id='562' AND source_name='4FGL J2322.6-0735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:47:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 792134: <4FGL_J2322.6-0735_daily_bin562> in cluster <slac> Done

Job <4FGL_J2322.6-0735_daily_bin562> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 13:35:51 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:35:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 13:35:53 2021
Terminated at Wed Sep 29 13:47:10 2021
Results reported at Wed Sep 29 13:47:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.6-0735_daily_bin562 350.658 -7.5907 384998401 385257601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2322.6-0735 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   655.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            679 sec.

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

