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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1651
RA = 338.568, Dec = -41.9411
tmin = 667267201, tmax = 667526401
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='535999', job_status='RUN', time_executed='2022-02-26 01:17:27.077143', time_epoch_executed='1645867047.08' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535999/ft1_4FGL_J2234.2-4156_daily_bin1651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535999/ft2_4FGL_J2234.2-4156_daily_bin1651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535999/ft1_4FGL_J2234.2-4156_daily_bin1651.fits outfile=/scratch/kocevski/535999/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1651.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=667267201.0 tmax=667526401.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.87
user 2.67
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/535999/ft2_4FGL_J2234.2-4156_daily_bin1651.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/535999/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1651.fits evtable="EVENTS" outfile="/scratch/kocevski/535999/ft1_filtered_4FGL_J2234.2-4156_daily_bin1651.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
Number of photons that survived the gtmktime cut: 69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/535999/ft1_filtered_4FGL_J2234.2-4156_daily_bin1651.fits" evtable="EVENTS" scfile=/scratch/kocevski/535999/ft2_4FGL_J2234.2-4156_daily_bin1651.fits sctable="SC_DATA" outfile=/scratch/kocevski/535999/ltcube_667267201_667526401_4FGL_J2234.2-4156_daily_bin1651.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/535999/ft2_4FGL_J2234.2-4156_daily_bin1651.fits
.....................!
real 13.23
user 12.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535999/ft1_filtered_4FGL_J2234.2-4156_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/535999/ft2_4FGL_J2234.2-4156_daily_bin1651.fits sctable="SC_DATA" expcube=/scratch/kocevski/535999/ltcube_667267201_667526401_4FGL_J2234.2-4156_daily_bin1651.fits outfile=/scratch/kocevski/535999/expmap_667267201_667526401_4FGL_J2234.2-4156_daily_bin1651.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/535999/ltcube_667267201_667526401_4FGL_J2234.2-4156_daily_bin1651.fits
.....................!
real 190.13
user 185.47
sys 4.24

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/535999/ft1_filtered_4FGL_J2234.2-4156_daily_bin1651.fits scfile=/scratch/kocevski/535999/ft2_4FGL_J2234.2-4156_daily_bin1651.fits outfile=/scratch/kocevski/535999/cmap_667267201_667526401_4FGL_J2234.2-4156_daily_bin1651.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/535999/ft1_filtered_4FGL_J2234.2-4156_daily_bin1651.fits scfile=/scratch/kocevski/535999/ft2_4FGL_J2234.2-4156_daily_bin1651.fits outfile=/scratch/kocevski/535999/cmap_HighResolution_667267201_667526401_4FGL_J2234.2-4156_daily_bin1651.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/535999/ft1_filtered_4FGL_J2234.2-4156_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/535999/ft2_4FGL_J2234.2-4156_daily_bin1651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/535999/Model_4FGL_J2234.2-4156_daily_bin1651.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/535999/ft1_filtered_4FGL_J2234.2-4156_daily_bin1651.fits.......................!
real 17.76
user 16.49
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 758.664095974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58936       1.0000         .10000E-03   10000.    
     2 'norm      '    584.77       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38563       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0650       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .96423       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40812       1.0000         .10000E-03   10000.    
     7 'Prefactor '    502.77       1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.939       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.078       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.702       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85681E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41199       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39584E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    97.351       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.709       1.0000         .10000E-03   10000.    
    21 'Prefactor '    331.88       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    17.730       1.0000         .10000E-03   10000.    
    24 'norm      '    .32486       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.1709       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    51.508       1.0000         .10000E-03   10000.    
    29 'norm      '    9.1909       1.0000         .10000E-03   10000.    
    30 'Prefactor '    26.548       1.0000         .10000E-03   10000.    
    31 'norm      '    10.794       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .86813       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .66332       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=   758.5069     FROM MIGRAD    STATUS=CONVERGED   1377 CALLS     4738 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    283.02        .69173E-07** at limit **
   2  norm          1042.5        1075.7       -.17687E-04   -.42457E-04
   3  Prefactor     .10000E-03    339.38        .15028E-06** at limit **
   4  Prefactor     .10000E-03    6652.3       -.53247E-06** at limit **
   5  Prefactor     .10000E-03    319.93        .71359E-05** at limit **
   6  Prefactor     .10000E-03    130.02        .18025E-04** at limit **
   7  Prefactor     499.38        491.23       -.68760E-05   -.43595E-04
   8  norm          .10000E-03    7.8364        .25499E-06** at limit **
   9  Prefactor     .10018E-03    7185.2       -.10906E-04** at limit **
  10  Prefactor     14.112        21.563        .12554E-05   -.34442E-04
  11  Prefactor     59.196        209.24        .84006E-06    .12805E-04
  12  Prefactor     20.212        27.281       -.78795E-05   -.31293E-03
  13  Prefactor     .10000E-03    213.44       -.16789E-05** at limit **
  14  Prefactor     .10008E-03    909.53       -.16208E-04** at limit **
  15  Prefactor     .10000E-03    30.101        .69477E-06** at limit **
  16  Prefactor     .10000E-03    11.571        .15421E-06** at limit **
  17  Prefactor     .10000E-03    87.395       -.14807E-06** at limit **
  18  Prefactor     123.10        127.53        .97544E-06    .56642E-04
  19  Prefactor     .10000E-03    10.632       -.25796E-06** at limit **
  20  Prefactor     26.088        88.315        .70905E-05    .27692E-05
  21  Prefactor     289.12        313.98        .50217E-06    .46490E-04
  22  Prefactor     .10000E-03    14.414       -.42345E-06** at limit **
  23  norm          18.895        32.174        .70557E-06    .15518E-04
  24  norm          .18023        15.774        .77610E-05   -.58478E-03
  25  norm          .10000E-03    8.9888       -.38255E-06** at limit **
  26  norm          3.2491        33.455       -.49263E-05   -.39539E-04
  27  Prefactor     .10000E-03    8.3077       -.37391E-06** at limit **
  28  Prefactor     39.912        130.51       -.17415E-04    .24375E-06
  29  norm          9.8241        13.252        .15273E-05    .45302E-04
  30  Prefactor     23.624        39.214       -.78397E-05   -.13886E-04
  31  norm          11.335        14.554        .31687E-06   -.23387E-05
  32  Normalizat    .91086        .84471        .74227E-04   -.22083E-04
  33  Prefactor     .62081        .75554       -.70887E-04   -.30913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1042.52
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100002
  Prefactor  = 499.385
  norm       = 0.0001
  Prefactor  = 0.000100181
  Prefactor  = 14.1124
  Prefactor  = 59.1961
  Prefactor  = 20.2122
  Prefactor  = 0.000100002
  Prefactor  = 0.000100079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.097
  Prefactor  = 0.0001
  Prefactor  = 26.088
  Prefactor  = 289.122
  Prefactor  = 0.0001
  norm       = 18.8945
  norm       = 0.180226
  norm       = 0.0001
  norm       = 3.24909
  Prefactor  = 0.0001
  Prefactor  = 39.9124
  norm       = 9.82408
  Prefactor  = 23.6237
  norm       = 11.3345
  Normalizat = 0.910859
  Prefactor  = 0.620809
 **********
 **   18 **HESSE 
 **********

 FCN=   758.5069     FROM HESSE     STATUS=OK           689 CALLS     5427 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    283.03        .23261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1042.5        1079.8        .85236E-04   -.91325    
   3  Prefactor     .10000E-03    339.45        .21589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6656.2        .23645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    322.60        .26077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    129.95        .21779E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     499.38        495.17        .91526E-04   -1.1201    
   8  norm          .10000E-03    7.8395        .75326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10018E-03    7200.9        .37897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.112        21.587        .10675E-03   -1.4956    
  11  Prefactor     59.196        209.62        .25559E-03   -1.4168    
  12  Prefactor     20.212        27.313        .85981E-04   -1.4809    
  13  Prefactor     .10000E-03    213.63        .18885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10008E-03    920.97        .21812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.137        .14767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.585        .91525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    87.385        .21268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     123.10        127.06        .40740E-04   -1.3484    
  19  Prefactor     .10000E-03    10.633        .87745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.088        88.593        .82265E-04   -1.4686    
  21  Prefactor     289.12        314.31        .11165E-03   -1.2291    
  22  Prefactor     .10000E-03    14.414        .10217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.895        32.191        .95117E-04   -1.4838    
  24  norm          .18023        114.46        .19627E-02   -1.5793    
  25  norm          .10000E-03    8.9974        .80581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.2491        33.598        .11380E-02   -1.5347    
  27  Prefactor     .10000E-03    8.3107        .77486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     39.912        130.75        .55881E-04   -1.4444    
  29  norm          9.8241        13.253        .92101E-04   -1.5081    
  30  Prefactor     23.624        39.259        .77749E-04   -1.4735    
  31  norm          11.335        14.556        .98571E-04   -1.5035    
  32  Normalizat    .91086        .85503        .28969E-03   -.96080    
  33  Prefactor     .62081        .76978        .34485E-03   -1.0672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71884e-08
