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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1510
RA = 338.568, Dec = -41.9411
tmin = 630720001, tmax = 630979201
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='362973', job_status='RUN', time_executed='2021-09-28 14:55:44.604643', time_epoch_executed='1632866144.6' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362973

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362973/ft1_4FGL_J2234.2-4156_daily_bin1510.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362973/ft2_4FGL_J2234.2-4156_daily_bin1510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362973/ft1_4FGL_J2234.2-4156_daily_bin1510.fits outfile=/scratch/kocevski/362973/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1510.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=630720001.0 tmax=630979201.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 2.95
user 2.73
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362973/ft2_4FGL_J2234.2-4156_daily_bin1510.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/362973/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1510.fits evtable="EVENTS" outfile="/scratch/kocevski/362973/ft1_filtered_4FGL_J2234.2-4156_daily_bin1510.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362973/ft1_filtered_4FGL_J2234.2-4156_daily_bin1510.fits" evtable="EVENTS" scfile=/scratch/kocevski/362973/ft2_4FGL_J2234.2-4156_daily_bin1510.fits sctable="SC_DATA" outfile=/scratch/kocevski/362973/ltcube_630720001_630979201_4FGL_J2234.2-4156_daily_bin1510.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/362973/ft2_4FGL_J2234.2-4156_daily_bin1510.fits
.....................!
real 13.24
user 12.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362973/ft1_filtered_4FGL_J2234.2-4156_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/362973/ft2_4FGL_J2234.2-4156_daily_bin1510.fits sctable="SC_DATA" expcube=/scratch/kocevski/362973/ltcube_630720001_630979201_4FGL_J2234.2-4156_daily_bin1510.fits outfile=/scratch/kocevski/362973/expmap_630720001_630979201_4FGL_J2234.2-4156_daily_bin1510.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/362973/ltcube_630720001_630979201_4FGL_J2234.2-4156_daily_bin1510.fits
.....................!
real 192.65
user 186.83
sys 5.38

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/362973/ft1_filtered_4FGL_J2234.2-4156_daily_bin1510.fits scfile=/scratch/kocevski/362973/ft2_4FGL_J2234.2-4156_daily_bin1510.fits outfile=/scratch/kocevski/362973/cmap_630720001_630979201_4FGL_J2234.2-4156_daily_bin1510.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.64
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362973/ft1_filtered_4FGL_J2234.2-4156_daily_bin1510.fits scfile=/scratch/kocevski/362973/ft2_4FGL_J2234.2-4156_daily_bin1510.fits outfile=/scratch/kocevski/362973/cmap_HighResolution_630720001_630979201_4FGL_J2234.2-4156_daily_bin1510.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.61
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362973/ft1_filtered_4FGL_J2234.2-4156_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/362973/ft2_4FGL_J2234.2-4156_daily_bin1510.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362973/Model_4FGL_J2234.2-4156_daily_bin1510.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/362973/ft1_filtered_4FGL_J2234.2-4156_daily_bin1510.fits.....................!
real 52.32
user 50.96
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11177E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.8396       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7635       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0772       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.850       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12227E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1739       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94394E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.964       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.720       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.655       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8829       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.191       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.1654       1.0000         .10000E-03   10000.    
    24 'norm      '    2.6441       1.0000         .10000E-03   10000.    
    25 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    18.731       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.475       1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.369       1.0000         .10000E-03   10000.    
    29 'norm      '    .88312       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96908       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .75203       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7011.101     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     3869 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.7404       -.22603E-05** at limit **
   2  norm          9.8388        4.8145        .44726E-07   -.79070E-04
   3  Prefactor     3.7598        4.2625        .78071E-05    .16741E-02
   4  Prefactor     7.0729        4.8019        .64900E-05    .24576E-02
   5  Prefactor     34.823        4.1723        .79034E-06   -.64539E-04
   6  Prefactor     .10000E-03    3.4482       -.38271E-05** at limit **
   7  Prefactor     .16723E-03    639.75       -.71637E-04** at limit **
   8  norm          .10000E-03    3.9124        .22587E-06** at limit **
   9  Prefactor     .10000E-03    2.8103       -.17919E-06** at limit **
  10  Prefactor     2.1756        3.0973       -.63355E-06    .99368E-06
  11  Prefactor     .10001E-03    11.215       -.56147E-05** at limit **
  12  Prefactor     .10018E-03    239.59        .47198E-04** at limit **
  13  Prefactor     .10000E-03    8.6319        .16971E-05** at limit **
  14  Prefactor     4.3393        4.4817        .32918E-05   -.17854E-02
  15  Prefactor     28.945        22.574       -.74858E-05    .10407E-02
  16  Prefactor     12.723        4.8231        .14219E-05   -.23818E-02
  17  Prefactor     .10000E-03    35.934        .41068E-05** at limit **
  18  Prefactor     29.643        6.4355       -.49673E-06   -.11764E-01
  19  Prefactor     3.8829        4.4963       -.74291E-06   -.92914E-04
  20  Prefactor     .10000E-03    8.8645        .31089E-05** at limit **
  21  Prefactor     14.077        24.861       -.35173E-05   -.27820E-02
  22  Prefactor     .10000E-03    3.5749        .11508E-05** at limit **
  23  norm          8.1628        1.1562        .23621E-06   -.51416E-03
  24  norm          2.6441        2.6384       -.18856E-06    .38726E-07
  25  norm          .10000E-03    1.5916        .43995E-06** at limit **
  26  norm          18.737        7.7197        .11969E-05    .36474E-02
  27  Prefactor     10.475        4.9582        .10067E-05    .42068E-03
  28  Prefactor     26.423        8.6019       -.27290E-05    .18487E-02
  29  norm          .87773        3.2217        .43685E-05   -.10312E-03
  30  Prefactor     .10000E-03    7.4609       -.28361E-06** at limit **
  31  norm          .10000E-03    1.7155        .11114E-05** at limit **
  32  Normalizat    .96900        .18594        .47942E-06    .75445E-04
  33  Prefactor     .75221        .17184       -.13014E-05    .78894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 9.83879
  Prefactor  = 3.75978
  Prefactor  = 7.07294
  Prefactor  = 34.8234
  Prefactor  = 0.0001
  Prefactor  = 0.000167227
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17558
  Prefactor  = 0.000100008
  Prefactor  = 0.000100184
  Prefactor  = 0.0001
  Prefactor  = 4.3393
  Prefactor  = 28.9449
  Prefactor  = 12.7227
  Prefactor  = 0.000100003
  Prefactor  = 29.6426
  Prefactor  = 3.88293
  Prefactor  = 0.0001
  Prefactor  = 14.0769
  Prefactor  = 0.0001
  norm       = 8.16284
  norm       = 2.64408
  norm       = 0.0001
  norm       = 18.7369
  Prefactor  = 10.4753
  Prefactor  = 26.4225
  norm       = 0.877732
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.968997
  Prefactor  = 0.75221
 **********
 **   18 **HESSE 
 **********

 FCN=   7011.101     FROM HESSE     STATUS=OK           769 CALLS     4638 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    12.328        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.8388        4.8245        .31937E-02   -1.5081    
   3  Prefactor     3.7598        7.6812        .52027E-02   -1.5320    
   4  Prefactor     7.0729        7.3927        .37698E-02   -1.5176    
   5  Prefactor     34.823        33.071        .16971E-02   -1.4527    
   6  Prefactor     .10000E-03    3.4305        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16723E-03    851.93        .90841E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8868        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7865        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1756        3.1166        .69816E-02   -1.5413    
  11  Prefactor     .10001E-03    12.048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10018E-03    1.7872        .58235E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.5924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3393        9.8040        .48338E-02   -1.5291    
  15  Prefactor     28.945        24.834        .18611E-02   -1.4631    
  16  Prefactor     12.723        10.476        .28078E-02   -1.4994    
  17  Prefactor     .10000E-03    35.977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.643        12.847        .18393E-02   -1.4619    
  19  Prefactor     3.8829        4.5103        .51193E-02   -1.5314    
  20  Prefactor     .10000E-03    12.449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.077        49.149        .26581E-02   -1.4957    
  22  Prefactor     .10000E-03    3.5674        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.1628        7.3866        .35076E-02   -1.5136    
  24  norm          2.6441        2.6277        .62682E-02   -1.5383    
  25  norm          .10000E-03    1.5923        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          18.737        8.9157        .23136E-02   -1.4842    
  27  Prefactor     10.475        4.9725        .30949E-02   -1.5061    
  28  Prefactor     26.423        43.531        .19503E-02   -1.4679    
  29  norm          .87773        9.1110        .12746E-01   -1.5521    
  30  Prefactor     .10000E-03    7.3375        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.7023        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .96900        .16356        .45778E-01   -.94076    
  33  Prefactor     .75221        .14821        .43090E-01   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33546e-07
