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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1289
RA = 338.568, Dec = -41.9411
tmin = 573436801, tmax = 573696001
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='361585', job_status='RUN', time_executed='2021-09-28 14:51:49.843748', time_epoch_executed='1632865909.84' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361585/ft1_4FGL_J2234.2-4156_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361585/ft2_4FGL_J2234.2-4156_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361585/ft1_4FGL_J2234.2-4156_daily_bin1289.fits outfile=/scratch/kocevski/361585/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1289.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=573436801.0 tmax=573696001.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 5.34
user 5.10
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361585/ft2_4FGL_J2234.2-4156_daily_bin1289.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/361585/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1289.fits evtable="EVENTS" outfile="/scratch/kocevski/361585/ft1_filtered_4FGL_J2234.2-4156_daily_bin1289.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/361585/ft1_filtered_4FGL_J2234.2-4156_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/361585/ft2_4FGL_J2234.2-4156_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/361585/ltcube_573436801_573696001_4FGL_J2234.2-4156_daily_bin1289.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/361585/ft2_4FGL_J2234.2-4156_daily_bin1289.fits
.....................!
real 11.40
user 11.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361585/ft1_filtered_4FGL_J2234.2-4156_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/361585/ft2_4FGL_J2234.2-4156_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/361585/ltcube_573436801_573696001_4FGL_J2234.2-4156_daily_bin1289.fits outfile=/scratch/kocevski/361585/expmap_573436801_573696001_4FGL_J2234.2-4156_daily_bin1289.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/361585/ltcube_573436801_573696001_4FGL_J2234.2-4156_daily_bin1289.fits
.....................!
real 191.70
user 187.23
sys 4.16

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/361585/ft1_filtered_4FGL_J2234.2-4156_daily_bin1289.fits scfile=/scratch/kocevski/361585/ft2_4FGL_J2234.2-4156_daily_bin1289.fits outfile=/scratch/kocevski/361585/cmap_573436801_573696001_4FGL_J2234.2-4156_daily_bin1289.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/361585/ft1_filtered_4FGL_J2234.2-4156_daily_bin1289.fits scfile=/scratch/kocevski/361585/ft2_4FGL_J2234.2-4156_daily_bin1289.fits outfile=/scratch/kocevski/361585/cmap_HighResolution_573436801_573696001_4FGL_J2234.2-4156_daily_bin1289.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/361585/ft1_filtered_4FGL_J2234.2-4156_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/361585/ft2_4FGL_J2234.2-4156_daily_bin1289.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361585/Model_4FGL_J2234.2-4156_daily_bin1289.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/361585/ft1_filtered_4FGL_J2234.2-4156_daily_bin1289.fits.....................!
real 35.47
user 34.21
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.835       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.445       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1121       1.0000         .10000E-03   10000.    
     5 'Prefactor '    103.08       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.369       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.278       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.074       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12530E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8754       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6212       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .80202       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    79.329       1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.837       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35611E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.9923       1.0000         .10000E-03   10000.    
    25 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    20.303       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.659       1.0000         .10000E-03   10000.    
    29 'norm      '    .10995E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    10.186       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .93756       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0160       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=   3829.336     FROM MIGRAD    STATUS=CONVERGED    921 CALLS     4629 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.836        53.708       -.35146E-06    .18394E-05
   2  norm          .10000E-03    4.5695        .63740E-07** at limit **
   3  Prefactor     10.442        15.456       -.34790E-06    .71383E-05
   4  Prefactor     9.1107        10.053        .15405E-06    .13970E-04
   5  Prefactor     103.07        57.220       -.48012E-06   -.23191E-05
   6  Prefactor     .10000E-03    5.5830        .51619E-06** at limit **
   7  Prefactor     25.405        77.393        .29705E-05    .13830E-05
   8  norm          .10000E-03    6.1627        .20960E-06** at limit **
   9  Prefactor     .10001E-03    8.9544       -.77439E-06** at limit **
  10  Prefactor     10.278        5.6523       -.10677E-06    .89407E-04
  11  Prefactor     .10000E-03    26.845       -.10292E-05** at limit **
  12  Prefactor     .10000E-03    2.6229        .34488E-07** at limit **
  13  Prefactor     25.072        26.534       -.23740E-06    .59181E-04
  14  Prefactor     .10000E-03    7.0107       -.95761E-07** at limit **
  15  Prefactor     .10009E-03    43.281       -.69158E-05** at limit **
  16  Prefactor     6.9054        14.101        .41926E-05    .73045E-04
  17  Prefactor     4.6168        420.03       -.69073E-05    .31362E-05
  18  Prefactor     .79879        19.137       -.63228E-06    .27433E-04
  19  Prefactor     .10000E-03    5.9180       -.16063E-06** at limit **
  20  Prefactor     79.317        58.743        .45972E-06    .42325E-04
  21  Prefactor     54.732        94.786       -.67394E-05   -.23252E-05
  22  Prefactor     .10024E-03    14.904       -.52931E-06** at limit **
  23  norm          .10000E-03    7.2895        .66788E-07** at limit **
  24  norm          3.9921        5.0151        .16628E-06    .32843E-04
  25  norm          .10000E-03    3.9424       -.17622E-06** at limit **
  26  norm          20.302        16.281       -.11820E-06    .23093E-04
  27  Prefactor     .10000E-03    5.3963       -.14164E-06** at limit **
  28  Prefactor     26.558        58.924       -.23550E-05    .34896E-04
  29  norm          .10000E-03    6.0474       -.71587E-06** at limit **
  30  Prefactor     .10000E-03    25.547        .11001E-05** at limit **
  31  norm          10.187        9.5486        .51914E-07    .65673E-04
  32  Normalizat    .93764        .27174        .40747E-05    .14780E-03
  33  Prefactor     1.0160        .23618       -.15967E-05    .29530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.8358
  norm       = 0.0001
  Prefactor  = 10.4424
  Prefactor  = 9.11066
  Prefactor  = 103.067
  Prefactor  = 0.0001
  Prefactor  = 25.4054
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 10.2777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0717
  Prefactor  = 0.0001
  Prefactor  = 0.000100089
  Prefactor  = 6.90539
  Prefactor  = 4.61682
  Prefactor  = 0.798789
  Prefactor  = 0.0001
  Prefactor  = 79.3169
  Prefactor  = 54.732
  Prefactor  = 0.000100241
  norm       = 0.0001
  norm       = 3.99207
  norm       = 0.0001
  norm       = 20.3024
  Prefactor  = 0.0001
  Prefactor  = 26.5575
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1866
  Normalizat = 0.937644
  Prefactor  = 1.01601
 **********
 **   18 **HESSE 
 **********

 FCN=   3829.336     FROM HESSE     STATUS=OK           703 CALLS     5332 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.836        53.596        .45230E-04   -1.3930    
   2  norm          .10000E-03    4.6401        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.442        15.449        .12398E-03   -1.5062    
   4  Prefactor     9.1107        10.041        .13277E-03   -1.5104    
   5  Prefactor     103.07        57.242        .39604E-04   -1.3674    
   6  Prefactor     .10000E-03    5.5968        .14240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.405        77.217        .79533E-04   -1.4699    
   8  norm          .10000E-03    6.1838        .14999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    47.640        .35395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.278        5.6605        .10388E-03   -1.5067    
  11  Prefactor     .10000E-03    26.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6289        .97843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.072        26.467        .79997E-04   -1.4706    
  14  Prefactor     .10000E-03    7.0116        .16004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10009E-03    57.909        .98776E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.9054        16.256        .15301E-03   -1.5182    
  17  Prefactor     4.6168        418.58        .18723E-03   -1.5278    
  18  Prefactor     .79879        109.47        .49930E-02   -1.5529    
  19  Prefactor     .10000E-03    5.9450        .14703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     79.317        58.843        .45090E-04   -1.3924    
  21  Prefactor     54.732        95.008        .54167E-04   -1.4227    
  22  Prefactor     .10024E-03    276.39        .45556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.2955        .16318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9921        5.0109        .15164E-03   -1.5308    
  25  norm          .10000E-03    3.9566        .11978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          20.302        16.280        .88890E-04   -1.4806    
  27  Prefactor     .10000E-03    5.5174        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     26.558        58.583        .77589E-04   -1.4677    
  29  norm          .10000E-03    6.0377        .14694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    26.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          10.187        9.5287        .12555E-03   -1.5070    
  32  Normalizat    .93764        .31158        .27565E-03   -.95150    
  33  Prefactor     1.0160        .27284        .24979E-03   -.92198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43132e-09
