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


Performing analysis on: 4FGL_J2322.6-0735_daily_bin1056
RA = 350.658, Dec = -7.5907
tmin = 513043201, tmax = 513302401
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='794838', job_status='RUN', time_executed='2021-09-29 13:49:48.142931', time_epoch_executed='1632948588.14' WHERE source_name='4FGL J2322.6-0735' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794838

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794838/ft1_4FGL_J2322.6-0735_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794838/ft2_4FGL_J2322.6-0735_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794838/ft1_4FGL_J2322.6-0735_daily_bin1056.fits outfile=/scratch/kocevski/794838/ft1_filteredMKT_4FGL_J2322.6-0735_daily_bin1056.fits ra=350.658 dec=-7.5907 rad=12.0 tmin=513043201.0 tmax=513302401.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.32
user 5.97
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794838/ft1_filtered_4FGL_J2322.6-0735_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/794838/ft2_4FGL_J2322.6-0735_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/794838/ltcube_513043201_513302401_4FGL_J2322.6-0735_daily_bin1056.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/794838/ft2_4FGL_J2322.6-0735_daily_bin1056.fits
.....................!
real 12.20
user 11.88
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794838/ft1_filtered_4FGL_J2322.6-0735_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/794838/ft2_4FGL_J2322.6-0735_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/794838/ltcube_513043201_513302401_4FGL_J2322.6-0735_daily_bin1056.fits outfile=/scratch/kocevski/794838/expmap_513043201_513302401_4FGL_J2322.6-0735_daily_bin1056.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/794838/ltcube_513043201_513302401_4FGL_J2322.6-0735_daily_bin1056.fits
.....................!
real 191.25
user 185.67
sys 5.26

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/794838/ft1_filtered_4FGL_J2322.6-0735_daily_bin1056.fits scfile=/scratch/kocevski/794838/ft2_4FGL_J2322.6-0735_daily_bin1056.fits outfile=/scratch/kocevski/794838/cmap_513043201_513302401_4FGL_J2322.6-0735_daily_bin1056.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794838/ft1_filtered_4FGL_J2322.6-0735_daily_bin1056.fits scfile=/scratch/kocevski/794838/ft2_4FGL_J2322.6-0735_daily_bin1056.fits outfile=/scratch/kocevski/794838/cmap_HighResolution_513043201_513302401_4FGL_J2322.6-0735_daily_bin1056.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/794838/ft1_filtered_4FGL_J2322.6-0735_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/794838/ft2_4FGL_J2322.6-0735_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/794838/Model_4FGL_J2322.6-0735_daily_bin1056.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/794838/ft1_filtered_4FGL_J2322.6-0735_daily_bin1056.fits.....................!
real 42.57
user 41.24
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.116       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17708E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    72.008       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.017       1.0000         .10000E-03   10000.    
     5 'norm      '    12.189       1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.041       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.402       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.074       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.516       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.663       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2318       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4078       1.0000         .10000E-03   10000.    
    16 'Prefactor '    106.46       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.340       1.0000         .10000E-03   10000.    
    19 'Prefactor '    144.04       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0618       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23657E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    90.130       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0826       1.0000         .10000E-03   10000.    
    26 'norm      '    2.4787       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.520       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .51615       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89965       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=   4361.367     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     3983 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.114        13.837        .76002E-07   -.33106E-04
   2  Prefactor     .10000E-03    126.60        .64079E-06** at limit **
   3  Prefactor     72.053        91.005        .37400E-06    .21932E-04
   4  Prefactor     11.390        107.67       -.78823E-05    .78205E-05
   5  norm          12.157        5.8103        .66958E-06   -.19270E-03
   6  Prefactor     47.066        58.796       -.52293E-06   -.15061E-03
   7  Prefactor     .10000E-03    4.1963       -.15386E-06** at limit **
   8  Prefactor     .10000E-03    8.0494       -.73398E-07** at limit **
   9  norm          16.407        14.527        .73319E-07    .26234E-04
  10  Prefactor     33.081        19.123       -.13233E-07   -.62008E-04
  11  Prefactor     35.550        66.837       -.16783E-05   -.40976E-04
  12  Prefactor     25.585        30.778        .44757E-07    .96968E-05
  13  Prefactor     11.665        12.381       -.19179E-05   -.11617E-03
  14  norm          1.2316        1.0512       -.26559E-06   -.82407E-03
  15  norm          3.4076        6.3168        .85490E-05    .58875E-04
  16  Prefactor     106.43        66.770        .59295E-06    .12439E-05
  17  Prefactor     .10000E-03    36.259        .26055E-07** at limit **
  18  Prefactor     29.359        25.909       -.11643E-06   -.19331E-05
  19  Prefactor     143.69        188.84       -.39127E-05   -.24666E-03
  20  Prefactor     .10000E-03    23.668       -.29067E-05** at limit **
  21  norm          1.9265        89.031        .49560E-05   -.48012E-04
  22  Prefactor     .10000E-03    27.841       -.18953E-06** at limit **
  23  Prefactor     .89658E-01    3.4606        .12107E-05   -.14576E-02
  24  Prefactor     90.136        49.024        .41636E-06   -.31386E-04
  25  norm          1.0824        .78668       -.41434E-07    .11622E-03
  26  norm          2.4829        5.7001        .50057E-06   -.12405E-04
  27  Prefactor     .10000E-03    15.695        .23446E-06** at limit **
  28  Prefactor     17.526        11.031       -.24986E-07   -.59824E-04
  29  Normalizat    .51516        .24291        .13434E-05   -.12833E-03
  30  Prefactor     .90013        .18206       -.80989E-06   -.95232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1139
  Prefactor  = 0.0001
  Prefactor  = 72.0525
  Prefactor  = 11.3897
  norm       = 12.1568
  Prefactor  = 47.066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4067
  Prefactor  = 33.0812
  Prefactor  = 35.5503
  Prefactor  = 25.5846
  Prefactor  = 11.6648
  norm       = 1.23158
  norm       = 3.40758
  Prefactor  = 106.431
  Prefactor  = 0.0001
  Prefactor  = 29.359
  Prefactor  = 143.687
  Prefactor  = 0.000100002
  norm       = 1.92655
  Prefactor  = 0.0001
  Prefactor  = 0.0896582
  Prefactor  = 90.1357
  norm       = 1.08242
  norm       = 2.4829
  Prefactor  = 0.0001
  Prefactor  = 17.5258
  Normalizat = 0.515164
  Prefactor  = 0.900128
 **********
 **   18 **HESSE 
 **********

 FCN=   4361.367     FROM HESSE     STATUS=OK           588 CALLS     4571 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.114        13.828        .91606E-04   -1.4833    
   2  Prefactor     .10000E-03    127.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     72.053        91.011        .23655E-03   -1.4008    
   4  Prefactor     11.390        119.33        .12070E-03   -1.5033    
   5  norm          12.157        6.2694        .45660E-04   -1.5010    
   6  Prefactor     47.066        58.472        .58462E-04   -1.4335    
   7  Prefactor     .10000E-03    4.1988        .13212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.407        14.533        .98895E-04   -1.4898    
  10  Prefactor     33.081        19.131        .69676E-04   -1.4557    
  11  Prefactor     35.550        66.813        .67246E-04   -1.4515    
  12  Prefactor     25.585        30.781        .79181E-04   -1.4696    
  13  Prefactor     11.665        12.361        .11730E-03   -1.5025    
  14  norm          1.2316        1.0303        .58551E-04   -1.5486    
  15  norm          3.4076        6.3142        .10388E-02   -1.5339    
  16  Prefactor     106.43        66.722        .38976E-04   -1.3641    
  17  Prefactor     .10000E-03    36.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.359        25.918        .73966E-04   -1.4624    
  19  Prefactor     143.69        190.02        .16786E-03   -1.3305    
  20  Prefactor     .10000E-03    24.003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9265        97.741        .28778E-03   -1.5430    
  22  Prefactor     .10000E-03    27.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .89658E-01    68.041        .20546E-02   -1.5648    
  24  Prefactor     90.136        49.002        .42325E-04   -1.3806    
  25  norm          1.0824        .81908        .41689E-04   -1.5500    
  26  norm          2.4829        5.9332        .20006E-03   -1.5393    
  27  Prefactor     .10000E-03    15.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     17.526        11.035        .95687E-04   -1.4870    
  29  Normalizat    .51516        .27223        .35702E-03   -1.1172    
  30  Prefactor     .90013        .20663        .22031E-03   -.96137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07803e-08
