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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1395
RA = 338.568, Dec = -41.9411
tmin = 600912001, tmax = 601171201
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='364530', job_status='RUN', time_executed='2021-09-28 15:00:34.163175', time_epoch_executed='1632866434.16' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364530

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364530/ft1_4FGL_J2234.2-4156_daily_bin1395.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364530/ft2_4FGL_J2234.2-4156_daily_bin1395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364530/ft1_4FGL_J2234.2-4156_daily_bin1395.fits outfile=/scratch/kocevski/364530/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1395.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=600912001.0 tmax=601171201.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.58
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364530/ft1_filtered_4FGL_J2234.2-4156_daily_bin1395.fits" evtable="EVENTS" scfile=/scratch/kocevski/364530/ft2_4FGL_J2234.2-4156_daily_bin1395.fits sctable="SC_DATA" outfile=/scratch/kocevski/364530/ltcube_600912001_601171201_4FGL_J2234.2-4156_daily_bin1395.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/364530/ft2_4FGL_J2234.2-4156_daily_bin1395.fits
.....................!
real 11.94
user 11.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364530/ft1_filtered_4FGL_J2234.2-4156_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/364530/ft2_4FGL_J2234.2-4156_daily_bin1395.fits sctable="SC_DATA" expcube=/scratch/kocevski/364530/ltcube_600912001_601171201_4FGL_J2234.2-4156_daily_bin1395.fits outfile=/scratch/kocevski/364530/expmap_600912001_601171201_4FGL_J2234.2-4156_daily_bin1395.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/364530/ltcube_600912001_601171201_4FGL_J2234.2-4156_daily_bin1395.fits
.....................!
real 191.15
user 185.63
sys 4.71

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/364530/ft1_filtered_4FGL_J2234.2-4156_daily_bin1395.fits scfile=/scratch/kocevski/364530/ft2_4FGL_J2234.2-4156_daily_bin1395.fits outfile=/scratch/kocevski/364530/cmap_600912001_601171201_4FGL_J2234.2-4156_daily_bin1395.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364530/ft1_filtered_4FGL_J2234.2-4156_daily_bin1395.fits scfile=/scratch/kocevski/364530/ft2_4FGL_J2234.2-4156_daily_bin1395.fits outfile=/scratch/kocevski/364530/cmap_HighResolution_600912001_601171201_4FGL_J2234.2-4156_daily_bin1395.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.898       1.0000         .10000E-03   10000.    
     2 'norm      '    4.8613       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6011       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    83.940       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.198       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27560E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .88460       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.357       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.761       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.586       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.300       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7355       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9335       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .40955E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    11.894       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0318       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .80626       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=   4245.445     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     4595 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.940        54.760        .49477E-04    .16726E-04
   2  norm          4.8594        6.3844       -.37263E-05   -.37746E-03
   3  Prefactor     .10000E-03    7.4226       -.38786E-06** at limit **
   4  Prefactor     9.6000        17.467       -.40313E-05   -.84309E-04
   5  Prefactor     24.192        48.106       -.79472E-06    .17467E-04
   6  Prefactor     .10001E-03    14.929       -.56097E-05** at limit **
   7  Prefactor     83.926        118.55       -.12025E-04    .80500E-04
   8  norm          .10000E-03    2.2592       -.34117E-07** at limit **
   9  Prefactor     10.198        14.513        .10480E-05   -.94138E-04
  10  Prefactor     .10001E-03    3.0066        .62828E-06** at limit **
  11  Prefactor     .10000E-03    105.70        .22880E-04** at limit **
  12  Prefactor     .88529        4.9119       -.10341E-07   -.74592E-03
  13  Prefactor     27.357        28.005       -.64508E-06   -.45235E-04
  14  Prefactor     36.761        29.936       -.90340E-07   -.10988E-03
  15  Prefactor     .10000E-03    10.171       -.41755E-05** at limit **
  16  Prefactor     .10000E-03    6.0038        .13675E-06** at limit **
  17  Prefactor     .10000E-03    29.253       -.36801E-06** at limit **
  18  Prefactor     58.582        24.873       -.99623E-06   -.89028E-04
  19  Prefactor     10.301        9.8379       -.40173E-06   -.83823E-03
  20  Prefactor     .10000E-03    16.938        .53612E-05** at limit **
  21  Prefactor     7.8012        115.13        .15121E-03    .64197E-05
  22  Prefactor     .10000E-03    8.1486        .14580E-05** at limit **
  23  norm          3.9332        14.064        .74520E-06   -.94270E-04
  24  norm          .10000E-03    3.9313        .66642E-07** at limit **
  25  norm          .10000E-03    2.0302       -.15017E-06** at limit **
  26  norm          .10000E-03    6.5257       -.24155E-06** at limit **
  27  Prefactor     .10000E-03    2.7325       -.17772E-07** at limit **
  28  Prefactor     .10000E-03    73.797       -.10616E-04** at limit **
  29  norm          11.895        5.7476        .37760E-06    .12942E-03
  30  Prefactor     .10000E-03    11.315        .60675E-05** at limit **
  31  norm          .10000E-03    2.6648       -.21597E-07** at limit **
  32  Normalizat    1.0319        .24005       -.65190E-05   -.48004E-04
  33  Prefactor     .80625        .20368        .25111E-06   -.25370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9403
  norm       = 4.85936
  Prefactor  = 0.0001
  Prefactor  = 9.60002
  Prefactor  = 24.1916
  Prefactor  = 0.000100007
  Prefactor  = 83.9264
  norm       = 0.0001
  Prefactor  = 10.1975
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.885291
  Prefactor  = 27.3568
  Prefactor  = 36.7608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.5823
  Prefactor  = 10.3008
  Prefactor  = 0.0001
  Prefactor  = 7.80116
  Prefactor  = 0.0001
  norm       = 3.93324
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8948
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.03186
  Prefactor  = 0.806249
 **********
 **   18 **HESSE 
 **********

 FCN=   4245.445     FROM HESSE     STATUS=OK           695 CALLS     5290 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.940        54.630        .78717E-04   -1.4689    
   2  norm          4.8594        6.3608        .16952E-03   -1.5267    
   3  Prefactor     .10000E-03    7.4423        .17318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.6000        17.388        .12933E-03   -1.5088    
   5  Prefactor     24.192        48.133        .81436E-04   -1.4724    
   6  Prefactor     .10001E-03    14.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     83.926        117.34        .43844E-04   -1.3873    
   8  norm          .10000E-03    2.2594        .95648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.198        14.539        .12547E-03   -1.5069    
  10  Prefactor     .10001E-03    12.740        .21216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    106.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .88529        4.8373        .27483E-03   -1.5520    
  13  Prefactor     27.357        27.987        .76594E-04   -1.4661    
  14  Prefactor     36.761        29.936        .66101E-04   -1.4495    
  15  Prefactor     .10000E-03    10.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.0477        .15592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     58.582        24.906        .52415E-04   -1.4176    
  19  Prefactor     10.301        9.8529        .62424E-03   -1.5066    
  20  Prefactor     .10000E-03    16.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.8012        113.96        .14418E-03   -1.5149    
  22  Prefactor     .10000E-03    8.1697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9332        14.048        .20340E-03   -1.5311    
  24  norm          .10000E-03    3.9512        .12618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.0305        .90652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.7016        .58761E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.7389        .10518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    74.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          11.895        5.7351        .10454E-03   -1.5018    
  30  Prefactor     .10000E-03    11.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.6710        .10379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0319        .27492        .25110E-03   -.91971    
  33  Prefactor     .80625        .23563        .25584E-03   -.99498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06764e-09
