/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 21 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7393
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1263
RA = 338.568, Dec = -41.9411
tmin = 566697601, tmax = 566956801
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='361543', job_status='RUN', time_executed='2021-09-28 14:50:54.482125', time_epoch_executed='1632865854.48' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361543

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361543/ft1_4FGL_J2234.2-4156_daily_bin1263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361543/ft2_4FGL_J2234.2-4156_daily_bin1263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361543/ft1_4FGL_J2234.2-4156_daily_bin1263.fits outfile=/scratch/kocevski/361543/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1263.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=566697601.0 tmax=566956801.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.06
user 1.81
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361543/ft2_4FGL_J2234.2-4156_daily_bin1263.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/361543/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1263.fits evtable="EVENTS" outfile="/scratch/kocevski/361543/ft1_filtered_4FGL_J2234.2-4156_daily_bin1263.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/361543/ft1_filtered_4FGL_J2234.2-4156_daily_bin1263.fits" evtable="EVENTS" scfile=/scratch/kocevski/361543/ft2_4FGL_J2234.2-4156_daily_bin1263.fits sctable="SC_DATA" outfile=/scratch/kocevski/361543/ltcube_566697601_566956801_4FGL_J2234.2-4156_daily_bin1263.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/361543/ft2_4FGL_J2234.2-4156_daily_bin1263.fits
.....................!
real 13.03
user 12.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361543/ft1_filtered_4FGL_J2234.2-4156_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/361543/ft2_4FGL_J2234.2-4156_daily_bin1263.fits sctable="SC_DATA" expcube=/scratch/kocevski/361543/ltcube_566697601_566956801_4FGL_J2234.2-4156_daily_bin1263.fits outfile=/scratch/kocevski/361543/expmap_566697601_566956801_4FGL_J2234.2-4156_daily_bin1263.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/361543/ltcube_566697601_566956801_4FGL_J2234.2-4156_daily_bin1263.fits
.....................!
real 190.01
user 185.31
sys 4.33

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/361543/ft1_filtered_4FGL_J2234.2-4156_daily_bin1263.fits scfile=/scratch/kocevski/361543/ft2_4FGL_J2234.2-4156_daily_bin1263.fits outfile=/scratch/kocevski/361543/cmap_566697601_566956801_4FGL_J2234.2-4156_daily_bin1263.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/361543/ft1_filtered_4FGL_J2234.2-4156_daily_bin1263.fits scfile=/scratch/kocevski/361543/ft2_4FGL_J2234.2-4156_daily_bin1263.fits outfile=/scratch/kocevski/361543/cmap_HighResolution_566697601_566956801_4FGL_J2234.2-4156_daily_bin1263.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361543/ft1_filtered_4FGL_J2234.2-4156_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/361543/ft2_4FGL_J2234.2-4156_daily_bin1263.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361543/Model_4FGL_J2234.2-4156_daily_bin1263.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/361543/ft1_filtered_4FGL_J2234.2-4156_daily_bin1263.fits.....................!
real 48.35
user 46.95
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    16.012       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7829       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75174       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9426       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.780       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .88921       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.0796       1.0000         .10000E-03   10000.    
    26 'norm      '    9.6221       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    52.653       1.0000         .10000E-03   10000.    
    29 'norm      '    7.3749       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0618       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .90480       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=   6554.179     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4560 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.490       -.33710E-05** at limit **
   2  norm          16.011        7.2611        .60225E-07    .97332E-05
   3  Prefactor     3.7827        11.818        .46103E-06   -.61339E-04
   4  Prefactor     3.4574        11.456        .18176E-06   -.35773E-06
   5  Prefactor     .10000E-03    18.277       -.42097E-06** at limit **
   6  Prefactor     .10000E-03    3.7045        .52390E-07** at limit **
   7  Prefactor     .10000E-03    30.122        .72359E-05** at limit **
   8  norm          .10000E-03    1.8529        .38599E-08** at limit **
   9  Prefactor     9.2232        9.4332        .41796E-06   -.44621E-04
  10  Prefactor     .75597        2.9422        .33921E-06   -.19784E-04
  11  Prefactor     .10000E-03    22.464       -.33843E-05** at limit **
  12  Prefactor     .10000E-03    4.3484        .47614E-07** at limit **
  13  Prefactor     .10000E-03    12.439       -.38454E-05** at limit **
  14  Prefactor     2.9465        41.349        .56141E-05    .66160E-05
  15  Prefactor     .10000E-03    41.449       -.61272E-05** at limit **
  16  Prefactor     10.780        10.928        .34473E-06    .57543E-04
  17  Prefactor     .10000E-03    39.371        .11629E-05** at limit **
  18  Prefactor     .10000E-03    7.8331        .25955E-06** at limit **
  19  Prefactor     .10000E-03    1.6210       -.10226E-07** at limit **
  20  Prefactor     .10000E-03    28.514        .52146E-05** at limit **
  21  Prefactor     .10000E-03    20.402       -.32977E-05** at limit **
  22  Prefactor     .10000E-03    14.756        .48984E-05** at limit **
  23  norm          .88915        1.1182       -.33430E-07   -.55427E-03
  24  norm          .10000E-03    3.1754       -.28654E-07** at limit **
  25  norm          2.0792        2.8978        .35280E-06   -.73316E-04
  26  norm          9.6223        6.4411        .80278E-08    .29194E-04
  27  Prefactor     .10000E-03    2.3975       -.21554E-07** at limit **
  28  Prefactor     52.668        47.003        .15761E-04    .25824E-03
  29  norm          7.3781        6.4030       -.32559E-05    .74797E-03
  30  Prefactor     .10000E-03    13.155        .22980E-05** at limit **
  31  norm          .10000E-03    2.7527       -.11382E-05** at limit **
  32  Normalizat    1.0615        .18115       -.31508E-05    .19629E-03
  33  Prefactor     .90507        .16482        .11783E-05   -.84378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 16.0112
  Prefactor  = 3.78272
  Prefactor  = 3.45736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.22318
  Prefactor  = 0.755975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.94651
  Prefactor  = 0.0001
  Prefactor  = 10.78
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.889153
  norm       = 0.0001
  norm       = 2.07924
  norm       = 9.62225
  Prefactor  = 0.0001
  Prefactor  = 52.668
  norm       = 7.37814
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 1.06155
  Prefactor  = 0.905074
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.179     FROM HESSE     STATUS=OK           689 CALLS     5249 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.011        7.2590        .10009E-03   -1.4907    
   3  Prefactor     3.7827        11.778        .10378E-02   -1.5319    
   4  Prefactor     3.4574        11.331        .21745E-03   -1.5336    
   5  Prefactor     .10000E-03    18.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7225        .15216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.8534        .10763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2232        9.4763        .65990E-03   -1.5100    
  10  Prefactor     .75597        5.0661        .24983E-02   -1.5534    
  11  Prefactor     .10000E-03    22.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4821        .32943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9465        41.381        .23677E-03   -1.5365    
  15  Prefactor     .10000E-03    41.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.780        10.915        .12203E-03   -1.5051    
  17  Prefactor     .10000E-03    39.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.9453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6230        .10065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .88915        11.799        .25537E-02   -1.5519    
  24  norm          .10000E-03    3.2757        .28178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.0792        2.8880        .15283E-03   -1.5420    
  26  norm          9.6223        6.4415        .12919E-03   -1.5087    
  27  Prefactor     .10000E-03    2.4420        .12238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     52.668        47.098        .55273E-04   -1.4255    
  29  norm          7.3781        6.1843        .13238E-03   -1.5165    
  30  Prefactor     .10000E-03    13.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    24.701        .24154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0615        .20913        .23897E-03   -.90996    
  33  Prefactor     .90507        .19133        .24968E-03   -.95964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69921e-08
