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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin599
RA = 338.568, Dec = -41.9411
tmin = 394588801, tmax = 394848001
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='357634', job_status='RUN', time_executed='2021-09-28 14:40:13.451625', time_epoch_executed='1632865213.45' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357634/ft1_4FGL_J2234.2-4156_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357634/ft2_4FGL_J2234.2-4156_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357634/ft1_4FGL_J2234.2-4156_daily_bin599.fits outfile=/scratch/kocevski/357634/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin599.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=394588801.0 tmax=394848001.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.50
user 4.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357634/ft2_4FGL_J2234.2-4156_daily_bin599.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/357634/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin599.fits evtable="EVENTS" outfile="/scratch/kocevski/357634/ft1_filtered_4FGL_J2234.2-4156_daily_bin599.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357634/ft1_filtered_4FGL_J2234.2-4156_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/357634/ft2_4FGL_J2234.2-4156_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/357634/ltcube_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.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/357634/ft2_4FGL_J2234.2-4156_daily_bin599.fits
.....................!
real 11.55
user 11.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357634/ft1_filtered_4FGL_J2234.2-4156_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/357634/ft2_4FGL_J2234.2-4156_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/357634/ltcube_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.fits outfile=/scratch/kocevski/357634/expmap_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.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/357634/ltcube_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.fits
.....................!
real 190.52
user 184.94
sys 5.21

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/357634/ft1_filtered_4FGL_J2234.2-4156_daily_bin599.fits scfile=/scratch/kocevski/357634/ft2_4FGL_J2234.2-4156_daily_bin599.fits outfile=/scratch/kocevski/357634/cmap_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357634/ft1_filtered_4FGL_J2234.2-4156_daily_bin599.fits scfile=/scratch/kocevski/357634/ft2_4FGL_J2234.2-4156_daily_bin599.fits outfile=/scratch/kocevski/357634/cmap_HighResolution_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357634/ft1_filtered_4FGL_J2234.2-4156_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/357634/ft2_4FGL_J2234.2-4156_daily_bin599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357634/Model_4FGL_J2234.2-4156_daily_bin599.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/357634/ft1_filtered_4FGL_J2234.2-4156_daily_bin599.fits.....................!
real 38.45
user 37.09
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/357634/ft1_filtered_4FGL_J2234.2-4156_daily_bin599.fits', '/scratch/kocevski/357634/ft2_4FGL_J2234.2-4156_daily_bin599.fits', expMap='/scratch/kocevski/357634/expmap_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.fits', expCube='/scratch/kocevski/357634/ltcube_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/357634/Model_4FGL_J2234.2-4156_daily_bin599.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/357634/ft1_filtered_4FGL_J2234.2-4156_daily_bin599.fits
Spacecraft file(s): /scratch/kocevski/357634/ft2_4FGL_J2234.2-4156_daily_bin599.fits
Exposure map: /scratch/kocevski/357634/expmap_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.fits
Exposure cube: /scratch/kocevski/357634/ltcube_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/357634/Model_4FGL_J2234.2-4156_daily_bin599.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) = 4231.64667581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.639       1.0000         .10000E-03   10000.    
     2 'norm      '    .43405       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.773       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    68.127       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6091       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40421E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.293       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7419       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8642       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    33.619       1.0000         .10000E-03   10000.    
    29 'norm      '    .10932E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    2.1217       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4158       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .81360       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.

 FCN=   4231.634     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     4592 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.580        58.451        .31155E-05    .38398E-04
   2  norm          .43879        7.5707       -.51950E-06   -.89189E-04
   3  Prefactor     4.5947        13.072        .20333E-05    .23759E-04
   4  Prefactor     .10000E-03    16.579        .12912E-06** at limit **
   5  Prefactor     13.719        47.708        .26714E-05   -.20021E-05
   6  Prefactor     .10000E-03    4.0153       -.55231E-06** at limit **
   7  Prefactor     68.042        109.11        .81616E-05   -.22634E-06
   8  norm          .10000E-03    2.8707       -.50800E-07** at limit **
   9  Prefactor     .10000E-03    4.5513        .13514E-07** at limit **
  10  Prefactor     1.6089        4.6236        .41480E-06   -.19166E-04
  11  Prefactor     3.7357        277.40       -.23780E-05   -.50685E-05
  12  Prefactor     .10001E-03    5.4139        .65590E-06** at limit **
  13  Prefactor     .44651        38.587        .38725E-05   -.16674E-03
  14  Prefactor     .10000E-03    34.785       -.10445E-05** at limit **
  15  Prefactor     25.266        34.275       -.15499E-06   -.21287E-04
  16  Prefactor     .10000E-03    6.6461        .33600E-07** at limit **
  17  Prefactor     .10000E-03    50.941       -.13555E-05** at limit **
  18  Prefactor     .10000E-03    5.1521       -.44076E-07** at limit **
  19  Prefactor     1.7408        12.945        .93853E-06   -.22769E-05
  20  Prefactor     .10000E-03    24.831        .25611E-06** at limit **
  21  Prefactor     .10000E-03    43.222        .24006E-05** at limit **
  22  Prefactor     1.8585        41.407        .96946E-05    .32358E-04
  23  norm          .10000E-03    4.7474       -.81404E-07** at limit **
  24  norm          .10000E-03    2.7498        .25845E-07** at limit **
  25  norm          .10000E-03    3.5562       -.99455E-07** at limit **
  26  norm          .10000E-03    4.5421        .35648E-07** at limit **
  27  Prefactor     .10000E-03    2.2832        .29847E-07** at limit **
  28  Prefactor     33.617        37.577        .11343E-05    .77688E-06
  29  norm          .10000E-03    4.9843       -.22845E-06** at limit **
  30  Prefactor     .10000E-03    7.3476        .58242E-07** at limit **
  31  norm          2.1230        4.0365        .96720E-08   -.12306E-04
  32  Normalizat    1.4158        .24457       -.35484E-06   -.11186E-03
  33  Prefactor     .81359        .21588       -.12509E-05   -.11013E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.5799
  norm       = 0.438786
  Prefactor  = 4.5947
  Prefactor  = 0.0001
  Prefactor  = 13.7191
  Prefactor  = 0.0001
  Prefactor  = 68.0417
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60887
  Prefactor  = 3.73572
  Prefactor  = 0.000100009
  Prefactor  = 0.446508
  Prefactor  = 0.0001
  Prefactor  = 25.2657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.85846
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.617
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12299
  Normalizat = 1.41577
  Prefactor  = 0.813588
 **********
 **   18 **HESSE 
 **********

 FCN=   4231.634     FROM HESSE     STATUS=OK           699 CALLS     5291 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.580        58.023        .22502E-03   -1.3921    
   2  norm          .43879        7.6905        .33018E-03   -1.5575    
   3  Prefactor     4.5947        13.102        .93775E-03   -1.5279    
   4  Prefactor     .10000E-03    16.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.719        47.786        .10793E-03   -1.4967    
   6  Prefactor     .10000E-03    4.0389        .12749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     68.042        108.67        .24315E-03   -1.4056    
   8  norm          .10000E-03    2.8715        .10765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5661        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6089        4.5468        .22075E-03   -1.5454    
  11  Prefactor     3.7357        272.17        .20947E-03   -1.5321    
  12  Prefactor     .10001E-03    22.660        .27678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .44651        49.452        .10423       -1.5574    
  14  Prefactor     .10000E-03    34.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.266        33.660        .79651E-04   -1.4702    
  16  Prefactor     .10000E-03    6.6588        .16369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    50.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1574        .14421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7408        12.850        .31785E-03   -1.5444    
  20  Prefactor     .10000E-03    24.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    43.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.8585        41.735        .15257E-02   -1.5435    
  23  norm          .10000E-03    4.7484        .13843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.7512        .10535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.5731        .11976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.5472        .13540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.2852        .95995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     33.617        37.534        .69111E-04   -1.4548    
  29  norm          .10000E-03    5.0693        .14136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.3577        .17222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          2.1230        4.0034        .17408E-03   -1.5417    
  32  Normalizat    1.4158        .29184        .23608E-03   -.80174    
  33  Prefactor     .81359        .25433        .27421E-03   -.99229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64202e-10
