/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 129 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2322.6-0735_daily_bin83
RA = 350.658, Dec = -7.5907
tmin = 260841601, tmax = 261100801
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='790392', job_status='RUN', time_executed='2021-09-29 13:32:42.571532', time_epoch_executed='1632947562.57' WHERE source_name='4FGL J2322.6-0735' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790392

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790392/ft1_4FGL_J2322.6-0735_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790392/ft2_4FGL_J2322.6-0735_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790392/ft1_4FGL_J2322.6-0735_daily_bin83.fits outfile=/scratch/kocevski/790392/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin83.fits ra=350.658 dec=-7.5907 rad=12.0 tmin=260841601.0 tmax=261100801.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 1.60
user 1.41
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790392/ft1_filtered_4FGL_J2322.6-0735_daily_bin83.fits" evtable="EVENTS" scfile=/scratch/kocevski/790392/ft2_4FGL_J2322.6-0735_daily_bin83.fits sctable="SC_DATA" outfile=/scratch/kocevski/790392/ltcube_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.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/790392/ft2_4FGL_J2322.6-0735_daily_bin83.fits
.....................!
real 12.59
user 12.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790392/ft1_filtered_4FGL_J2322.6-0735_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/790392/ft2_4FGL_J2322.6-0735_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/790392/ltcube_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.fits outfile=/scratch/kocevski/790392/expmap_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.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/790392/ltcube_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.fits
.....................!
real 192.97
user 187.81
sys 4.84

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/790392/ft1_filtered_4FGL_J2322.6-0735_daily_bin83.fits scfile=/scratch/kocevski/790392/ft2_4FGL_J2322.6-0735_daily_bin83.fits outfile=/scratch/kocevski/790392/cmap_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790392/ft1_filtered_4FGL_J2322.6-0735_daily_bin83.fits scfile=/scratch/kocevski/790392/ft2_4FGL_J2322.6-0735_daily_bin83.fits outfile=/scratch/kocevski/790392/cmap_HighResolution_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/790392/ft1_filtered_4FGL_J2322.6-0735_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/790392/ft2_4FGL_J2322.6-0735_daily_bin83.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790392/Model_4FGL_J2322.6-0735_daily_bin83.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/790392/ft1_filtered_4FGL_J2322.6-0735_daily_bin83.fits.....................!
real 52.41
user 51.12
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790392/ft1_filtered_4FGL_J2322.6-0735_daily_bin83.fits', '/scratch/kocevski/790392/ft2_4FGL_J2322.6-0735_daily_bin83.fits', expMap='/scratch/kocevski/790392/expmap_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.fits', expCube='/scratch/kocevski/790392/ltcube_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790392/Model_4FGL_J2322.6-0735_daily_bin83.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/790392/ft1_filtered_4FGL_J2322.6-0735_daily_bin83.fits
Spacecraft file(s): /scratch/kocevski/790392/ft2_4FGL_J2322.6-0735_daily_bin83.fits
Exposure map: /scratch/kocevski/790392/expmap_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.fits
Exposure cube: /scratch/kocevski/790392/ltcube_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790392/Model_4FGL_J2322.6-0735_daily_bin83.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) = 5866.30083797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5114       1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.085       1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.268       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.716       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.275       1.0000         .10000E-03   10000.    
     9 'norm      '    10.196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11331E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8712       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    76.189       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17498E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2225       1.0000         .10000E-03   10000.    
    21 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4974       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.5070       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.0158       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98047       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0206       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=   5866.291     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3894 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5119        6.7840       -.25604E-06   -.14750E-04
   2  Prefactor     55.104        48.919       -.17742E-05   -.29814E-04
   3  Prefactor     59.307        81.338       -.52830E-05   -.36869E-04
   4  Prefactor     .10000E-03    3.2328       -.51450E-07** at limit **
   5  norm          .10000E-03    .23756       -.35359E-07** at limit **
   6  Prefactor     .10000E-03    12.786       -.15062E-06** at limit **
   7  Prefactor     21.722        12.530        .80245E-07    .14718E-04
   8  Prefactor     18.272        10.901        .63074E-07    .31825E-05
   9  norm          10.203        11.780        .17261E-06    .73620E-05
  10  Prefactor     .10000E-03    21.154        .40326E-06** at limit **
  11  Prefactor     .10000E-03    32.097       -.78751E-06** at limit **
  12  Prefactor     .10000E-03    51.342       -.18768E-05** at limit **
  13  Prefactor     3.8792        8.6244       -.19423E-06   -.20348E-04
  14  norm          .10000E-03    .26648        .37481E-07** at limit **
  15  norm          .10000E-03    3.6341        .12310E-06** at limit **
  16  Prefactor     76.213        66.285       -.39377E-05   -.49675E-04
  17  Prefactor     .10000E-03    229.41        .12232E-04** at limit **
  18  Prefactor     .10000E-03    21.616       -.13628E-05** at limit **
  19  Prefactor     .10000E-03    108.61       -.34627E-05** at limit **
  20  Prefactor     2.2354        20.026        .83068E-05   -.71189E-04
  21  norm          .10000E-03    41.997        .37632E-05** at limit **
  22  Prefactor     .10000E-03    21.530        .13192E-06** at limit **
  23  Prefactor     4.4989        5.0505       -.33087E-08   -.16441E-03
  24  Prefactor     .10000E-03    9.6378        .39991E-07** at limit **
  25  norm          .10000E-03    .39208       -.39608E-07** at limit **
  26  norm          4.5018        3.9275        .94610E-07    .71546E-04
  27  Prefactor     .10000E-03    4.8234       -.18247E-07** at limit **
  28  Prefactor     2.0239        11.037        .45605E-06   -.53683E-05
  29  Normalizat    .97991        .20704       -.17040E-05   -.72443E-04
  30  Prefactor     1.0208        .15797        .95326E-06   -.84121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.51188
  Prefactor  = 55.1043
  Prefactor  = 59.3073
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7223
  Prefactor  = 18.2725
  norm       = 10.2028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.87922
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 76.2131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.2354
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49886
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.50185
  Prefactor  = 0.0001
  Prefactor  = 2.02392
  Normalizat = 0.979913
  Prefactor  = 1.0208
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.291     FROM HESSE     STATUS=OK           584 CALLS     4478 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5119        6.7647        .15728E-03   -1.5198    
   2  Prefactor     55.104        48.908        .54046E-04   -1.4222    
   3  Prefactor     59.307        81.470        .26057E-03   -1.4166    
   4  Prefactor     .10000E-03    3.2401        .13449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .24176        .36436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.722        12.529        .85952E-04   -1.4775    
   8  Prefactor     18.272        10.900        .93691E-04   -1.4853    
   9  norm          10.203        11.778        .12548E-03   -1.5069    
  10  Prefactor     .10000E-03    21.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8792        8.5764        .20509E-03   -1.5314    
  14  norm          .10000E-03    .27419        .77151E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6560        .14211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     76.213        66.461        .46003E-04   -1.3960    
  17  Prefactor     .10000E-03    231.35        .40691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    108.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2354        20.265        .13791E-02   -1.5409    
  21  norm          .10000E-03    42.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.4989        4.9465        .75328E-03   -1.5284    
  24  Prefactor     .10000E-03    9.6405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.9513        .88745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.5018        3.7640        .13090E-03   -1.5284    
  27  Prefactor     .10000E-03    4.8319        .16428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.0239        10.992        .29153E-03   -1.5423    
  29  Normalizat    .97991        .23691        .27316E-03   -.93706    
  30  Prefactor     1.0208        .18329        .21738E-03   -.92039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.93399e-11
