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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1234
RA = 338.568, Dec = -41.9411
tmin = 559180801, tmax = 559440001
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='361497', job_status='RUN', time_executed='2021-09-28 14:50:50.622174', time_epoch_executed='1632865850.62' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361497/ft1_4FGL_J2234.2-4156_daily_bin1234.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361497/ft2_4FGL_J2234.2-4156_daily_bin1234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361497/ft1_4FGL_J2234.2-4156_daily_bin1234.fits outfile=/scratch/kocevski/361497/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1234.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=559180801.0 tmax=559440001.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.59
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361497/ft1_filtered_4FGL_J2234.2-4156_daily_bin1234.fits" evtable="EVENTS" scfile=/scratch/kocevski/361497/ft2_4FGL_J2234.2-4156_daily_bin1234.fits sctable="SC_DATA" outfile=/scratch/kocevski/361497/ltcube_559180801_559440001_4FGL_J2234.2-4156_daily_bin1234.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/361497/ft2_4FGL_J2234.2-4156_daily_bin1234.fits
.....................!
real 11.76
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361497/ft1_filtered_4FGL_J2234.2-4156_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/361497/ft2_4FGL_J2234.2-4156_daily_bin1234.fits sctable="SC_DATA" expcube=/scratch/kocevski/361497/ltcube_559180801_559440001_4FGL_J2234.2-4156_daily_bin1234.fits outfile=/scratch/kocevski/361497/expmap_559180801_559440001_4FGL_J2234.2-4156_daily_bin1234.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/361497/ltcube_559180801_559440001_4FGL_J2234.2-4156_daily_bin1234.fits
.....................!
real 190.68
user 185.17
sys 5.17

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/361497/ft1_filtered_4FGL_J2234.2-4156_daily_bin1234.fits scfile=/scratch/kocevski/361497/ft2_4FGL_J2234.2-4156_daily_bin1234.fits outfile=/scratch/kocevski/361497/cmap_559180801_559440001_4FGL_J2234.2-4156_daily_bin1234.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361497/ft1_filtered_4FGL_J2234.2-4156_daily_bin1234.fits scfile=/scratch/kocevski/361497/ft2_4FGL_J2234.2-4156_daily_bin1234.fits outfile=/scratch/kocevski/361497/cmap_HighResolution_559180801_559440001_4FGL_J2234.2-4156_daily_bin1234.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.722       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .39474E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11654E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.488       1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.306       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.814       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14179E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27335E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3865       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    40.223       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    56.196       1.0000         .10000E-03   10000.    
    29 'norm      '    .13461E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .27942       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .67501       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=   684.1500     FROM MIGRAD    STATUS=CONVERGED    850 CALLS     5259 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    446.81       -.68576E-06** at limit **
   2  norm          .10000E-03    13.000       -.77623E-07** at limit **
   3  Prefactor     32.718        43.721       -.95011E-06    .62877E-05
   4  Prefactor     38.948        42.914       -.27830E-06    .42197E-05
   5  Prefactor     .10000E-03    321.38        .24166E-06** at limit **
   6  Prefactor     .10000E-03    147.44       -.11497E-06** at limit **
   7  Prefactor     .10000E-03    2145.8       -.41263E-06** at limit **
   8  norm          .10000E-03    861.63       -.12683E-05** at limit **
   9  Prefactor     .10000E-03    24.806       -.17005E-05** at limit **
  10  Prefactor     50.427        52.909       -.86268E-06   -.12700E-05
  11  Prefactor     82.721        505.24        .19805E-05    .32520E-05
  12  Prefactor     .10000E-03    32.094       -.39526E-07** at limit **
  13  Prefactor     .10000E-03    17.563       -.14056E-06** at limit **
  14  Prefactor     59.757        91.321       -.12456E-05   -.52771E-05
  15  Prefactor     .10000E-03    901.94       -.13701E-05** at limit **
  16  Prefactor     .10000E-03    288.96        .32939E-06** at limit **
  17  Prefactor     .10000E-03    2228.5       -.33009E-06** at limit **
  18  Prefactor     9.3814        18.730       -.73315E-06    .66558E-06
  19  Prefactor     .10000E-03    21.672        .75709E-06** at limit **
  20  Prefactor     .10000E-03    291.67        .34748E-06** at limit **
  21  Prefactor     .10000E-03    49.201       -.17593E-07** at limit **
  22  Prefactor     .10000E-03    142.94       -.52851E-07** at limit **
  23  norm          .10000E-03    26.253        .18208E-06** at limit **
  24  norm          .10000E-03    50.502        .25804E-07** at limit **
  25  norm          .10000E-03    11.005        .10403E-05** at limit **
  26  norm          40.222        30.347       -.52157E-06   -.62554E-04
  27  Prefactor     .10000E-03    25.969        .16309E-06** at limit **
  28  Prefactor     56.332        125.32       -.54574E-05   -.58707E-04
  29  norm          .10000E-03    21.713        .78160E-05** at limit **
  30  Prefactor     .10000E-03    68.863        .37874E-06** at limit **
  31  norm          .10000E-03    10.431        .18578E-05** at limit **
  32  Normalizat    .27898        .56946        .48533E-05   -.19067E-04
  33  Prefactor     .67539        .46579       -.11298E-05   -.29460E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.7183
  Prefactor  = 38.9476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 50.4272
  Prefactor  = 82.7206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.7569
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.38135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 40.2216
  Prefactor  = 0.0001
  Prefactor  = 56.332
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.278984
  Prefactor  = 0.67539
 **********
 **   18 **HESSE 
 **********

 FCN=   684.1500     FROM HESSE     STATUS=OK           677 CALLS     5936 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    447.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.005        .92147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.718        43.486        .70049E-04   -1.4563    
   4  Prefactor     38.948        42.961        .64230E-04   -1.4459    
   5  Prefactor     .10000E-03    321.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    147.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2145.7        .21270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    861.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.881        .12710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     50.427        53.021        .56440E-04   -1.4287    
  11  Prefactor     82.721        505.41        .22137E-03   -1.3886    
  12  Prefactor     .10000E-03    32.094        .14484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.563        .10711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     59.757        90.914        .51877E-04   -1.4160    
  15  Prefactor     .10000E-03    901.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    288.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2228.5        .21429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.3814        18.589        .13081E-03   -1.5095    
  19  Prefactor     .10000E-03    21.683        .11897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    291.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.205        .17938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    142.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    26.252        .13098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    50.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.010        .84758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          40.222        30.295        .63203E-04   -1.4439    
  27  Prefactor     .10000E-03    25.968        .13027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     56.332        128.23        .26756E-03   -1.4205    
  29  norm          .10000E-03    21.825        .11852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    68.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    10.433        .82494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .27898        .59113        .35548E-03   -1.2411    
  33  Prefactor     .67539        .50076        .20883E-03   -1.0450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14596e-10