Minuit parameter uncertainties:
  1  0.000528344
  2  4.82467
  3  7.68325
  4  7.39361
  5  33.0882
  6  1.76987e-05
  7  0.485707
  8  4.92947e-06
  9  1.13151e-07
  10  3.11681
  11  0.000612984
  12  0.00114665
  13  1.49448e-05
  14  9.80762
  15  24.8425
  16  10.4778
  17  0.000697562
  18  12.8481
  19  4.51071
  20  8.74278e-05
  21  49.2904
  22  7.50449e-06
  23  7.38743
  24  2.62778
  25  3.39849e-07
  26  8.91633
  27  4.97265
  28  43.5831
  29  5.65659
  30  9.69028e-06
  31  2.56185e-06
  32  0.163646
  33  0.14829
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.130e-04  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:  7.522e-01  1.483e-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:  9.690e-01  1.636e-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: 3.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362973/likelihoodResults_630720001_630979201_4FGL_J2234.2-4156_daily_bin1510.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) = 7011.10139935
delta logL = -0.000395010448301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7011.10100618
delta logL = -1.84675900528e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9616       1.0000          .0000       10.000    
     3 'Normalizat'    .96884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75221       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=   7011.101     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      242 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10274E-03    5.2104        .18142E-01** at limit **
   2  Index         1.8798        5.9362        .50000        .15761E-04
   3  Normalizat    .96900        .22835E-02    .23049E-03   -.39460E-05
   4  Prefactor     .75221        .22149E-02    .24946E-03   -.61981E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010274
  Index      = 1.87978
  Normalizat = 0.968997
  Prefactor  = 0.75221
 **********
 **   18 **HESSE 
 **********

 FCN=   7011.101     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10274E-03    70.999        .30291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8798        7.6169        .50000       -.67391    
   3  Normalizat    .96900        .84677E-02    .92195E-05   -.94076    
   4  Prefactor     .75221        .82135E-02    .99782E-05   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.44541e-09
Minuit parameter uncertainties:
  1  0.0279302
  2  265.69
  3  0.00846773
  4  0.00821354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362973': 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) = 7011.10100392
delta logL = 4.12862391386e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.027e-04  2.793e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.880e+00  2.657e+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:  7.522e-01  8.214e-03  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:  9.690e-01  8.468e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/362973/cmap_HighResolution_630720001_630979201_4FGL_J2234.2-4156_daily_bin1510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-03', job_status='DONE', photon_flux_upper_limit='3.20e-08', time_completed='2021-09-28 15:11:52.901628', job_id='362973', GAL2='0.75', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632867112.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1510' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:11:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 362973: <4FGL_J2234.2-4156_daily_bin1510> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1510> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:55:29 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:55:31 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:55:31 2021
Terminated at Tue Sep 28 15:11:53 2021
Results reported at Tue Sep 28 15:11:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1510 338.568 -41.9411 630720001 630979201 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 :                                   964.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