Minuit parameter uncertainties:
  1  58.0639
  2  3.67407
  3  13.1103
  4  2.04753e-05
  5  47.9202
  6  4.12803e-05
  7  108.989
  8  2.93548e-06
  9  8.16445e-07
  10  4.54777
  11  64.077
  12  0.000923436
  13  9.4049
  14  1.41714e-06
  15  33.685
  16  1.54176e-06
  17  1.3745e-06
  18  1.2605e-07
  19  9.46184
  20  2.46817e-06
  21  4.9947e-06
  22  17.6273
  23  5.54026e-08
  24  1.22394e-08
  25  5.7225e-06
  26  2.91971e-07
  27  3.56719e-08
  28  37.56
  29  2.28553e-05
  30  2.35502e-08
  31  4.00394
  32  0.292188
  33  0.254695
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.736e+00  6.408e+01  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:  8.136e-01  2.547e-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.416e+00  2.922e-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: 9.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357634/likelihoodResults_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.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) = 4230.7257308
delta logL = 0.908701415241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4230.70928927
delta logL = 0.925142940901

Fit tolerance = 1e-08

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

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

 FCN=   4230.709     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      249 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61872        9.0836        .92383E-02    .68073E-03
   2  Index         4.1195        2.0863        .80792E-01    .15389E-03
   3  Normalizat    1.3018        .59007E-01    .55261E-01    .49762E-05
   4  Prefactor     .87633        .53975E-01    .44699E-01    .11414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.618723
  Index      = 4.11953
  Normalizat = 1.30181
  Prefactor  = 0.876325
 **********
 **   18 **HESSE 
 **********

 FCN=   4230.709     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      284 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61872        21.190        .41892E-03   -1.5551    
   2  Index         4.1195        3.5749        .30413E-02   -.17702    
   3  Normalizat    1.3018        .21445        .24436E-03   -.83512    
   4  Prefactor     .87633        .19289        .26529E-03   -.96973    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.33571e-08
