/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 196 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin193
RA = 338.568, Dec = -41.9411
tmin = 289353601, tmax = 289612801
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='356996', job_status='RUN', time_executed='2021-09-28 14:38:57.583053', time_epoch_executed='1632865137.58' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/356996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/356996/ft1_4FGL_J2234.2-4156_daily_bin193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/356996/ft2_4FGL_J2234.2-4156_daily_bin193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/356996/ft1_4FGL_J2234.2-4156_daily_bin193.fits outfile=/scratch/kocevski/356996/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin193.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=289353601.0 tmax=289612801.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.50
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/356996/ft1_filtered_4FGL_J2234.2-4156_daily_bin193.fits" evtable="EVENTS" scfile=/scratch/kocevski/356996/ft2_4FGL_J2234.2-4156_daily_bin193.fits sctable="SC_DATA" outfile=/scratch/kocevski/356996/ltcube_289353601_289612801_4FGL_J2234.2-4156_daily_bin193.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/356996/ft2_4FGL_J2234.2-4156_daily_bin193.fits
.....................!
real 11.76
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/356996/ft1_filtered_4FGL_J2234.2-4156_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/356996/ft2_4FGL_J2234.2-4156_daily_bin193.fits sctable="SC_DATA" expcube=/scratch/kocevski/356996/ltcube_289353601_289612801_4FGL_J2234.2-4156_daily_bin193.fits outfile=/scratch/kocevski/356996/expmap_289353601_289612801_4FGL_J2234.2-4156_daily_bin193.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/356996/ltcube_289353601_289612801_4FGL_J2234.2-4156_daily_bin193.fits
.....................!
real 190.32
user 185.83
sys 4.17

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/356996/ft1_filtered_4FGL_J2234.2-4156_daily_bin193.fits scfile=/scratch/kocevski/356996/ft2_4FGL_J2234.2-4156_daily_bin193.fits outfile=/scratch/kocevski/356996/cmap_289353601_289612801_4FGL_J2234.2-4156_daily_bin193.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/356996/ft1_filtered_4FGL_J2234.2-4156_daily_bin193.fits scfile=/scratch/kocevski/356996/ft2_4FGL_J2234.2-4156_daily_bin193.fits outfile=/scratch/kocevski/356996/cmap_HighResolution_289353601_289612801_4FGL_J2234.2-4156_daily_bin193.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/356996/ft1_filtered_4FGL_J2234.2-4156_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/356996/ft2_4FGL_J2234.2-4156_daily_bin193.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/356996/Model_4FGL_J2234.2-4156_daily_bin193.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/356996/ft1_filtered_4FGL_J2234.2-4156_daily_bin193.fits.....................!
real 39.54
user 38.27
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.430       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.356       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.842       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.803       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.526       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63128E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.068       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.207       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8726       1.0000         .10000E-03   10000.    
    26 'norm      '    16.124       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    120.74       1.0000         .10000E-03   10000.    
    29 'norm      '    4.2394       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0071       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .85202       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=   4696.610     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     4674 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.379        .42956E-05** at limit **
   2  norm          14.430        6.5024       -.81581E-06   -.75463E-04
   3  Prefactor     19.356        11.010       -.34550E-06    .59468E-05
   4  Prefactor     .10000E-03    3.6167        .40664E-07** at limit **
   5  Prefactor     .10000E-03    20.963        .15594E-04** at limit **
   6  Prefactor     25.844        11.876       -.50783E-06   -.27127E-03
   7  Prefactor     .10000E-03    45.767        .82481E-05** at limit **
   8  norm          .10000E-03    2.5905        .40843E-08** at limit **
   9  Prefactor     4.8483        8.5200        .12572E-05   -.30469E-05
  10  Prefactor     .10000E-03    2.4627        .38644E-07** at limit **
  11  Prefactor     .10000E-03    28.910        .10204E-04** at limit **
  12  Prefactor     .28795        3.2020        .53645E-06   -.21097E-03
  13  Prefactor     .10000E-03    23.187       -.21525E-04** at limit **
  14  Prefactor     15.813        32.307       -.21207E-04    .30149E-04
  15  Prefactor     13.573        24.093       -.17967E-04   -.59489E-03
  16  Prefactor     .26887E-01    9.2407        .47618E-05    .36208E-03
  17  Prefactor     .10000E-03    48.825       -.14977E-04** at limit **
  18  Prefactor     20.074        18.448       -.14701E-05    .62210E-04
  19  Prefactor     .10000E-03    4.1861       -.13243E-06** at limit **
  20  Prefactor     23.218        29.513       -.12879E-04   -.45202E-04
  21  Prefactor     .10000E-03    16.947       -.19429E-05** at limit **
  22  Prefactor     .10000E-03    4.0606       -.10114E-06** at limit **
  23  norm          .10000E-03    4.1070        .27831E-06** at limit **
  24  norm          .10000E-03    2.0374       -.22300E-07** at limit **
  25  norm          1.8726        3.7805       -.17045E-06   -.28953E-03
  26  norm          16.126        13.515       -.90311E-06   -.34014E-05
  27  Prefactor     .10000E-03    1.7921       -.70444E-07** at limit **
  28  Prefactor     120.74        57.120       -.15231E-06    .19046E-04
  29  norm          4.2396        4.8030       -.36102E-06   -.37227E-04
  30  Prefactor     .10000E-03    5.2194        .70985E-08** at limit **
  31  norm          .10000E-03    2.6755       -.32361E-07** at limit **
  32  Normalizat    1.0070        .23425        .55014E-05   -.41081E-03
  33  Prefactor     .85206        .20420        .33058E-06   -.11679E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.4304
  Prefactor  = 19.3562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.8439
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.84831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.287952
  Prefactor  = 0.0001
  Prefactor  = 15.8133
  Prefactor  = 13.5727
  Prefactor  = 0.0268874
  Prefactor  = 0.0001
  Prefactor  = 20.0736
  Prefactor  = 0.0001
  Prefactor  = 23.2179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.87257
  norm       = 16.1263
  Prefactor  = 0.0001
  Prefactor  = 120.737
  norm       = 4.23959
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.00701
  Prefactor  = 0.852062
 **********
 **   18 **HESSE 
 **********

 FCN=   4696.610     FROM HESSE     STATUS=OK           693 CALLS     5367 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.430        6.5071        .10544E-03   -1.4948    
   3  Prefactor     19.356        11.013        .91038E-04   -1.4828    
   4  Prefactor     .10000E-03    3.6218        .12727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.844        11.904        .78802E-04   -1.4691    
   7  Prefactor     .10000E-03    45.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5926        .10773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8483        8.5220        .18267E-03   -1.5268    
  10  Prefactor     .10000E-03    2.4917        .10494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28795        12.986        .23136E-02   -1.5601    
  13  Prefactor     .10000E-03    23.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.813        32.139        .10075E-03   -1.4912    
  15  Prefactor     13.573        25.620        .10891E-03   -1.4971    
  16  Prefactor     .26887E-01    19.786        .58760E-01   -1.5675    
  17  Prefactor     .10000E-03    48.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.074        18.515        .89408E-04   -1.4812    
  19  Prefactor     .10000E-03    4.2207        .13691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.218        29.443        .83149E-04   -1.4744    
  21  Prefactor     .10000E-03    16.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.0625        .13487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.1079        .13564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.0380        .95536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8726        3.7549        .17960E-03   -1.5434    
  26  norm          16.126        13.514        .99742E-04   -1.4905    
  27  Prefactor     .10000E-03    1.7940        .89597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     120.74        57.394        .36624E-04   -1.3506    
  29  norm          4.2396        4.7905        .14088E-03   -1.5296    
  30  Prefactor     .10000E-03    5.2266        .15291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.6842        .10942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0070        .28369        .25385E-03   -.92796    
  33  Prefactor     .85206        .24729        .25536E-03   -.97837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80214e-09
