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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1379
RA = 338.568, Dec = -41.9411
tmin = 596764801, tmax = 597024001
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='361726', job_status='RUN', time_executed='2021-09-28 14:51:13.078545', time_epoch_executed='1632865873.08' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361726

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361726/ft1_4FGL_J2234.2-4156_daily_bin1379.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361726/ft2_4FGL_J2234.2-4156_daily_bin1379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361726/ft1_4FGL_J2234.2-4156_daily_bin1379.fits outfile=/scratch/kocevski/361726/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1379.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=596764801.0 tmax=597024001.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 3.52
user 3.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361726/ft2_4FGL_J2234.2-4156_daily_bin1379.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/361726/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1379.fits evtable="EVENTS" outfile="/scratch/kocevski/361726/ft1_filtered_4FGL_J2234.2-4156_daily_bin1379.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/361726/ft1_filtered_4FGL_J2234.2-4156_daily_bin1379.fits" evtable="EVENTS" scfile=/scratch/kocevski/361726/ft2_4FGL_J2234.2-4156_daily_bin1379.fits sctable="SC_DATA" outfile=/scratch/kocevski/361726/ltcube_596764801_597024001_4FGL_J2234.2-4156_daily_bin1379.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/361726/ft2_4FGL_J2234.2-4156_daily_bin1379.fits
.....................!
real 11.68
user 11.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361726/ft1_filtered_4FGL_J2234.2-4156_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/361726/ft2_4FGL_J2234.2-4156_daily_bin1379.fits sctable="SC_DATA" expcube=/scratch/kocevski/361726/ltcube_596764801_597024001_4FGL_J2234.2-4156_daily_bin1379.fits outfile=/scratch/kocevski/361726/expmap_596764801_597024001_4FGL_J2234.2-4156_daily_bin1379.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/361726/ltcube_596764801_597024001_4FGL_J2234.2-4156_daily_bin1379.fits
.....................!
real 190.54
user 185.35
sys 4.87

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/361726/ft1_filtered_4FGL_J2234.2-4156_daily_bin1379.fits scfile=/scratch/kocevski/361726/ft2_4FGL_J2234.2-4156_daily_bin1379.fits outfile=/scratch/kocevski/361726/cmap_596764801_597024001_4FGL_J2234.2-4156_daily_bin1379.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361726/ft1_filtered_4FGL_J2234.2-4156_daily_bin1379.fits scfile=/scratch/kocevski/361726/ft2_4FGL_J2234.2-4156_daily_bin1379.fits outfile=/scratch/kocevski/361726/cmap_HighResolution_596764801_597024001_4FGL_J2234.2-4156_daily_bin1379.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/361726/ft1_filtered_4FGL_J2234.2-4156_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/361726/ft2_4FGL_J2234.2-4156_daily_bin1379.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361726/Model_4FGL_J2234.2-4156_daily_bin1379.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/361726/ft1_filtered_4FGL_J2234.2-4156_daily_bin1379.fits.....................!
real 39.77
user 38.57
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.128       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.854       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.216       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4848       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10645E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0446       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.279       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.420       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.337       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7681       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.161       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.1347       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .93353       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.5880       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.0984       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .91064       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0431       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=   4890.843     FROM MIGRAD    STATUS=CONVERGED    868 CALLS     4525 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.552        .15517E-06** at limit **
   2  norm          12.128        6.2725        .30604E-07   -.82461E-05
   3  Prefactor     .10000E-03    11.261        .41062E-06** at limit **
   4  Prefactor     15.855        11.986        .52571E-06   -.27268E-04
   5  Prefactor     .10000E-03    16.624        .16885E-06** at limit **
   6  Prefactor     15.201        11.503        .27265E-06   -.69631E-05
   7  Prefactor     .10000E-03    130.85        .35977E-06** at limit **
   8  norm          .10000E-03    2.9194        .74523E-07** at limit **
   9  Prefactor     2.4839        14.906        .16741E-05    .20060E-05
  10  Prefactor     .10000E-03    2.6876       -.18102E-05** at limit **
  11  Prefactor     21.289        64.490       -.16359E-05   -.10507E-03
  12  Prefactor     7.0441        6.8171        .20742E-06    .29665E-04
  13  Prefactor     43.285        39.161       -.56614E-06    .83905E-05
  14  Prefactor     .10000E-03    13.644       -.14014E-05** at limit **
  15  Prefactor     .10000E-03    9.2625        .12931E-06** at limit **
  16  Prefactor     .10000E-03    4.3317        .18048E-06** at limit **
  17  Prefactor     37.421        47.688        .43524E-07    .13557E-05
  18  Prefactor     10.336        12.903        .16928E-05   -.40737E-04
  19  Prefactor     .10000E-03    2.4701       -.40737E-06** at limit **
  20  Prefactor     2.7624        45.648        .11766E-05    .41619E-06
  21  Prefactor     36.166        38.495        .13163E-07    .70894E-05
  22  Prefactor     .10000E-03    3.4102        .45509E-07** at limit **
  23  norm          4.1341        12.929        .92161E-05   -.86574E-04
  24  norm          .10000E-03    1.9105        .20855E-08** at limit **
  25  norm          .92869        3.7531        .12839E-05   -.11601E-03
  26  norm          .10000E-03    10.044        .67931E-06** at limit **
  27  Prefactor     7.5911        6.6384       -.51566E-07   -.37436E-04
  28  Prefactor     .10000E-03    18.849        .28194E-06** at limit **
  29  norm          5.1012        4.9295       -.13337E-06    .11201E-03
  30  Prefactor     .10000E-03    18.421        .16578E-06** at limit **
  31  norm          .10000E-03    6.0727        .47703E-06** at limit **
  32  Normalizat    .91065        .22363       -.11183E-06   -.34621E-04
  33  Prefactor     1.0431        .20109       -.12639E-05    .10650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.1279
  Prefactor  = 0.0001
  Prefactor  = 15.8546
  Prefactor  = 0.0001
  Prefactor  = 15.2012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.48391
  Prefactor  = 0.0001
  Prefactor  = 21.2886
  Prefactor  = 7.0441
  Prefactor  = 43.2852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4211
  Prefactor  = 10.3359
  Prefactor  = 0.0001
  Prefactor  = 2.76237
  Prefactor  = 36.1656
  Prefactor  = 0.0001
  norm       = 4.13406
  norm       = 0.0001
  norm       = 0.928693
  norm       = 0.0001
  Prefactor  = 7.59108
  Prefactor  = 0.0001
  norm       = 5.10118
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.910653
  Prefactor  = 1.04307
 **********
 **   18 **HESSE 
 **********

 FCN=   4890.843     FROM HESSE     STATUS=OK           691 CALLS     5216 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.128        6.2747        .11503E-03   -1.5011    
   3  Prefactor     .10000E-03    11.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.855        11.980        .50294E-03   -1.4911    
   5  Prefactor     .10000E-03    16.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.201        11.525        .10268E-03   -1.4928    
   7  Prefactor     .10000E-03    130.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.9216        .11670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4839        14.772        .25933E-03   -1.5393    
  10  Prefactor     .10000E-03    2.7028        .11134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.289        64.549        .86531E-04   -1.4785    
  12  Prefactor     7.0441        6.8366        .15114E-03   -1.5177    
  13  Prefactor     43.285        38.938        .60939E-04   -1.4391    
  14  Prefactor     .10000E-03    13.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3505        .14215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.421        47.686        .65518E-04   -1.4484    
  18  Prefactor     10.336        12.927        .62312E-03   -1.5065    
  19  Prefactor     .10000E-03    2.4711        .10731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7624        45.639        .24462E-03   -1.5376    
  21  Prefactor     36.166        38.504        .66645E-04   -1.4504    
  22  Prefactor     .10000E-03    3.4113        .12613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.1341        12.970        .99118E-03   -1.5301    
  24  norm          .10000E-03    1.9106        .94405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .92869        4.4759        .23975E-02   -1.5515    
  26  norm          .10000E-03    10.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.5911        6.6182        .14558E-03   -1.5157    
  28  Prefactor     .10000E-03    18.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.1012        5.2474        .13326E-03   -1.5256    
  30  Prefactor     .10000E-03    18.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    6.3403        .33578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .91065        .26280        .26538E-03   -.96087    
  33  Prefactor     1.0431        .23540        .23863E-03   -.91307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4801e-08
