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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1281
RA = 338.568, Dec = -41.9411
tmin = 571363201, tmax = 571622401
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='361572', job_status='RUN', time_executed='2021-09-28 14:53:21.168189', time_epoch_executed='1632866001.17' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361572/ft1_4FGL_J2234.2-4156_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361572/ft2_4FGL_J2234.2-4156_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361572/ft1_4FGL_J2234.2-4156_daily_bin1281.fits outfile=/scratch/kocevski/361572/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1281.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=571363201.0 tmax=571622401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.87
user 2.67
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361572/ft1_filtered_4FGL_J2234.2-4156_daily_bin1281.fits" evtable="EVENTS" scfile=/scratch/kocevski/361572/ft2_4FGL_J2234.2-4156_daily_bin1281.fits sctable="SC_DATA" outfile=/scratch/kocevski/361572/ltcube_571363201_571622401_4FGL_J2234.2-4156_daily_bin1281.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/361572/ft2_4FGL_J2234.2-4156_daily_bin1281.fits
.....................!
real 12.49
user 12.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361572/ft1_filtered_4FGL_J2234.2-4156_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/361572/ft2_4FGL_J2234.2-4156_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/361572/ltcube_571363201_571622401_4FGL_J2234.2-4156_daily_bin1281.fits outfile=/scratch/kocevski/361572/expmap_571363201_571622401_4FGL_J2234.2-4156_daily_bin1281.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/361572/ltcube_571363201_571622401_4FGL_J2234.2-4156_daily_bin1281.fits
.....................!
real 191.17
user 185.45
sys 5.39

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/361572/ft1_filtered_4FGL_J2234.2-4156_daily_bin1281.fits scfile=/scratch/kocevski/361572/ft2_4FGL_J2234.2-4156_daily_bin1281.fits outfile=/scratch/kocevski/361572/cmap_571363201_571622401_4FGL_J2234.2-4156_daily_bin1281.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/361572/ft1_filtered_4FGL_J2234.2-4156_daily_bin1281.fits scfile=/scratch/kocevski/361572/ft2_4FGL_J2234.2-4156_daily_bin1281.fits outfile=/scratch/kocevski/361572/cmap_HighResolution_571363201_571622401_4FGL_J2234.2-4156_daily_bin1281.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361572/ft1_filtered_4FGL_J2234.2-4156_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/361572/ft2_4FGL_J2234.2-4156_daily_bin1281.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361572/Model_4FGL_J2234.2-4156_daily_bin1281.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/361572/ft1_filtered_4FGL_J2234.2-4156_daily_bin1281.fits......................!
real 23.62
user 22.30
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.637       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.519       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6127       1.0000         .10000E-03   10000.    
    11 'Prefactor '    155.83       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6374       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6354       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.469       1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.692       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.581       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.147       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-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      '    6.0755       1.0000         .10000E-03   10000.    
    26 'norm      '    25.829       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11015E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    7.4291       1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.531       1.0000         .10000E-03   10000.    
    31 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96789       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .92525       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=   1949.439     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     5405 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    879.68       -.47098E-05** at limit **
   2  norm          .10000E-03    10.460        .71299E-07** at limit **
   3  Prefactor     45.747        157.33        .56834E-06    .13840E-04
   4  Prefactor     31.499        61.341       -.42179E-06    .82698E-06
   5  Prefactor     .10000E-03    27.948       -.17866E-07** at limit **
   6  Prefactor     .10000E-03    20.792       -.40183E-06** at limit **
   7  Prefactor     .10000E-03    80.548       -.33480E-06** at limit **
   8  norm          .10000E-03    4.2421       -.14135E-07** at limit **
   9  Prefactor     .10000E-03    6.9267        .95144E-07** at limit **
  10  Prefactor     2.6127        8.6901        .45615E-07   -.43175E-04
  11  Prefactor     155.83        136.02        .41183E-06   -.50411E-05
  12  Prefactor     4.6388        10.845        .79891E-05   -.56240E-04
  13  Prefactor     .10000E-03    22.135        .98321E-07** at limit **
  14  Prefactor     8.6372        73.305        .21100E-05   -.28960E-05
  15  Prefactor     .10000E-03    12.991       -.17949E-06** at limit **
  16  Prefactor     23.470        18.532       -.22957E-06   -.20436E-04
  17  Prefactor     50.689        111.59        .17558E-06   -.26961E-05
  18  Prefactor     16.589        35.799        .20583E-05   -.10312E-04
  19  Prefactor     .10000E-03    7.1743        .27659E-07** at limit **
  20  Prefactor     57.150        57.500       -.85800E-06   -.85371E-05
  21  Prefactor     .10000E-03    201.47       -.98871E-08** at limit **
  22  Prefactor     .10000E-03    8.0513       -.30758E-07** at limit **
  23  norm          .10000E-03    6.6945        .73281E-08** at limit **
  24  norm          .10000E-03    3.0665       -.21699E-08** at limit **
  25  norm          6.0753        6.3689       -.43605E-08   -.47301E-05
  26  norm          25.829        17.027        .22473E-06   -.12781E-04
  27  Prefactor     .10000E-03    4.3786       -.26314E-07** at limit **
  28  Prefactor     .10000E-03    144.53        .24807E-06** at limit **
  29  norm          7.4281        7.7386        .16044E-05   -.43207E-04
  30  Prefactor     15.536        23.663        .11711E-05   -.13537E-04
  31  norm          .10000E-03    3.3123       -.63682E-07** at limit **
  32  Normalizat    .96762        .38718       -.66522E-05    .37110E-04
  33  Prefactor     .92545        .34831        .23861E-05   -.80473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100117
  norm       = 0.0001
  Prefactor  = 45.7469
  Prefactor  = 31.4991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.61271
  Prefactor  = 155.834
  Prefactor  = 4.63879
  Prefactor  = 0.0001
  Prefactor  = 8.63718
  Prefactor  = 0.0001
  Prefactor  = 23.4703
  Prefactor  = 50.689
  Prefactor  = 16.5893
  Prefactor  = 0.0001
  Prefactor  = 57.1502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.07532
  norm       = 25.8289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.4281
  Prefactor  = 15.5365
  norm       = 0.0001
  Normalizat = 0.967617
  Prefactor  = 0.925447
 **********
 **   18 **HESSE 
 **********

 FCN=   1949.439     FROM HESSE     STATUS=OK           683 CALLS     6088 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    878.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.461        .13950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.747        157.97        .59350E-04   -1.4354    
   4  Prefactor     31.499        61.568        .71369E-04   -1.4585    
   5  Prefactor     .10000E-03    27.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    80.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.2425        .88824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.9276        .11350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6127        8.6327        .21766E-03   -1.5385    
  11  Prefactor     155.83        135.56        .32296E-04   -1.3205    
  12  Prefactor     4.6388        10.852        .93447E-03   -1.5277    
  13  Prefactor     .10000E-03    22.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6372        72.981        .13641E-03   -1.5120    
  15  Prefactor     .10000E-03    12.999        .15546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.470        18.534        .82683E-04   -1.4739    
  17  Prefactor     50.689        111.58        .56327E-04   -1.4283    
  18  Prefactor     16.589        36.142        .98359E-04   -1.4893    
  19  Prefactor     .10000E-03    7.1820        .11549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     57.150        57.511        .53067E-04   -1.4195    
  21  Prefactor     .10000E-03    201.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.0599        .12237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.6955        .11159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.0668        .75518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.0753        6.3721        .10937E-03   -1.5215    
  26  norm          25.829        17.029        .78823E-04   -1.4691    
  27  Prefactor     .10000E-03    4.3804        .90140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    145.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          7.4281        7.7336        .11377E-03   -1.5163    
  30  Prefactor     15.536        23.809        .10163E-03   -1.4919    
  31  norm          .10000E-03    3.3199        .78422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .96762        .45051        .26634E-03   -.94123    
  33  Prefactor     .92545        .40720        .27234E-03   -.95258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4577e-10
