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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1009
RA = 338.568, Dec = -41.9411
tmin = 500860801, tmax = 501120001
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='360098', job_status='RUN', time_executed='2021-09-28 14:45:32.964092', time_epoch_executed='1632865532.96' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360098

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360098/ft1_4FGL_J2234.2-4156_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360098/ft2_4FGL_J2234.2-4156_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360098/ft1_4FGL_J2234.2-4156_daily_bin1009.fits outfile=/scratch/kocevski/360098/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1009.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=500860801.0 tmax=501120001.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 4.56
user 4.29
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/360098/ft2_4FGL_J2234.2-4156_daily_bin1009.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360098/ft2_4FGL_J2234.2-4156_daily_bin1009.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/360098/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1009.fits evtable="EVENTS" outfile="/scratch/kocevski/360098/ft1_filtered_4FGL_J2234.2-4156_daily_bin1009.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/360098/ft1_filtered_4FGL_J2234.2-4156_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/360098/ft2_4FGL_J2234.2-4156_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/360098/ltcube_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.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/360098/ft2_4FGL_J2234.2-4156_daily_bin1009.fits
.....................!
real 11.87
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360098/ft1_filtered_4FGL_J2234.2-4156_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/360098/ft2_4FGL_J2234.2-4156_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/360098/ltcube_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.fits outfile=/scratch/kocevski/360098/expmap_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.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/360098/ltcube_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.fits
.....................!
real 194.44
user 188.82
sys 5.23

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 J2234.2-4156 @ 338.568 -41.9411

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/360098/ft1_filtered_4FGL_J2234.2-4156_daily_bin1009.fits scfile=/scratch/kocevski/360098/ft2_4FGL_J2234.2-4156_daily_bin1009.fits outfile=/scratch/kocevski/360098/cmap_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.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=338.568 yref=-41.9411 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360098/ft1_filtered_4FGL_J2234.2-4156_daily_bin1009.fits scfile=/scratch/kocevski/360098/ft2_4FGL_J2234.2-4156_daily_bin1009.fits outfile=/scratch/kocevski/360098/cmap_HighResolution_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.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=338.568 yref=-41.9411 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360098/ft1_filtered_4FGL_J2234.2-4156_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/360098/ft2_4FGL_J2234.2-4156_daily_bin1009.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360098/Model_4FGL_J2234.2-4156_daily_bin1009.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/360098/ft1_filtered_4FGL_J2234.2-4156_daily_bin1009.fits.....................!
real 39.27
user 37.95
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/360098/ft1_filtered_4FGL_J2234.2-4156_daily_bin1009.fits', '/scratch/kocevski/360098/ft2_4FGL_J2234.2-4156_daily_bin1009.fits', expMap='/scratch/kocevski/360098/expmap_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.fits', expCube='/scratch/kocevski/360098/ltcube_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/360098/Model_4FGL_J2234.2-4156_daily_bin1009.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.2-4156'

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.331e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/360098/ft1_filtered_4FGL_J2234.2-4156_daily_bin1009.fits
Spacecraft file(s): /scratch/kocevski/360098/ft2_4FGL_J2234.2-4156_daily_bin1009.fits
Exposure map: /scratch/kocevski/360098/expmap_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.fits
Exposure cube: /scratch/kocevski/360098/ltcube_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/360098/Model_4FGL_J2234.2-4156_daily_bin1009.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) = 4530.86505764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.312       1.0000         .10000E-03   10000.    
     2 'norm      '    .95789       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58691E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21316E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7600       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6921       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    100.71       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.714       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1159       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.877       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.3611       1.0000         .10000E-03   10000.    
    26 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    17.432       1.0000         .10000E-03   10000.    
    31 'norm      '    3.5329       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0763       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .90690       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+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=   4530.861     FROM MIGRAD    STATUS=CONVERGED   1591 CALLS     5256 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.325        55.675        .10235E-03   -.39319E-04
   2  norm          .95919        5.9319        .27853E-03   -.38858E-04
   3  Prefactor     .10000E-03    51.384        .37423E-02** at limit **
   4  Prefactor     .10000E-03    3.1962        .11741E-02** at limit **
   5  Prefactor     .10000E-03    334.19        .76517E-02** at limit **
   6  Prefactor     3.7580        7.0102        .10410E-02    .52331E-04
   7  Prefactor     .10000E-03    35.146        .18142E-02** at limit **
   8  norm          .10000E-03    2.6500        .10696E-02** at limit **
   9  Prefactor     3.6933        9.0622        .10509E-02   -.27120E-04
  10  Prefactor     .10000E-03    1.6536        .84138E-03** at limit **
  11  Prefactor     .10000E-03    21.198        .18142E-02** at limit **
  12  Prefactor     .10000E-03    2.8592        .11086E-02** at limit **
  13  Prefactor     100.71        40.887        .40062E-04   -.75031E-04
  14  Prefactor     .10000E-03    12.364        .18142E-02** at limit **
  15  Prefactor     36.715        32.281        .66143E-04    .84221E-05
  16  Prefactor     9.1152        14.869        .13274E-03    .10363E-04
  17  Prefactor     .10000E-03    59.611        .18142E-02** at limit **
  18  Prefactor     .10000E-03    28.336        .18142E-02** at limit **
  19  Prefactor     .10000E-03    3.4119        .12131E-02** at limit **
  20  Prefactor     33.877        46.051        .68848E-04    .66051E-06
  21  Prefactor     .10000E-03    22.149        .18142E-02** at limit **
  22  Prefactor     .10000E-03    7.5627        .18071E-02** at limit **
  23  norm          .10000E-03    9.3825        .18142E-02** at limit **
  24  norm          .10000E-03    3.3030        .11941E-02** at limit **
  25  norm          8.3592        9.1148        .13864E-03   -.32120E-03
  26  norm          .10000E-03    23.845        .18142E-02** at limit **
  27  Prefactor     .10000E-03    3.7379        .12685E-02** at limit **
  28  Prefactor     .10000E-03    96.199        .18142E-02** at limit **
  29  norm          .10000E-03    7.8203        .36140E-03** at limit **
  30  Prefactor     17.432        15.714        .95929E-04   -.27732E-04
  31  norm          3.5331        4.0694        .14194E-03   -.13536E-03
  32  Normalizat    1.0763        .26745        .25287E-03   -.27420E-03
  33  Prefactor     .90685        .23469        .24378E-03   -.21839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.325
  norm       = 0.959189
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.75798
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.69332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.707
  Prefactor  = 0.0001
  Prefactor  = 36.7152
  Prefactor  = 9.11519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.8771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.35915
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.432
  norm       = 3.53306
  Normalizat = 1.0763
  Prefactor  = 0.906848
 **********
 **   18 **HESSE 
 **********

 FCN=   4530.861     FROM HESSE     STATUS=OK           665 CALLS     5921 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.325        55.605        .40942E-05   -1.4925    
   2  norm          .95919        5.9129        .11141E-04   -1.5512    
   3  Prefactor     .10000E-03    52.717        .14969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1962        .23482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    347.90        .30607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7580        7.0056        .41642E-04   -1.5320    
   7  Prefactor     .10000E-03    35.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.6501        .21392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6933        9.0560        .42038E-04   -1.5324    
  10  Prefactor     .10000E-03    1.6538        .16828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8594        .22172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     100.71        40.877        .80124E-05   -1.3698    
  14  Prefactor     .10000E-03    12.365        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.715        32.292        .26457E-05   -1.4495    
  16  Prefactor     9.1152        14.870        .53098E-05   -1.5104    
  17  Prefactor     .10000E-03    59.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4120        .24262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.877        46.074        .27539E-05   -1.4543    
  21  Prefactor     .10000E-03    22.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.5630        .36141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.3831        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.3031        .23882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.3592        9.1139        .55457E-05   -1.5130    
  26  norm          .10000E-03    23.867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.7381        .25369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    96.227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    7.8205        .72280E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     17.432        15.714        .38372E-05   -1.4873    
  31  norm          3.5331        4.0693        .56776E-05   -1.5332    
  32  Normalizat    1.0763        .26764        .50574E-04   -.90517    
  33  Prefactor     .90685        .23479        .48757E-04   -.95902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97782e-10