Minuit parameter uncertainties:
  1  1.78745e-05
  2  6.27509
  3  1.05716e-05
  4  11.9815
  5  2.25671e-05
  6  11.5268
  7  0.000365078
  8  5.32329e-07
  9  12.1189
  10  2.04035e-05
  11  64.7617
  12  6.83739
  13  38.9613
  14  9.35818e-06
  15  6.29248e-06
  16  1.29376e-06
  17  47.7345
  18  12.9305
  19  3.83256e-06
  20  22.4763
  21  38.5304
  22  1.5536e-07
  23  12.9787
  24  1.8668e-07
  25  4.0779
  26  1.98309e-05
  27  6.61886
  28  6.51096e-06
  29  5.24783
  30  1.02722e-05
  31  6.96035e-06
  32  0.263171
  33  0.235635
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.129e+01  6.476e+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:  1.043e+00  2.356e-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.107e-01  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/361726/likelihoodResults_596764801_597024001_4FGL_J2234.2-4156_daily_bin1379.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) = 4890.12698368
delta logL = 0.715782514776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4889.9796025
delta logL = 0.863163695221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10935E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4695       1.0000          .0000       10.000    
     3 'Normalizat'    .79509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1224       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=   4889.980     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      372 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10825E-01    .14026        .13019E-02    .56229E-02
   2  Index         5.4737        1.9030        .82476E-01    .16925E-03
   3  Normalizat    .79552        .48376E-01    .63867E-01    .15713E-04
   4  Prefactor     1.1221        .46288E-01    .36791E-01    .30035E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0108245
  Index      = 5.47367
  Normalizat = 0.795518
  Prefactor  = 1.12207
 **********
 **   18 **HESSE 
 **********

 FCN=   4889.980     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      407 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10825E-01    .34771        .58395E-04   -1.5687    
   2  Index         5.4737        3.4548        .30576E-02    .94876E-01
   3  Normalizat    .79552        .18492        .28252E-03   -1.0024    
   4  Prefactor     1.1221        .17346        .23119E-03   -.88764    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.24928e-08
