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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1642
RA = 338.568, Dec = -41.9411
tmin = 664934401, tmax = 665193601
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='445070', job_status='RUN', time_executed='2022-01-30 00:38:43.136971', time_epoch_executed='1643531923.14' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445070

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445070/ft1_4FGL_J2234.2-4156_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445070/ft2_4FGL_J2234.2-4156_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445070/ft1_4FGL_J2234.2-4156_daily_bin1642.fits outfile=/scratch/kocevski/445070/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1642.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=664934401.0 tmax=665193601.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.61
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/445070/ft2_4FGL_J2234.2-4156_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/445070/ltcube_664934401_665193601_4FGL_J2234.2-4156_daily_bin1642.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/445070/ft2_4FGL_J2234.2-4156_daily_bin1642.fits
.....................!
real 12.05
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445070/ft2_4FGL_J2234.2-4156_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/445070/ltcube_664934401_665193601_4FGL_J2234.2-4156_daily_bin1642.fits outfile=/scratch/kocevski/445070/expmap_664934401_665193601_4FGL_J2234.2-4156_daily_bin1642.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/445070/ltcube_664934401_665193601_4FGL_J2234.2-4156_daily_bin1642.fits
.....................!
real 191.46
user 186.26
sys 4.86

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/445070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1642.fits scfile=/scratch/kocevski/445070/ft2_4FGL_J2234.2-4156_daily_bin1642.fits outfile=/scratch/kocevski/445070/cmap_664934401_665193601_4FGL_J2234.2-4156_daily_bin1642.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1642.fits scfile=/scratch/kocevski/445070/ft2_4FGL_J2234.2-4156_daily_bin1642.fits outfile=/scratch/kocevski/445070/cmap_HighResolution_664934401_665193601_4FGL_J2234.2-4156_daily_bin1642.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/445070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445070/ft2_4FGL_J2234.2-4156_daily_bin1642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445070/Model_4FGL_J2234.2-4156_daily_bin1642.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/445070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1642.fits.....................!
real 37.03
user 35.79
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.235       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31244E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    153.18       1.0000         .10000E-03   10000.    
     8 'norm      '    6.9791       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8607       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5075       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3174       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.615       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.286       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21288E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.172       1.0000         .10000E-03   10000.    
    23 'norm      '    3.6203       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.860       1.0000         .10000E-03   10000.    
    29 'norm      '    3.2071       1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.702       1.0000         .10000E-03   10000.    
    31 'norm      '    1.0663       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .91225       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0838       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=   4389.564     FROM MIGRAD    STATUS=CONVERGED    877 CALLS     4641 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.440       -.65349E-07** at limit **
   2  norm          3.2762        3.8414        .87161E-07    .41043E-04
   3  Prefactor     .10000E-03    8.2556        .52617E-07** at limit **
   4  Prefactor     .10000E-03    2.6365        .16256E-07** at limit **
   5  Prefactor     34.214        46.192        .15628E-05    .42131E-03
   6  Prefactor     .10016E-03    37.258       -.11453E-04** at limit **
   7  Prefactor     153.10        112.86        .61917E-05    .52629E-03
   8  norm          6.9756        6.6248       -.16064E-07    .60706E-04
   9  Prefactor     1.8637        14.882        .47031E-06    .46565E-04
  10  Prefactor     8.5081        6.6476        .43034E-06    .90205E-03
  11  Prefactor     .10000E-03    22.152       -.54238E-06** at limit **
  12  Prefactor     4.3170        9.0367        .86071E-07    .33186E-03
  13  Prefactor     44.639        30.680        .15221E-06   -.18826E-04
  14  Prefactor     .10000E-03    17.436        .34296E-06** at limit **
  15  Prefactor     .10000E-03    25.261        .63064E-06** at limit **
  16  Prefactor     .10000E-03    2.9521        .14569E-07** at limit **
  17  Prefactor     .10000E-03    43.633       -.45629E-07** at limit **
  18  Prefactor     .10000E-03    23.922        .19207E-06** at limit **
  19  Prefactor     .10000E-03    5.1387        .17376E-06** at limit **
  20  Prefactor     36.301        60.028       -.71785E-06    .25089E-04
  21  Prefactor     .10000E-03    276.14        .70034E-06** at limit **
  22  Prefactor     20.190        17.469        .31776E-06   -.28215E-04
  23  norm          3.6255        14.350        .19722E-05    .26371E-03
  24  norm          .10000E-03    3.2056       -.14386E-07** at limit **
  25  norm          .10000E-03    2.2323       -.18586E-07** at limit **
  26  norm          .10000E-03    5.3939        .24421E-07** at limit **
  27  Prefactor     .10000E-03    8.9141        .21530E-06** at limit **
  28  Prefactor     14.876        27.281        .49772E-06   -.47600E-05
  29  norm          3.2066        3.4180       -.85549E-08   -.12991E-05
  30  Prefactor     12.698        16.035       -.20396E-06   -.31654E-04
  31  norm          1.0667        3.5936        .15038E-07    .29105E-04
  32  Normalizat    .91212        .24109       -.56717E-06    .53857E-03
  33  Prefactor     1.0836        .21211       -.62115E-07    .56068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.27617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2136
  Prefactor  = 0.00010016
  Prefactor  = 153.1
  norm       = 6.97563
  Prefactor  = 1.86368
  Prefactor  = 8.50806
  Prefactor  = 0.0001
  Prefactor  = 4.31701
  Prefactor  = 44.6385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.3011
  Prefactor  = 0.0001
  Prefactor  = 20.1905
  norm       = 3.62554
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8762
  norm       = 3.20663
  Prefactor  = 12.6984
  norm       = 1.06675
  Normalizat = 0.912117
  Prefactor  = 1.08364
 **********
 **   18 **HESSE 
 **********

 FCN=   4389.564     FROM HESSE     STATUS=OK           687 CALLS     5328 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2762        3.8378        .13614E-03   -1.5346    
   3  Prefactor     .10000E-03    8.3380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6378        .10506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.214        46.571        .68489E-04   -1.4537    
   6  Prefactor     .10016E-03    50.106        .39433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     153.10        123.03        .16285E-03   -1.3227    
   8  norm          6.9756        6.6289        .15186E-03   -1.5180    
   9  Prefactor     1.8637        14.800        .30548E-03   -1.5435    
  10  Prefactor     8.5081        6.7642        .68718E-03   -1.5125    
  11  Prefactor     .10000E-03    22.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3170        9.0107        .19388E-03   -1.5292    
  13  Prefactor     44.639        30.619        .60023E-04   -1.4371    
  14  Prefactor     .10000E-03    17.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9537        .11117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2034        .14666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.301        59.908        .66531E-04   -1.4502    
  21  Prefactor     .10000E-03    288.83        .40344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.190        17.446        .44589E-03   -1.4809    
  23  norm          3.6255        15.066        .10617E-02   -1.5327    
  24  norm          .10000E-03    3.2098        .11585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.2336        .96613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.4304        .15028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.9334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.876        27.188        .10390E-03   -1.4936    
  29  norm          3.2066        3.4089        .11989E-03   -1.5350    
  30  Prefactor     12.698        15.930        .11239E-03   -1.4995    
  31  norm          1.0667        3.4979        .22190E-03   -1.5501    
  32  Normalizat    .91212        .27806        .27367E-03   -.96036    
  33  Prefactor     1.0836        .24560        .23862E-03   -.89991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64018e-09