Minuit parameter uncertainties:
  1  55.7939
  2  4.76348
  3  0.000510107
  4  4.46917e-06
  5  0.00139978
  6  7.00713
  7  0.000130694
  8  1.0672e-07
  9  9.05936
  10  8.19304e-07
  11  6.90318e-05
  12  5.62258e-08
  13  40.8886
  14  1.26548e-05
  15  32.3075
  16  14.8764
  17  0.00010181
  18  2.40667e-05
  19  7.09881e-07
  20  46.1222
  21  1.10754e-05
  22  5.1571e-06
  23  4.77288e-06
  24  3.01683e-07
  25  9.11541
  26  5.27836e-05
  27  4.0567e-07
  28  8.85071e-06
  29  8.71531e-05
  30  15.7177
  31  4.06966
  32  0.267975
  33  0.235054
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.903e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.068e-01  2.351e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.076e+00  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 5.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360098/likelihoodResults_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.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) = 4530.86171748
delta logL = -0.00022399916179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4530.86149413
delta logL = -6.4927371568e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1740       1.0000          .0000       10.000    
     3 'Normalizat'    1.0763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90685       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+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=   4530.861     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      269 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10113E-03    74.272        .18142E-02** at limit **
   2  Index         2.1213        5.3135        .50000        .16197E-04
   3  Normalizat    1.0763        .10831E-01    .25287E-03   -.11838E-03
   4  Prefactor     .90685        .97248E-02    .24379E-03   -.14424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101132
  Index      = 2.12131
  Normalizat = 1.0763
  Prefactor  = 0.906847
 **********
 **   18 **HESSE 
 **********

 FCN=   4530.861     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10113E-03    329.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1213        6.0582        .50000       -.61351    
   3  Normalizat    1.0763        .23250E-01    .10115E-04   -.90516    
   4  Prefactor     .90685        .20874E-01    .97514E-05   -.95902    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.51179e-09
Minuit parameter uncertainties:
  1  0.038825
  2  286.649
  3  0.0232498
  4  0.0208747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360098': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4530.86149394
delta logL = -4.5940214477e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.011e-04  3.883e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.121e+00  2.866e+02  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.068e-01  2.087e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.076e+00  2.325e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.568 -41.941

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/360098/cmap_HighResolution_500860801_501120001_4FGL_J2234.2-4156_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2021-09-28 14:58:35.969961', job_id='360098', GAL2='0.91', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632866315.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-4.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1009' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:58:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 360098: <4FGL_J2234.2-4156_daily_bin1009> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1009> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:16 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:45:18 2021
Terminated at Tue Sep 28 14:58:36 2021
Results reported at Tue Sep 28 14:58:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1009 338.568 -41.9411 500860801 501120001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.2-4156 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   781.09 sec.
    Max Memory :                                 1204 MB
    Average Memory :                             335.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            800 sec.

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