Minuit parameter uncertainties:
  1  5.86303e-06
  2  7.25937
  3  11.7849
  4  11.3381
  5  1.88499e-05
  6  7.33929e-06
  7  1.35197e-05
  8  4.88081e-07
  9  9.4778
  10  3.91422
  11  4.75839e-06
  12  1.60759e-05
  13  3.23356e-06
  14  22.1026
  15  0.000130191
  16  10.9171
  17  7.12031e-06
  18  2.23672e-05
  19  9.72961e-07
  20  2.74346e-05
  21  4.48353e-06
  22  1.03863e-05
  23  6.47924
  24  2.94201e-07
  25  2.88818
  26  6.44197
  27  2.96728e-06
  28  47.1308
  29  6.18479
  30  3.2344e-05
  31  0.000353459
  32  0.209289
  33  0.191475
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.758e-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:  9.051e-01  1.915e-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.062e+00  2.093e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361543/likelihoodResults_566697601_566956801_4FGL_J2234.2-4156_daily_bin1263.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) = 6554.17915595
delta logL = -0.000211711212614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6554.17894465
delta logL = -4.14219357481e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2295       1.0000          .0000       10.000    
     3 'Normalizat'    1.0615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90508       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=   6554.179     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2058        .90712E-02** at limit **
   2  Index         2.2113        5.1886        .50000        .74122E-05
   3  Normalizat    1.0615        .28063E-02    .39842E-01    .12087E-03
   4  Prefactor     .90508        .27440E-02    .45070E-01    .39986E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.21129
  Normalizat = 1.06154
  Prefactor  = 0.90508
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.179     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      263 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2113        5.6445        .50000       -.59166    
   3  Normalizat    1.0615        .85882E-02    .23897E-03   -.90996    
   4  Prefactor     .90508        .83959E-02    .24968E-03   -.95964    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.91983e-08
Minuit parameter uncertainties:
  1  0.000667509
  2  157.956
  3  0.00858817
  4  0.00839592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361543': 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) = 6554.1789445
delta logL = -2.60461092694e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.675e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.211e+00  1.580e+02  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:  9.051e-01  8.396e-03  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.062e+00  8.588e-03  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/361543/cmap_HighResolution_566697601_566956801_4FGL_J2234.2-4156_daily_bin1263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2021-09-28 15:06:36.984549', job_id='361543', GAL2='0.91', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632866796.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-2.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1263' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:06:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 361543: <4FGL_J2234.2-4156_daily_bin1263> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1263> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:23 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:50:25 2021
Terminated at Tue Sep 28 15:06:37 2021
Results reported at Tue Sep 28 15:06:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1263 338.568 -41.9411 566697601 566956801 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 :                                   942.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            974 sec.

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