Minuit parameter uncertainties:
  1  6.82764e-06
  2  3.83811
  3  2.62512e-05
  4  2.10061e-06
  5  46.6205
  6  0.00567563
  7  123.233
  8  6.6296
  9  10.5071
  10  6.76479
  11  0.000127046
  12  9.01351
  13  30.6301
  14  5.2663e-06
  15  3.35643e-05
  16  1.99221e-06
  17  3.66116e-05
  18  6.51924e-05
  19  2.46344e-05
  20  60.007
  21  0.000458944
  22  17.4505
  23  14.7878
  24  1.81158e-06
  25  1.79476e-06
  26  4.62892e-06
  27  2.08889e-05
  28  27.2103
  29  3.4091
  30  15.9354
  31  3.49853
  32  0.278499
  33  0.245854
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.270e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.084e+00  2.459e-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.121e-01  2.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/445070/likelihoodResults_664934401_665193601_4FGL_J2234.2-4156_daily_bin1642.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) = 4389.5639813
delta logL = -0.00021551394093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4389.56376589
delta logL = -1.06914740172e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10649E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9074       1.0000          .0000       10.000    
     3 'Normalizat'    .91212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0836       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=   4389.564     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1001.6        .90712E-02** at limit **
   2  Index         1.9020        5.7786        .50000        .18448E-05
   3  Normalizat    .91211        .38810E-01    .45056E-01    .73030E-05
   4  Prefactor     1.0836        .36744E-01    .38244E-01    .68262E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90198
  Normalizat = 0.912114
  Prefactor  = 1.08364
 **********
 **   18 **HESSE 
 **********

 FCN=   4389.564     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6261.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9020        8.2808        .50000       -.66824    
   3  Normalizat    .91211        .72402E-01    .27367E-03   -.96036    
   4  Prefactor     1.0836        .68576E-01    .23862E-03   -.89991    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.24364e-11
Minuit parameter uncertainties:
  1  0.000572029
  2  43.6919
  3  0.0724095
  4  0.0685817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445070': 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) = 4389.56376574
delta logL = 4.41650627181e-08

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.720e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.902e+00  4.369e+01  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.084e+00  6.858e-02  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.121e-01  7.241e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2022-01-30 00:50:52.667956', job_id='445070', GAL2='1.08', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1643532652.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1642' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 00:50:52 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 445070: <4FGL_J2234.2-4156_daily_bin1642> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1642> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan 30 00:35:53 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:35:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:35:54 2022
Terminated at Sun Jan 30 00:50:53 2022
Results reported at Sun Jan 30 00:50:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1642 338.568 -41.9411 664934401 665193601 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 :                                   731.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

