/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 95 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_bin780
RA = 338.568, Dec = -41.9411
tmin = 441504001, tmax = 441763201
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='358767', job_status='RUN', time_executed='2021-09-28 14:42:16.139167', time_epoch_executed='1632865336.14' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358767/ft1_4FGL_J2234.2-4156_daily_bin780.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358767/ft2_4FGL_J2234.2-4156_daily_bin780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358767/ft1_4FGL_J2234.2-4156_daily_bin780.fits outfile=/scratch/kocevski/358767/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin780.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=441504001.0 tmax=441763201.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.39
user 3.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358767/ft2_4FGL_J2234.2-4156_daily_bin780.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/358767/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin780.fits evtable="EVENTS" outfile="/scratch/kocevski/358767/ft1_filtered_4FGL_J2234.2-4156_daily_bin780.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/358767/ft1_filtered_4FGL_J2234.2-4156_daily_bin780.fits" evtable="EVENTS" scfile=/scratch/kocevski/358767/ft2_4FGL_J2234.2-4156_daily_bin780.fits sctable="SC_DATA" outfile=/scratch/kocevski/358767/ltcube_441504001_441763201_4FGL_J2234.2-4156_daily_bin780.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/358767/ft2_4FGL_J2234.2-4156_daily_bin780.fits
.....................!
real 11.99
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358767/ft1_filtered_4FGL_J2234.2-4156_daily_bin780.fits evtable="EVENTS" scfile=/scratch/kocevski/358767/ft2_4FGL_J2234.2-4156_daily_bin780.fits sctable="SC_DATA" expcube=/scratch/kocevski/358767/ltcube_441504001_441763201_4FGL_J2234.2-4156_daily_bin780.fits outfile=/scratch/kocevski/358767/expmap_441504001_441763201_4FGL_J2234.2-4156_daily_bin780.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/358767/ltcube_441504001_441763201_4FGL_J2234.2-4156_daily_bin780.fits
.....................!
real 190.31
user 185.24
sys 4.64

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/358767/ft1_filtered_4FGL_J2234.2-4156_daily_bin780.fits scfile=/scratch/kocevski/358767/ft2_4FGL_J2234.2-4156_daily_bin780.fits outfile=/scratch/kocevski/358767/cmap_441504001_441763201_4FGL_J2234.2-4156_daily_bin780.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.0099       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.600       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.342       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.196       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0794       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6591       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    49.639       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    23.445       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.8489       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    5.8500       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    4.0542       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4417       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .42695       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=   5313.543     FROM MIGRAD    STATUS=CONVERGED    841 CALLS     4486 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.330        .29872E-05** at limit **
   2  norm          9.0094        5.2399       -.49231E-07   -.38760E-04
   3  Prefactor     16.599        14.822        .53197E-07   -.64340E-05
   4  Prefactor     23.695        15.173        .82979E-07   -.45779E-04
   5  Prefactor     .10000E-03    21.324        .38539E-05** at limit **
   6  Prefactor     .10000E-03    3.3433       -.96481E-06** at limit **
   7  Prefactor     .10000E-03    27.535       -.63467E-05** at limit **
   8  norm          .10000E-03    3.7309        .23216E-06** at limit **
   9  Prefactor     .10000E-03    7.4500       -.12166E-05** at limit **
  10  Prefactor     .10000E-03    1.8580       -.15451E-06** at limit **
  11  Prefactor     .10000E-03    17.850       -.22363E-05** at limit **
  12  Prefactor     3.3832        4.7708        .48405E-07   -.26530E-04
  13  Prefactor     .10000E-03    13.168       -.22954E-05** at limit **
  14  Prefactor     49.344        28.530        .11216E-05    .21906E-04
  15  Prefactor     .10000E-03    17.414       -.30022E-05** at limit **
  16  Prefactor     31.799        14.208        .12844E-06    .38438E-04
  17  Prefactor     11.196        68.574        .10509E-05    .82537E-06
  18  Prefactor     9.0812        14.354        .13271E-06   -.32041E-06
  19  Prefactor     2.6617        4.4621        .18875E-06   -.70036E-03
  20  Prefactor     .10000E-03    21.629        .40487E-05** at limit **
  21  Prefactor     49.644        62.615        .52490E-05    .61846E-05
  22  Prefactor     .10000E-03    4.3643       -.27706E-07** at limit **
  23  norm          23.445        13.570        .67603E-07   -.66121E-05
  24  norm          .10000E-03    3.2594        .75281E-06** at limit **
  25  norm          .10000E-03    1.6936        .71020E-08** at limit **
  26  norm          3.8488        7.3630        .11656E-06   -.43491E-03
  27  Prefactor     .10000E-03    1.7737       -.67754E-07** at limit **
  28  Prefactor     .10000E-03    12.117        .24207E-05** at limit **
  29  norm          5.8501        3.4775        .28159E-06   -.13220E-04
  30  Prefactor     .10000E-03    7.6647        .92548E-06** at limit **
  31  norm          4.0543        3.5752        .26610E-06   -.93750E-05
  32  Normalizat    1.4415        .19862       -.58482E-06    .60998E-04
  33  Prefactor     .42714        .17914       -.57384E-07   -.10701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.00938
  Prefactor  = 16.5989
  Prefactor  = 23.6955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.38317
  Prefactor  = 0.0001
  Prefactor  = 49.3439
  Prefactor  = 0.0001
  Prefactor  = 31.7993
  Prefactor  = 11.1963
  Prefactor  = 9.08119
  Prefactor  = 2.66174
  Prefactor  = 0.0001
  Prefactor  = 49.6435
  Prefactor  = 0.0001
  norm       = 23.4452
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.84878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.85009
  Prefactor  = 0.0001
  norm       = 4.05429
  Normalizat = 1.4415
  Prefactor  = 0.427135
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.543     FROM HESSE     STATUS=OK           689 CALLS     5175 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.0094        5.2398        .12265E-03   -1.5108    
   3  Prefactor     16.599        14.811        .98303E-04   -1.4893    
   4  Prefactor     23.695        15.176        .41144E-03   -1.4734    
   5  Prefactor     .10000E-03    21.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3586        .13008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.7449        .13751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.5568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8880        .96972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3832        4.7692        .18097E-03   -1.5340    
  13  Prefactor     .10000E-03    13.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.344        28.715        .57088E-04   -1.4302    
  15  Prefactor     .10000E-03    17.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.799        14.215        .71055E-04   -1.4580    
  17  Prefactor     11.196        68.499        .11973E-03   -1.5039    
  18  Prefactor     9.0812        14.394        .13301E-03   -1.5105    
  19  Prefactor     2.6617        8.7449        .12498E-02   -1.5382    
  20  Prefactor     .10000E-03    21.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     49.644        62.707        .56918E-04   -1.4298    
  22  Prefactor     .10000E-03    4.3706        .14873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.445        13.574        .82727E-04   -1.4739    
  24  norm          .10000E-03    3.3042        .12850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.6965        .92636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.8488        8.1337        .10285E-02   -1.5316    
  27  Prefactor     .10000E-03    1.7764        .94809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          5.8501        3.4773        .10136E-03   -1.5224    
  30  Prefactor     .10000E-03    7.6935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          4.0543        3.5728        .12556E-03   -1.5305    
  32  Normalizat    1.4415        .23217        .21260E-03   -.79436    
  33  Prefactor     .42714        .20272        .33610E-03   -1.1545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81631e-09