Minuit parameter uncertainties:
  1  13.8307
  2  0.000297702
  3  91.1873
  4  73.922
  5  6.26974
  6  58.5438
  7  7.25544e-07
  8  3.41886e-06
  9  14.5363
  10  19.135
  11  66.9537
  12  30.7996
  13  12.3642
  14  1.03027
  15  6.31542
  16  66.7696
  17  1.99289e-05
  18  25.9281
  19  190.84
  20  0.000395521
  21  27.4916
  22  4.90488e-05
  23  4.9427
  24  49.0242
  25  0.819092
  26  5.9346
  27  2.01037e-05
  28  11.0365
  29  0.27294
  30  0.20681
Done.

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

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.166e+01  1.236e+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:  9.001e-01  2.068e-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:  5.152e-01  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 350.658 -7.591
Photon Index (Fixed Index): 2.35 +/- 0.00
Photon Flux (Fixed Index): 4.75e-08 +/- 5.03e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.78e-05

TS (Fixed Index): 2.88
Ra Dec: 350.658 -7.591
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794838/likelihoodResults_513043201_513302401_4FGL_J2322.6-0735_daily_bin1056.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) = 4361.08137929
delta logL = 0.286071719139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4361.05117172
delta logL = 0.316279291237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.239       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8269       1.0000          .0000       10.000    
     3 'Normalizat'    .53707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89112       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=   4361.051     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      269 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.238        15.443        .49695E-03    .11742E-02
   2  Index         1.8269        .64071        .90039E-02    .30092E-03
   3  Normalizat    .53702        .24793        .35007E-03   -.11412E-03
   4  Prefactor     .89117        .19994        .22132E-03   -.16670E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2381
  Index      = 1.8269
  Normalizat = 0.537018
  Prefactor  = 0.891167
 **********
 **   18 **HESSE 
 **********

 FCN=   4361.051     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.238        15.449        .99389E-04   -1.4902    
   2  Index         1.8269        .64082        .36015E-03   -.68752    
   3  Normalizat    .53702        .24801        .14003E-04   -1.1073    
   4  Prefactor     .89117        .20004        .44264E-04   -.96450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82212e-09