Minuit parameter uncertainties:
  1  0.122133
  2  3.8184
  3  0.185061
  4  0.173542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361726': 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) = 4889.97959506
delta logL = 0.863171138818

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.082e-02  1.221e-01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  5.474e+00  3.818e+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:  1.122e+00  1.735e-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:  7.955e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 5.47 +/- 3.82
Photon Flux (Free Index): 8.36e-08 +/- 6.57e-08
Energy Flux (Free Index): 1.07e-05 +/- 8.87e-06

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/361726/cmap_HighResolution_596764801_597024001_4FGL_J2234.2-4156_daily_bin1379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='8.63e-01', photon_flux2='8.36e-08', job_status='DONE', time_completed='2021-09-28 15:04:15.208376', photon_index_error2='3.82', photon_index2='5.47', ts='0.13', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.65e-08', energy_flux_error2='8.87e-06', EG='0.91', time_epoch_completed='1632866655.21', return_code='0', job_id='361726', GAL2='1.12', EG2='0.80', return_code2='102', photon_flux_error2='6.57e-08', ts2='2.14', photon_index='1.99' WHERE bin_id='1379' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:04:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 361726: <4FGL_J2234.2-4156_daily_bin1379> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1379> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:37 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:39 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:50:39 2021
Terminated at Tue Sep 28 15:04:15 2021
Results reported at Tue Sep 28 15:04:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1379 338.568 -41.9411 596764801 597024001 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 :                                   780.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