Minuit parameter uncertainties:
  1  6.76548
  2  48.9436
  3  81.6241
  4  2.23173e-06
  5  4.79459e-07
  6  1.19828e-05
  7  12.5309
  8  10.9009
  9  11.7809
  10  7.90885e-06
  11  2.56532e-05
  12  0.000194146
  13  8.5791
  14  2.64329e-07
  15  7.20647e-06
  16  66.5256
  17  5.79176e-05
  18  0.000122864
  19  0.000310139
  20  13.4669
  21  2.58094e-05
  22  1.15941e-06
  23  4.94694
  24  3.12122e-06
  25  2.88168e-05
  26  3.7642
  27  1.58148e-06
  28  9.43566
  29  0.237161
  30  0.183399
Done.

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

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  3.879e+00  8.579e+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

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  1.021e+00  1.834e-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:  9.799e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 350.658 -7.591
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/790392/likelihoodResults_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.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) = 5866.02911628
delta logL = 0.261595498909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5866.02579139
delta logL = 0.264920389273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.040       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6258       1.0000          .0000       10.000    
     3 'Normalizat'    .99313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0094       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.

 FCN=   5866.026     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      271 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.040        706.43        .31615E-02   -.20253E-03
   2  Index         1.6259        5.2526        .28516       -.16696E-04
   3  Normalizat    .99314        .11313        .46081E-01    .12464E-04
   4  Prefactor     1.0094        .68279E-01    .43409E-01    .56919E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.04
  Index      = 1.62586
  Normalizat = 0.993139
  Prefactor  = 1.00944
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.026     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.040        13.642        .12646E-03   -1.5074    
   2  Index         1.6259        .70529        .10584E-01   -.74073    
   3  Normalizat    .99314        .22153        .27145E-03   -.93261    
   4  Prefactor     1.0094        .18071        .21835E-03   -.92416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75359e-10
Minuit parameter uncertainties:
  1  13.6464
  2  0.709658
  3  0.221737
  4  0.180814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790392': 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) = 5866.02579138
delta logL = 0.26492039447

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.004e+01  1.365e+01  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  1.626e+00  7.097e-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.009e+00  1.808e-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:  9.931e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
Ra Dec: 350.658 -7.591

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/790392/cmap_HighResolution_260841601_261100801_4FGL_J2322.6-0735_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-29 13:45:23.247214', job_id='790392', GAL2='1.01', fit_tolerance='1e-08', EG2='0.99', EG='0.98', time_epoch_completed='1632948323.25', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.65e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='83' AND source_name='4FGL J2322.6-0735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 13:45:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 790392: <4FGL_J2322.6-0735_daily_bin83> in cluster <slac> Done

Job <4FGL_J2322.6-0735_daily_bin83> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 13:30:24 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:30:26 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:30:26 2021
Terminated at Wed Sep 29 13:45:24 2021
Results reported at Wed Sep 29 13:45:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.6-0735_daily_bin83 350.658 -7.5907 260841601 261100801 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 :                                   760.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

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