Minuit parameter uncertainties:
  1  15.4523
  2  0.643794
  3  0.248523
  4  0.200208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794838': 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) = 4361.05117169
delta logL = 0.316279323018

Extracting fit parameters...

4FGL J2322.6-0735
   Spectrum: PowerLaw
382    Prefactor:  1.624e+01  1.545e+01  1.000e-04  1.000e+04 ( 1.000e-13)
383        Index:  1.827e+00  6.438e-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:  8.912e-01  2.002e-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:  5.370e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 350.658 -7.591
Photon Index (Free Index): 1.83 +/- 0.64
Photon Flux (Free Index): 2.66e-08 +/- 3.65e-08
Energy Flux (Free Index): 2.93e-05 +/- 3.84e-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/794838/cmap_HighResolution_513043201_513302401_4FGL_J2322.6-0735_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.75e-08', energy_flux2='2.93e-05', photon_flux_error='5.03e-08', dlogl='3.16e-01', energy_flux='1.68e-05', photon_flux2='2.66e-08', job_status='DONE', time_completed='2021-09-29 14:01:44.178098', photon_index_error2='0.64', photon_index2='1.83', ts='2.88', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='3.84e-05', EG='0.52', time_epoch_completed='1632949304.18', return_code='0', job_id='794838', GAL2='0.89', EG2='0.54', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='3.65e-08', ts2='3.51', photon_index='2.35' WHERE bin_id='1056' AND source_name='4FGL J2322.6-0735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:01:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 794838: <4FGL_J2322.6-0735_daily_bin1056> in cluster <slac> Done

Job <4FGL_J2322.6-0735_daily_bin1056> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 13:45:41 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 13:45:43 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:45:43 2021
Terminated at Wed Sep 29 14:01:44 2021
Results reported at Wed Sep 29 14:01:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.6-0735_daily_bin1056 350.658 -7.5907 513043201 513302401 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 :                                   661.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

