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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1228
RA = 338.568, Dec = -41.9411
tmin = 557625601, tmax = 557884801
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='361487', job_status='RUN', time_executed='2021-09-28 14:51:43.248086', time_epoch_executed='1632865903.25' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361487

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361487/ft1_4FGL_J2234.2-4156_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361487/ft2_4FGL_J2234.2-4156_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361487/ft1_4FGL_J2234.2-4156_daily_bin1228.fits outfile=/scratch/kocevski/361487/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1228.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=557625601.0 tmax=557884801.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.44
user 3.18
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361487/ft1_filtered_4FGL_J2234.2-4156_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/361487/ft2_4FGL_J2234.2-4156_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/361487/ltcube_557625601_557884801_4FGL_J2234.2-4156_daily_bin1228.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/361487/ft2_4FGL_J2234.2-4156_daily_bin1228.fits
.....................!
real 12.46
user 12.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361487/ft1_filtered_4FGL_J2234.2-4156_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/361487/ft2_4FGL_J2234.2-4156_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/361487/ltcube_557625601_557884801_4FGL_J2234.2-4156_daily_bin1228.fits outfile=/scratch/kocevski/361487/expmap_557625601_557884801_4FGL_J2234.2-4156_daily_bin1228.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/361487/ltcube_557625601_557884801_4FGL_J2234.2-4156_daily_bin1228.fits
.....................!
real 192.19
user 186.52
sys 5.29

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361487/ft1_filtered_4FGL_J2234.2-4156_daily_bin1228.fits scfile=/scratch/kocevski/361487/ft2_4FGL_J2234.2-4156_daily_bin1228.fits outfile=/scratch/kocevski/361487/cmap_HighResolution_557625601_557884801_4FGL_J2234.2-4156_daily_bin1228.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361487/ft1_filtered_4FGL_J2234.2-4156_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/361487/ft2_4FGL_J2234.2-4156_daily_bin1228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361487/Model_4FGL_J2234.2-4156_daily_bin1228.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/361487/ft1_filtered_4FGL_J2234.2-4156_daily_bin1228.fits...!
real 13.74
user 12.46
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/361487/ft1_filtered_4FGL_J2234.2-4156_daily_bin1228.fits', '/scratch/kocevski/361487/ft2_4FGL_J2234.2-4156_daily_bin1228.fits', expMap='/scratch/kocevski/361487/expmap_557625601_557884801_4FGL_J2234.2-4156_daily_bin1228.fits', expCube='/scratch/kocevski/361487/ltcube_557625601_557884801_4FGL_J2234.2-4156_daily_bin1228.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/361487/Model_4FGL_J2234.2-4156_daily_bin1228.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/361487/ft1_filtered_4FGL_J2234.2-4156_daily_bin1228.fits
Spacecraft file(s): /scratch/kocevski/361487/ft2_4FGL_J2234.2-4156_daily_bin1228.fits
Exposure map: /scratch/kocevski/361487/expmap_557625601_557884801_4FGL_J2234.2-4156_daily_bin1228.fits
Exposure cube: /scratch/kocevski/361487/ltcube_557625601_557884801_4FGL_J2234.2-4156_daily_bin1228.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/361487/Model_4FGL_J2234.2-4156_daily_bin1228.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 40.2984789814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 38.1945899449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52665E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .24930       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17936       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25824E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7021       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6523       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2837       1.0000         .10000E-03   10000.    
     8 'norm      '    .23429       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2397       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4375       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3312       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.813       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9095       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7682       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40982E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    131.05       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8494       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3251       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7996       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8139       1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.627       1.0000         .10000E-03   10000.    
    23 'norm      '    118.46       1.0000         .10000E-03   10000.    
    24 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .15618       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11314E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .88866E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .28670E-02   1.0000         .10000E-03   10000.    
    31 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .40001E-08   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   36.76164     FROM MIGRAD    STATUS=CONVERGED    506 CALLS      815 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    392.03        .95650E-02** at limit **
   2  norm          .10001E-03    259.79        .10200E-01** at limit **
   3  Prefactor     .10000E-03    309.41        .98830E-02** at limit **
   4  Prefactor     .10001E-03    746.38        .91514E-02** at limit **
   5  Prefactor     12.311        2292.8        .38749E-02   -.27613E-03
   6  Prefactor    10000.0        6076.2        .82104E-02   -.36657E-04
   7  Prefactor     14.740        2291.7        .37155E-02   -.38541E-03
   8  norm          .10002E-03    240.73        .10133E-01** at limit **
   9  Prefactor     1.2397        1.1212         .0000         .0000    
  10  Prefactor    10000.0        .46398E-01    .94993E-05   -.68344E-03
  11  Prefactor     4.3312        1.0068         .0000         .0000    
  12  Prefactor     1017.0        9.2063        .10954E-05    .12004E-02
  13  Prefactor     8.9095        1.0016         .0000         .0000    
  14  Prefactor     5.7682        1.0038         .0000         .0000    
  15  Prefactor     .10000E-03    .23678       -.32122E-05** at limit **
  16  Prefactor     16.495        .35683        .92607E-05   -.12569E-01
  17  Prefactor     .12016E-02    .66106E-01   -.48992E-04** at limit **
  18  Prefactor     4.2114        1.0072         .0000         .0000    
  19  Prefactor     1.2747        .45044       -.14357E-03   -.67593E-03
  20  Prefactor     .10001E-03    .15174        .42015E-06** at limit **
  21  Prefactor     6.8139        1.0027         .0000         .0000    
  22  Prefactor     39.765        .92386       -.14447E-05   -.85000E-04
  23  norm          .12611E-03    .21358E-02   -.56911E-05** at limit **
  24  norm          .10000E-03    .20571        .11455E-06** at limit **
  25  norm          .10000E-03    .20571       -.12394E-05** at limit **
  26  norm          .10000E-03    .23891        .76571E-06** at limit **
  27  Prefactor     .10000E-03    .20571       -.91034E-06** at limit **
  28  Prefactor     .10000E-03    .20911        .12569E-05** at limit **
  29  norm          .10000E-03    .20571        .13439E-06** at limit **
  30  Prefactor     .10000E-03    .24693       -.15474E-05** at limit **
  31  norm          .10000E-03    .20571        .15270E-05** at limit **
  32  Normalizat    .10000E-01    .25505        .32624E-05** at limit **
  33  Prefactor     .59952E-13    .25504        .32748E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  norm       = 0.000100015
  Prefactor  = 0.000100002
  Prefactor  = 0.000100013
  Prefactor  = 12.3109
  Prefactor  = 10000
  Prefactor  = 14.7397
  norm       = 0.000100021
  Prefactor  = 1.2397
  Prefactor  = 9999.99
  Prefactor  = 4.33125
  Prefactor  = 1016.97
  Prefactor  = 8.90951
  Prefactor  = 5.76823
  Prefactor  = 0.000100002
  Prefactor  = 16.4948
  Prefactor  = 0.00120159
  Prefactor  = 4.21144
  Prefactor  = 1.2747
  Prefactor  = 0.000100015
  Prefactor  = 6.81391
  Prefactor  = 39.7654
  norm       = 0.000126109
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 5.9952e-14
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   36.76164     FROM HESSE     STATUS=FAILED        25 CALLS      840 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    392.03        .95650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    259.79        .10200E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    309.41        .98830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    746.38        .91514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.311        2292.8        .38749E-02   -1.5006    
   6  Prefactor    10000.0        6076.2        .82104E-02    1.5698    
   7  Prefactor     14.740        2291.7        .37155E-02   -1.4940    
   8  norm          .10002E-03    240.73        .10133E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     583.01        581.52         .0000       -1.5485    
  10  Prefactor    10000.0        .46398E-01    .94993E-05    1.5688    
  11  Prefactor     4.3312        1.0068         .0000       -1.5292    
  12  Prefactor     1017.0        9.2063        .10954E-05   -.92166    
  13  Prefactor     8.9095        1.0016         .0000       -1.5111    
  14  Prefactor     5.7682        1.0038         .0000       -1.5228    
  15  Prefactor     .10000E-03    .23678       -.32122E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.495        .35683        .92607E-05   -1.4895    
  17  Prefactor     .12016E-02    .66106E-01   -.48992E-04   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2114        1.0072         .0000       -1.5298    
  19  Prefactor     1.2747        .45044       -.14357E-03   -1.5934    
  20  Prefactor     .10001E-03    .15174        .42015E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.8139        1.0027         .0000       -1.5186    
  22  Prefactor     39.765        .92386       -.14447E-05   -1.4446    
  23  norm          .12611E-03    .21358E-02   -.56911E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .20571        .11455E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .20571       -.12394E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .23891        .76571E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .20571       -.91034E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .20911        .12569E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .20571        .13439E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .24693       -.15474E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    .20571        .15270E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .25505        .32624E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .59952E-13    .25504        .32748E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.15253e-10