Minuit parameter uncertainties:
  1  0.0205921
  2  5.6431e-07
  3  159.45
  4  61.6925
  5  9.76748e-06
  6  6.09534e-07
  7  0.000213143
  8  4.18456e-07
  9  8.34036e-06
  10  8.63682
  11  135.836
  12  10.8562
  13  2.50083e-05
  14  50.2964
  15  2.25557e-05
  16  18.5389
  17  112.042
  18  36.1893
  19  1.3811e-05
  20  57.5667
  21  0.000138451
  22  9.39652e-07
  23  4.67881e-06
  24  1.69998e-07
  25  6.37277
  26  17.0324
  27  1.37775e-06
  28  0.000220193
  29  7.73467
  30  23.824
  31  1.00262e-05
  32  0.452291
  33  0.408547
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.254e-01  4.085e-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.676e-01  4.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 8.67e-08 +/- 7.56e-08
Energy Flux (Fixed Index): 6.11e-05 +/- 5.33e-05

TS (Fixed Index): 2.29
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 2.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361572/likelihoodResults_571363201_571622401_4FGL_J2234.2-4156_daily_bin1281.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): 0
logL (Free Index) = 1949.25309861
delta logL = 0.18591413419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1949.25066877
delta logL = 0.188343971381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.771       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3687       1.0000          .0000       10.000    
     3 'Normalizat'    .93205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94934       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=   1949.251     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      282 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.845        147.35        .21565E-03    .12749E-03
   2  Index         2.3690        .75104        .30918E-02    .12918E-03
   3  Normalizat    .93234        .39924        .27072E-03   -.22331E-04
   4  Prefactor     .94862        .39903        .26932E-03    .16107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.8451
  Index      = 2.36897
  Normalizat = 0.932338
  Prefactor  = 0.948624
 **********
 **   18 **HESSE 
 **********

 FCN=   1949.251     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.845        131.20        .86259E-05   -1.3841    
   2  Index         2.3690        .66840        .12367E-03   -.55413    
   3  Normalizat    .93234        .39850        .10829E-04   -.95333    
   4  Prefactor     .94862        .39838        .53863E-04   -.94462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28703e-10