Minuit parameter uncertainties:
  1  3.61747e-05
  2  6.50737
  3  11.0137
  4  4.35508e-06
  5  2.75334e-05
  6  11.9049
  7  1.14283e-05
  8  2.06815e-06
  9  8.52416
  10  1.90051e-06
  11  0.00012594
  12  3.86763
  13  0.000110548
  14  32.1743
  15  25.6405
  16  1.45651
  17  0.000120673
  18  18.5207
  19  9.01558e-06
  20  29.4617
  21  1.33338e-06
  22  8.41674e-07
  23  3.07659e-06
  24  3.84463e-07
  25  3.75538
  26  13.5162
  27  2.01647e-06
  28  57.4201
  29  4.79095
  30  7.45124e-06
  31  5.98316e-06
  32  0.284116
  33  0.247611
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.259e-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.521e-01  2.476e-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.007e+00  2.841e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/356996/likelihoodResults_289353601_289612801_4FGL_J2234.2-4156_daily_bin193.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) = 4696.6101793
delta logL = -0.000164494210367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4696.61001473
delta logL = 7.64230208006e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11265E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3936       1.0000          .0000       10.000    
     3 'Normalizat'    1.0070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85206       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=   4696.610     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0549        .90712E-02** at limit **
   2  Index         2.4111        7.5647        .50000       -.47836E-05
   3  Normalizat    1.0070        .23043E-02    .46255E-01    .24220E-04
   4  Prefactor     .85206        .21614E-02    .44391E-01    .20082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41114
  Normalizat = 1.00702
  Prefactor  = 0.852057
 **********
 **   18 **HESSE 
 **********

 FCN=   4696.610     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    111.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4111        5.7420        .50000       -.54425    
   3  Normalizat    1.0070        .91705E-02    .25384E-03   -.92796    
   4  Prefactor     .85206        .86018E-02    .25537E-03   -.97837    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.27773e-08
Minuit parameter uncertainties:
  1  0.000155518
  2  159.886
  3  0.0091705
  4  0.00860184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/356996': 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) = 4696.61001452
delta logL = 2.81390384771e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.555e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.411e+00  1.599e+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:  8.521e-01  8.602e-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.007e+00  9.171e-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/356996/cmap_HighResolution_289353601_289612801_4FGL_J2234.2-4156_daily_bin193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-28 14:51:59.667090', job_id='356996', GAL2='0.85', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632865919.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='193' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:51:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 356996: <4FGL_J2234.2-4156_daily_bin193> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin193> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:35:26 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:35: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:35:28 2021
Terminated at Tue Sep 28 14:51:59 2021
Results reported at Tue Sep 28 14:51:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin193 338.568 -41.9411 289353601 289612801 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 :                                   782.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

