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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin967
RA = 338.568, Dec = -41.9411
tmin = 489974401, tmax = 490233601
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='359039', job_status='RUN', time_executed='2021-09-28 14:41:09.816897', time_epoch_executed='1632865269.82' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359039

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359039/ft1_4FGL_J2234.2-4156_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359039/ft2_4FGL_J2234.2-4156_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359039/ft1_4FGL_J2234.2-4156_daily_bin967.fits outfile=/scratch/kocevski/359039/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin967.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=489974401.0 tmax=490233601.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.72
user 3.52
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/359039/ft2_4FGL_J2234.2-4156_daily_bin967.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/359039/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin967.fits evtable="EVENTS" outfile="/scratch/kocevski/359039/ft1_filtered_4FGL_J2234.2-4156_daily_bin967.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/359039/ft1_filtered_4FGL_J2234.2-4156_daily_bin967.fits" evtable="EVENTS" scfile=/scratch/kocevski/359039/ft2_4FGL_J2234.2-4156_daily_bin967.fits sctable="SC_DATA" outfile=/scratch/kocevski/359039/ltcube_489974401_490233601_4FGL_J2234.2-4156_daily_bin967.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/359039/ft2_4FGL_J2234.2-4156_daily_bin967.fits
.....................!
real 11.67
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359039/ft1_filtered_4FGL_J2234.2-4156_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/359039/ft2_4FGL_J2234.2-4156_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/359039/ltcube_489974401_490233601_4FGL_J2234.2-4156_daily_bin967.fits outfile=/scratch/kocevski/359039/expmap_489974401_490233601_4FGL_J2234.2-4156_daily_bin967.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/359039/ltcube_489974401_490233601_4FGL_J2234.2-4156_daily_bin967.fits
.....................!
real 189.67
user 185.09
sys 4.28

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/359039/ft1_filtered_4FGL_J2234.2-4156_daily_bin967.fits scfile=/scratch/kocevski/359039/ft2_4FGL_J2234.2-4156_daily_bin967.fits outfile=/scratch/kocevski/359039/cmap_489974401_490233601_4FGL_J2234.2-4156_daily_bin967.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359039/ft1_filtered_4FGL_J2234.2-4156_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/359039/ft2_4FGL_J2234.2-4156_daily_bin967.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359039/Model_4FGL_J2234.2-4156_daily_bin967.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/359039/ft1_filtered_4FGL_J2234.2-4156_daily_bin967.fits.....................!
real 45.12
user 43.93
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.258       1.0000         .10000E-03   10000.    
     2 'norm      '    12.592       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1972       1.0000         .10000E-03   10000.    
     5 'Prefactor '    75.485       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2966       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0633       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55210E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4727       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.947       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11525E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .90397       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.189       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.749       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.6024       1.0000         .10000E-03   10000.    
    24 'norm      '    3.7565       1.0000         .10000E-03   10000.    
    25 'norm      '    18.189       1.0000         .10000E-03   10000.    
    26 'norm      '    12.420       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.7959       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96698       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .87673       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=   5743.643     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     4573 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.257        29.829        .15452E-06   -.27373E-05
   2  norm          12.592        5.4357        .15884E-07    .31748E-04
   3  Prefactor     .10000E-03    2.1372       -.10515E-06** at limit **
   4  Prefactor     6.1973        7.7399        .23602E-06    .45116E-04
   5  Prefactor     75.515        41.765        .76566E-06    .41215E-04
   6  Prefactor     .10000E-03    2.4490        .45276E-06** at limit **
   7  Prefactor     .10000E-03    25.965        .34975E-07** at limit **
   8  norm          3.2963        5.3957        .36085E-06    .94115E-04
   9  Prefactor     .10000E-03    5.9319       -.56493E-06** at limit **
  10  Prefactor     3.0637        2.9496        .11232E-06   -.12542E-03
  11  Prefactor     .10000E-03    17.656       -.13925E-06** at limit **
  12  Prefactor     .10003E-03    2.3436        .59578E-06** at limit **
  13  Prefactor     .10000E-03    9.2113        .70616E-07** at limit **
  14  Prefactor     4.4740        14.130        .63588E-06   -.16298E-04
  15  Prefactor     39.961        26.654        .70738E-06   -.36598E-04
  16  Prefactor     .10000E-03    4.6596        .13724E-06** at limit **
  17  Prefactor     .10000E-03    32.220       -.44536E-07** at limit **
  18  Prefactor     .10017E-03    7.6353        .25640E-05** at limit **
  19  Prefactor     .90442        8.0275        .54544E-05    .25887E-03
  20  Prefactor     21.159        33.176        .10011E-06   -.58957E-04
  21  Prefactor     11.843        104.97        .12439E-05   -.48858E-06
  22  Prefactor     .10000E-03    4.3330       -.14506E-06** at limit **
  23  norm          2.6019        12.313        .99989E-06    .35368E-04
  24  norm          3.7564        3.7459       -.91242E-07   -.46895E-04
  25  norm          18.189        9.3667       -.19777E-06    .24843E-04
  26  norm          12.420        11.859        .28963E-06   -.86159E-05
  27  Prefactor     .10000E-03    1.3874       -.61916E-07** at limit **
  28  Prefactor     .10000E-03    41.519       -.38957E-06** at limit **
  29  norm          4.7958        5.9404        .72975E-06    .11800E-03
  30  Prefactor     .10000E-03    3.9374       -.10902E-06** at limit **
  31  norm          .10000E-03    1.9098       -.99277E-07** at limit **
  32  Normalizat    .96676        .19821       -.50580E-05   -.31102E-03
  33  Prefactor     .87694        .18011        .36563E-05   -.40982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2568
  norm       = 12.5922
  Prefactor  = 0.0001
  Prefactor  = 6.19727
  Prefactor  = 75.5153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.29633
  Prefactor  = 0.0001
  Prefactor  = 3.0637
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 4.47396
  Prefactor  = 39.9608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100172
  Prefactor  = 0.904424
  Prefactor  = 21.1588
  Prefactor  = 11.8429
  Prefactor  = 0.0001
  norm       = 2.60192
  norm       = 3.75643
  norm       = 18.1887
  norm       = 12.42
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.79585
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.966758
  Prefactor  = 0.876944
 **********
 **   18 **HESSE 
 **********

 FCN=   5743.643     FROM HESSE     STATUS=OK           695 CALLS     5268 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.257        29.831        .75365E-04   -1.4644    
   2  norm          12.592        5.4396        .10777E-03   -1.4998    
   3  Prefactor     .10000E-03    2.1400        .10818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1973        7.7432        .16126E-03   -1.5210    
   5  Prefactor     75.515        41.765        .46215E-04   -1.3968    
   6  Prefactor     .10000E-03    2.4567        .11588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2963        5.3950        .21952E-03   -1.5345    
   9  Prefactor     .10000E-03    5.9930        .17993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0637        2.9434        .12235E-03   -1.5358    
  11  Prefactor     .10000E-03    17.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    20.823        .21763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.2336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4740        14.098        .19039E-03   -1.5285    
  15  Prefactor     39.961        26.448        .63419E-04   -1.4443    
  16  Prefactor     .10000E-03    4.6749        .15967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10017E-03    36.716        .35959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .90442        8.4921        .41413E-03   -1.5518    
  20  Prefactor     21.159        33.174        .87013E-04   -1.4788    
  21  Prefactor     11.843        104.16        .11687E-03   -1.5020    
  22  Prefactor     .10000E-03    4.3369        .15407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.6019        12.349        .25289E-03   -1.5385    
  24  norm          3.7564        3.7534        .14308E-03   -1.5320    
  25  norm          18.189        9.3936        .93911E-04   -1.4855    
  26  norm          12.420        11.856        .11366E-03   -1.5003    
  27  Prefactor     .10000E-03    1.3880        .87176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    41.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.7958        5.9484        .17268E-03   -1.5270    
  30  Prefactor     .10000E-03    3.9403        .14687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.9172        .10225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .96676        .21386        .24251E-03   -.94153    
  33  Prefactor     .87694        .19518        .24035E-03   -.96951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68983e-09