Minuit parameter uncertainties:
  1  131.638
  2  0.671188
  3  0.399777
  4  0.399613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361572': 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): 0
logL (Free Index) = 1949.25066426
delta logL = 0.188348482995

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  8.685e+01  1.316e+02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.369e+00  6.712e-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:  9.486e-01  3.996e-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.323e-01  3.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.37 +/- 0.67
Photon Flux (Free Index): 1.16e-07 +/- 9.73e-08
Energy Flux (Free Index): 3.96e-05 +/- 3.88e-05

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/361572/cmap_HighResolution_571363201_571622401_4FGL_J2234.2-4156_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-02', comment='SUCCESS', photon_flux='8.67e-08', energy_flux2='3.96e-05', photon_flux_error='7.56e-08', dlogl='1.88e-01', energy_flux='6.11e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-28 15:02:10.222307', photon_index_error2='0.67', photon_index2='2.37', ts='2.29', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='2.50e-07', energy_flux_error2='3.88e-05', EG='0.97', time_epoch_completed='1632866530.22', return_code='0', job_id='361572', GAL2='0.95', EG2='0.93', return_code2='0', energy_flux_error='5.33e-05', photon_flux_error2='9.73e-08', ts2='2.64', photon_index='1.99' WHERE bin_id='1281' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 361572: <4FGL_J2234.2-4156_daily_bin1281> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1281 338.568 -41.9411 571363201 571622401 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 :                                   527.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            704 sec.

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