Minuit parameter uncertainties:
  1  7.24394
  2  4.00132
  3  0.214596
  4  0.193039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357634': 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) = 4230.70928819
delta logL = 0.925144023172

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  6.187e-01  7.244e+00  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  4.120e+00  4.001e+00  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:  8.763e-01  1.930e-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.302e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 4.12 +/- 4.00
Photon Flux (Free Index): 9.33e-08 +/- 7.98e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.64e-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/357634/cmap_HighResolution_394588801_394848001_4FGL_J2234.2-4156_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-03', comment='SUCCESS', energy_flux2='1.37e-05', dlogl='9.25e-01', photon_flux2='9.33e-08', job_status='DONE', time_completed='2021-09-28 14:52:21.841902', photon_index_error2='4.00', photon_index2='4.12', ts='0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='9.72e-08', energy_flux_error2='1.64e-05', EG='1.42', time_epoch_completed='1632865941.84', return_code='0', job_id='357634', GAL2='0.88', EG2='1.30', return_code2='102', photon_flux_error2='7.98e-08', ts2='1.97', photon_index='1.99' WHERE bin_id='599' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:52:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 357634: <4FGL_J2234.2-4156_daily_bin599> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin599> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:36:25 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:36:26 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:36:26 2021
Terminated at Tue Sep 28 14:52:22 2021
Results reported at Tue Sep 28 14:52:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin599 338.568 -41.9411 394588801 394848001 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 :                                   729.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            957 sec.

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