Minuit parameter uncertainties:
  1  1.973e-05
  2  5.24012
  3  14.8143
  4  15.1781
  5  2.1775e-05
  6  1.36577e-06
  7  2.67023e-05
  8  1.39811e-06
  9  4.50517e-06
  10  7.08145e-07
  11  1.29155e-05
  12  4.76974
  13  1.36392e-05
  14  28.7226
  15  7.46373e-06
  16  14.2167
  17  55.4818
  18  14.3991
  19  8.74911
  20  1.81673e-05
  21  62.7903
  22  5.93808e-07
  23  13.5761
  24  4.42564e-07
  25  1.03608e-06
  26  8.13607
  27  2.71571e-08
  28  1.88493e-06
  29  3.47739
  30  3.09576e-06
  31  3.57302
  32  0.232343
  33  0.203057
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.292e-05  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:  4.271e-01  2.031e-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:  1.442e+00  2.323e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358767/likelihoodResults_441504001_441763201_4FGL_J2234.2-4156_daily_bin780.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) = 5313.54337671
delta logL = -0.000265867961389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5313.54311091
delta logL = -6.6986103775e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9332       1.0000          .0000       10.000    
     3 'Normalizat'    1.4416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42711       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=   5313.543     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      206 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1738.3        .90712E-02** at limit **
   2  Index         1.9200        8.9135        .50000        .54817E-05
   3  Normalizat    1.4415        .53471E-01    .48092E-01    .23230E-05
   4  Prefactor     .42714        .48798E-01    .75888E-01    .37121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91996
  Normalizat = 1.4415
  Prefactor  = 0.427136
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.543     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6449.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9200        5.8896        .50000       -.66367    
   3  Normalizat    1.4415        .86881E-01    .21260E-03   -.79436    
   4  Prefactor     .42714        .79090E-01    .33610E-03   -1.1545    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.46111e-09
Minuit parameter uncertainties:
  1  0.000291517
  2  52.1315
  3  0.0868897
  4  0.0791098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358767': 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) = 5313.54311073
delta logL = 1.08250787889e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.915e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.920e+00  5.213e+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:  4.271e-01  7.911e-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:  1.441e+00  8.689e-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/358767/cmap_HighResolution_441504001_441763201_4FGL_J2234.2-4156_daily_bin780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='4.97e-08', time_completed='2021-09-28 14:56:05.257293', job_id='358767', GAL2='0.43', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1632866165.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='1.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='780' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:56:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 358767: <4FGL_J2234.2-4156_daily_bin780> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin780> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:31 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:33 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:33 2021
Terminated at Tue Sep 28 14:56:05 2021
Results reported at Tue Sep 28 14:56:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin780 338.568 -41.9411 441504001 441763201 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 :                                   829.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