Minuit parameter uncertainties:
  1  29.847
  2  5.43986
  3  2.56536e-06
  4  7.74441
  5  41.7815
  6  1.45851e-05
  7  4.4536e-05
  8  5.39581
  9  9.92931e-06
  10  2.94352
  11  4.82603e-06
  12  0.00169388
  13  5.50994e-06
  14  14.1081
  15  26.4558
  16  2.53122e-06
  17  4.15842e-07
  18  0.00503052
  19  5.54346
  20  33.2033
  21  70.407
  22  2.42987e-06
  23  11.3403
  24  3.75365
  25  9.3944
  26  11.8586
  27  1.15779e-06
  28  6.9807e-05
  29  5.94914
  30  3.1352e-06
  31  3.34687e-06
  32  0.214047
  33  0.195334
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.826e-06  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:  8.769e-01  1.953e-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.668e-01  2.140e-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: 4.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359039/likelihoodResults_489974401_490233601_4FGL_J2234.2-4156_daily_bin967.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) = 5743.6433988
delta logL = -0.000269364420092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5743.64312943
delta logL = 6.48924469715e-09

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 'Index     '    1.9002       1.0000          .0000       10.000    
     3 'Normalizat'    .96677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87695       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=   5743.643     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      227 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1092.3        .90712E-02** at limit **
   2  Index         1.8977        5.1559        .50000        .10633E-05
   3  Normalizat    .96676        .37152E-01    .45749E-01    .10962E-04
   4  Prefactor     .87695        .35424E-01    .44711E-01    .11683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89768
  Normalizat = 0.966757
  Prefactor  = 0.876945
 **********
 **   18 **HESSE 
 **********

 FCN=   5743.643     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2165.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8977        7.5181        .50000       -.66933    
   3  Normalizat    .96676        .60696E-01    .24252E-03   -.94153    
   4  Prefactor     .87695        .57878E-01    .24035E-03   -.96951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37159e-10
Minuit parameter uncertainties:
  1  1.84336e-05
  2  45.0931
  3  0.0607003
  4  0.0578824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359039': 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) = 5743.64312941
delta logL = 2.6495399652e-08

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.843e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.898e+00  4.509e+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:  8.769e-01  5.788e-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.668e-01  6.070e-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/359039/cmap_HighResolution_489974401_490233601_4FGL_J2234.2-4156_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', job_status='DONE', photon_flux_upper_limit='4.45e-08', time_completed='2021-09-28 14:55:58.408444', job_id='359039', GAL2='0.88', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632866158.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='967' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:55:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 359039: <4FGL_J2234.2-4156_daily_bin967> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin967> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:52 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:54 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:40:54 2021
Terminated at Tue Sep 28 14:55:59 2021
Results reported at Tue Sep 28 14:55:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin967 338.568 -41.9411 489974401 490233601 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 :                                   887.00 sec.
    Max Memory :                                 1062 MB
    Average Memory :                             328.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