Minuit parameter uncertainties:
  1  0.00740699
  2  0.00391596
  3  0.0016731
  4  0.00639019
  5  350.652
  6  27.5543
  7  383.638
  8  0.00446535
  9  1.1212
  10  0.0424076
  11  1.00682
  12  9.20636
  13  1.00158
  14  1.00381
  15  4.65112e-05
  16  0.356829
  17  0.0170671
  18  1.00723
  19  0.450438
  20  9.52103e-05
  21  1.00272
  22  0.92386
  23  0.000472285
  24  1.29508e-06
  25  3.71825e-08
  26  9.63176e-06
  27  1.26097e-06
  28  3.60153e-05
  29  2.29092e-06
  30  3.32387e-06
  31  2.3035e-06
  32  1.04824e-07
  33  2.48528e-07
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 36.7616362092

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.331e+00  1.007e+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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  5.995e-14  2.485e-07  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.000e-02  1.048e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.50e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361487/likelihoodResults_557625601_557884801_4FGL_J2234.2-4156_daily_bin1228.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): 101
logL (Free Index) = 36.7629809466
delta logL = -0.00134473739567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 36.7629809466
delta logL = -0.00134473739567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    1.9922       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   36.76298     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.9922        1.0204        .25834         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 1.99223
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   36.76298     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .42513        1.6669        .25834       -.64545    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.03184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361487': 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): 101
logL (Free Index) = 36.7629809466
delta logL = -0.00134473739567

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.448e-07  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/361487/cmap_HighResolution_557625601_557884801_4FGL_J2234.2-4156_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.50e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-28 14:57:06.059804', job_id='361487', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632866226.06', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-1.34e-03', ts2='0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1228' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:57:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 361487: <4FGL_J2234.2-4156_daily_bin1228> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1228> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:18 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:20 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:20 2021
Terminated at Tue Sep 28 14:57:06 2021
Results reported at Tue Sep 28 14:57:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1228 338.568 -41.9411 557625601 557884801 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 :                                   322.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             223.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   406 sec.
    Turnaround time :                            408 sec.

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