Minuit parameter uncertainties:
  1  3.22135e-05
  2  1103.59
  3  1.16242e-05
  4  0.003959
  5  0.00246716
  6  0.00105563
  7  499.534
  8  1.46896e-05
  9  0.0617535
  10  21.5988
  11  212.324
  12  27.3297
  13  0.00116317
  14  0.0173347
  15  5.32664e-05
  16  1.08735e-05
  17  6.44395e-05
  18  127.346
  19  3.86679e-05
  20  89.0449
  21  316.18
  22  6.87137e-05
  23  32.2207
  24  9.09886
  25  3.44484e-05
  26  20.9111
  27  3.83404e-05
  28  131.703
  29  13.2567
  30  39.3019
  31  14.5604
  32  0.868294
  33  0.783471
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  5.920e+01  2.123e+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.208e-01  7.835e-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.109e-01  8.683e-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.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/535999/likelihoodResults_667267201_667526401_4FGL_J2234.2-4156_daily_bin1651.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) = 758.496834313
delta logL = 0.0100539464263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 758.491039312
delta logL = 0.0158489483581

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.337       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3114       1.0000          .0000       10.000    
     3 'Normalizat'    .90782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62148       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=   758.4910     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      266 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.319        293.68        .65590E-04    .39068E-04
   2  Index         2.3102        2.0970        .62509E-02    .30405E-04
   3  Normalizat    .90587        .69456        .29010E-03   -.94410E-04
   4  Prefactor     .62331        .69515        .34426E-03   -.91318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.3191
  Index      = 2.31015
  Normalizat = 0.90587
  Prefactor  = 0.623306
 **********
 **   18 **HESSE 
 **********

 FCN=   758.4910     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.319        218.80        .13118E-04   -1.4485    
   2  Index         2.3102        1.8296        .25004E-03   -.56803    
   3  Normalizat    .90587        .69491        .58020E-04   -.96254    
   4  Prefactor     .62331        .69531        .68853E-04   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31646e-10
Minuit parameter uncertainties:
  1  181.738
  2  1.89254
  3  0.701967
  4  0.705277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535999': 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) = 758.491034561
delta logL = 0.0158536992653

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.732e+01  1.817e+02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.310e+00  1.893e+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:  6.233e-01  7.053e-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.059e-01  7.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/535999/cmap_HighResolution_667267201_667526401_4FGL_J2234.2-4156_daily_bin1651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-02', job_status='DONE', photon_flux_upper_limit='4.64e-07', time_completed='2022-02-26 01:24:05.153849', job_id='535999', GAL2='0.62', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1645867445.15', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.59e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1651' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 26 01:24:05 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 535999: <4FGL_J2234.2-4156_daily_bin1651> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1651> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Feb 26 01:10:26 2022
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 26 01:14:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 26 01:14:11 2022
Terminated at Sat Feb 26 01:24:05 2022
Results reported at Sat Feb 26 01:24:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1651 338.568 -41.9411 667267201 667526401 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 :                                   400.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            819 sec.

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