Minuit parameter uncertainties:
  1  4.22833e-05
  2  3.85624e-06
  3  43.5279
  4  42.9952
  5  0.000536482
  6  0.000140136
  7  0.00199724
  8  0.00377997
  9  9.99112e-06
  10  53.0705
  11  414.255
  12  4.21794e-06
  13  4.16998e-06
  14  91.1262
  15  0.00413095
  16  0.000572962
  17  0.00158839
  18  18.6001
  19  1.94058e-06
  20  0.000574284
  21  1.60629e-05
  22  0.000177321
  23  9.53246e-06
  24  3.11734e-07
  25  1.47034e-05
  26  30.3071
  27  3.80275e-06
  28  128.861
  29  0.000140732
  30  4.34883e-05
  31  2.25205e-05
  32  0.605162
  33  0.504145
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  8.272e+01  4.143e+02  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:  6.754e-01  5.041e-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:  2.790e-01  6.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 4.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361497/likelihoodResults_559180801_559440001_4FGL_J2234.2-4156_daily_bin1234.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 683.041644957
delta logL = 1.1083337437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 682.860708913
delta logL = 1.28926978799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8074       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7312       1.0000          .0000       10.000    
     3 'Normalizat'    .51374E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80742       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=   682.8607     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      332 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8206        35.665        .58593E-04   -.26681E-03
   2  Index         3.7304        1.3324        .14081E-03   -.13075E-03
   3  Normalizat    .50946E-01    2.2189        .73393E-02    .88120E-04
   4  Prefactor     .80751        .57129        .18972E-03    .42076E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.82064
  Index      = 3.73043
  Normalizat = 0.050946
  Prefactor  = 0.807505
 **********
 **   18 **HESSE 
 **********

 FCN=   682.8607     FROM HESSE     STATUS=OK            23 CALLS      355 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8206        33.387        .23437E-05   -1.5081    
   2  Index         3.7304        1.2482        .56325E-05   -.25672    
   3  Normalizat    .50946E-01    1.6999        .29357E-03   -1.4427    
   4  Prefactor     .80751        .49651        .37943E-04   -.99452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16427e-09
Minuit parameter uncertainties:
  1  33.4508
  2  1.26253
  3  0.545158
  4  0.499298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361497': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 682.860706588
delta logL = 1.28927211297

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  9.821e+00  3.345e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  3.730e+00  1.263e+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.075e-01  4.993e-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:  5.095e-02  5.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 3.73 +/- 1.26
Photon Flux (Free Index): 4.92e-07 +/- 3.91e-07
Energy Flux (Free Index): 7.76e-05 +/- 5.93e-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/361497/cmap_HighResolution_559180801_559440001_4FGL_J2234.2-4156_daily_bin1234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-02', comment='SUCCESS', energy_flux2='7.76e-05', dlogl='1.29e+00', photon_flux2='4.92e-07', job_status='DONE', time_completed='2021-09-28 14:57:20.906543', photon_index_error2='1.26', photon_index2='3.73', ts='0.11', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='4.33e-07', energy_flux_error2='5.93e-05', EG='0.28', time_epoch_completed='1632866240.91', return_code='0', job_id='361497', GAL2='0.81', EG2='0.05', return_code2='0', photon_flux_error2='3.91e-07', ts2='2.96', photon_index='1.99' WHERE bin_id='1234' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:57:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 361497: <4FGL_J2234.2-4156_daily_bin1234> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1234 338.568 -41.9411 559180801 559440001 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 :                                   390.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   420 sec.
    Turnaround time :                            422 sec.

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