Minuit parameter uncertainties:
  1  53.6293
  2  6.14216e-06
  3  15.4547
  4  10.0433
  5  57.2724
  6  2.88041e-05
  7  77.5227
  8  6.31302e-06
  9  0.00123993
  10  5.66082
  11  4.33579e-05
  12  6.48057e-06
  13  26.4797
  14  1.14728e-06
  15  0.00455207
  16  16.2667
  17  88.5658
  18  18.7357
  19  1.24238e-05
  20  58.886
  21  95.2728
  22  0.0164094
  23  6.12033e-06
  24  5.01147
  25  2.38558e-05
  26  16.2839
  27  2.37735e-05
  28  58.7102
  29  6.99763e-05
  30  8.88298e-05
  31  9.53016
  32  0.312186
  33  0.273213
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.336e-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:  1.016e+00  2.732e-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.376e-01  3.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/361585/likelihoodResults_573436801_573696001_4FGL_J2234.2-4156_daily_bin1289.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) = 3829.3360809
delta logL = -0.000177136529601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3829.33590436
delta logL = -5.91222942603e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3333       1.0000          .0000       10.000    
     3 'Normalizat'    .93764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0160       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=   3829.336     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0821        .90712E-02** at limit **
   2  Index         2.3124        6.1544        .50000        .81996E-05
   3  Normalizat    .93765        .38402E-02    .45381E-01    .98367E-05
   4  Prefactor     1.0160        .36262E-02    .42562E-01    .47761E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31242
  Normalizat = 0.937646
  Prefactor  = 1.01601
 **********
 **   18 **HESSE 
 **********

 FCN=   3829.336     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3124        6.0158        .50000       -.56749    
   3  Normalizat    .93765        .13205E-01    .27564E-03   -.95150    
   4  Prefactor     1.0160        .12472E-01    .24979E-03   -.92198    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.826e-07
Minuit parameter uncertainties:
  1  0.000180301
  2  217.583
  3  0.0132049
  4  0.0124718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361585': 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) = 3829.33590423
delta logL = -4.58268004877e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.803e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.312e+00  2.176e+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:  1.016e+00  1.247e-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.376e-01  1.320e-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/361585/cmap_HighResolution_573436801_573696001_4FGL_J2234.2-4156_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-28 15:03:29.699089', job_id='361585', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632866609.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-4.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1289' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:03:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 361585: <4FGL_J2234.2-4156_daily_bin1289> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1289> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:27 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:28 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:28 2021
Terminated at Tue Sep 28 15:03:30 2021
Results reported at Tue Sep 28 15:03:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1289 338.568 -41.9411 573436801 573696001 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 :                                   699.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