Minuit parameter uncertainties:
  1  54.7351
  2  6.36168
  3  1.86672e-05
  4  17.3969
  5  48.2103
  6  0.00062823
  7  117.668
  8  3.39508e-06
  9  14.544
  10  0.000823899
  11  0.000233948
  12  4.1391
  13  28.0008
  14  29.9482
  15  4.25943e-05
  16  2.55961e-05
  17  1.63346e-05
  18  24.9104
  19  9.85446
  20  2.66213e-05
  21  59.7692
  22  2.43765e-05
  23  14.0601
  24  3.59239e-06
  25  8.84635e-07
  26  6.82739e-05
  27  5.75793e-06
  28  7.15089e-05
  29  5.73533
  30  2.36048e-05
  31  1.18146e-06
  32  0.275296
  33  0.235928
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.062e-01  2.359e-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.032e+00  2.753e-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: 8.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/364530/likelihoodResults_600912001_601171201_4FGL_J2234.2-4156_daily_bin1395.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) = 4245.44525808
delta logL = -4.47722022727e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4245.4452134
delta logL = -9.61645127973e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9534       1.0000          .0000       10.000    
     3 'Normalizat'    1.0319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80625       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4245.445     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      273 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    7049.9        .18142E-02** at limit **
   2  Index         2.0600        7.1495        .50000       -.12444E-04
   3  Normalizat    1.0319        .29585E-01    .25111E-03    .11862E-04
   4  Prefactor     .80625        .27105E-01    .25584E-03   -.15553E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Index      = 2.05995
  Normalizat = 1.03185
  Prefactor  = 0.806253
 **********
 **   18 **HESSE 
 **********

 FCN=   4245.445     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    9821.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0600        8.8444        .50000       -.62860    
   3  Normalizat    1.0319        .67118E-01    .10044E-04   -.91971    
   4  Prefactor     .80625        .61491E-01    .10234E-04   -.99498    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91241e-10
Minuit parameter uncertainties:
  1  0.051834
  2  43.2145
  3  0.0671236
  4  0.0614958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364530': 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) = 4245.44521312
delta logL = 1.89997081179e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.063e-01  6.150e-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.032e+00  6.712e-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/364530/cmap_HighResolution_600912001_601171201_4FGL_J2234.2-4156_daily_bin1395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.59e-08', time_completed='2021-09-28 15:12:46.836033', job_id='364530', GAL2='0.81', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632867166.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1395' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:12:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 364530: <4FGL_J2234.2-4156_daily_bin1395> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1395> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 15:00:18 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:00:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:00:21 2021
Terminated at Tue Sep 28 15:12:47 2021
Results reported at Tue Sep 28 15:12:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1395 338.568 -41.9411 600912001 601171201 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 :                                   732.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            749 sec.

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

