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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1322
RA = 338.568, Dec = -41.9411
tmin = 581990401, tmax = 582249601
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='361637', job_status='RUN', time_executed='2021-09-28 14:50:41.413310', time_epoch_executed='1632865841.41' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361637

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361637/ft1_4FGL_J2234.2-4156_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361637/ft2_4FGL_J2234.2-4156_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361637/ft1_4FGL_J2234.2-4156_daily_bin1322.fits outfile=/scratch/kocevski/361637/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1322.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=581990401.0 tmax=582249601.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.39
user 2.18
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361637/ft1_filtered_4FGL_J2234.2-4156_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/361637/ft2_4FGL_J2234.2-4156_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/361637/ltcube_581990401_582249601_4FGL_J2234.2-4156_daily_bin1322.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/361637/ft2_4FGL_J2234.2-4156_daily_bin1322.fits
.....................!
real 12.48
user 12.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361637/ft1_filtered_4FGL_J2234.2-4156_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/361637/ft2_4FGL_J2234.2-4156_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/361637/ltcube_581990401_582249601_4FGL_J2234.2-4156_daily_bin1322.fits outfile=/scratch/kocevski/361637/expmap_581990401_582249601_4FGL_J2234.2-4156_daily_bin1322.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/361637/ltcube_581990401_582249601_4FGL_J2234.2-4156_daily_bin1322.fits
.....................!
real 190.69
user 185.30
sys 4.96

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/361637/ft1_filtered_4FGL_J2234.2-4156_daily_bin1322.fits scfile=/scratch/kocevski/361637/ft2_4FGL_J2234.2-4156_daily_bin1322.fits outfile=/scratch/kocevski/361637/cmap_581990401_582249601_4FGL_J2234.2-4156_daily_bin1322.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361637/ft1_filtered_4FGL_J2234.2-4156_daily_bin1322.fits scfile=/scratch/kocevski/361637/ft2_4FGL_J2234.2-4156_daily_bin1322.fits outfile=/scratch/kocevski/361637/cmap_HighResolution_581990401_582249601_4FGL_J2234.2-4156_daily_bin1322.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361637/ft1_filtered_4FGL_J2234.2-4156_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/361637/ft2_4FGL_J2234.2-4156_daily_bin1322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361637/Model_4FGL_J2234.2-4156_daily_bin1322.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/361637/ft1_filtered_4FGL_J2234.2-4156_daily_bin1322.fits.....................!
real 37.32
user 36.05
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.554       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.189       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.369       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.516       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13455E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1336       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    76.834       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.828       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1975       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1309       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.924       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.292       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.5115       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.6261       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.0264       1.0000         .10000E-03   10000.    
    29 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    14.320       1.0000         .10000E-03   10000.    
    31 'norm      '    6.6203       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .29033       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4718       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=   4238.535     FROM MIGRAD    STATUS=CONVERGED    863 CALLS     5326 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.818        .63411E-07** at limit **
   2  norm          13.552        7.2715        .16429E-06   -.18097E-04
   3  Prefactor     .10000E-03    5.9145        .21081E-06** at limit **
   4  Prefactor     .10000E-03    8.9173        .21316E-06** at limit **
   5  Prefactor     40.175        42.311        .57721E-06    .29647E-04
   6  Prefactor     17.373        14.034        .16216E-06   -.20683E-04
   7  Prefactor     15.444        285.43        .28642E-05    .14845E-04
   8  norm          .10000E-03    4.8401        .10527E-06** at limit **
   9  Prefactor     .10000E-03    40.631        .96517E-05** at limit **
  10  Prefactor     8.1316        4.9076        .19241E-06   -.49436E-04
  11  Prefactor     .10000E-03    28.867        .22165E-06** at limit **
  12  Prefactor     .10000E-03    4.8702        .58005E-06** at limit **
  13  Prefactor     76.853        36.997        .33497E-06   -.76871E-04
  14  Prefactor     .10000E-03    17.221       -.39909E-08** at limit **
  15  Prefactor     11.804        38.811        .94742E-06    .12767E-04
  16  Prefactor     8.1967        15.782        .24944E-06   -.20491E-04
  17  Prefactor     .10000E-03    52.242        .54765E-07** at limit **
  18  Prefactor     2.1336        27.381        .17732E-05   -.80743E-05
  19  Prefactor     .10000E-03    4.7774        .28982E-06** at limit **
  20  Prefactor     38.915        42.728        .38809E-06    .14694E-04
  21  Prefactor     33.286        44.913        .39749E-06    .59768E-05
  22  Prefactor     .10000E-03    7.0533        .18299E-06** at limit **
  23  norm          7.5106        10.012        .19319E-06   -.48453E-05
  24  norm          .10000E-03    3.9251        .85523E-08** at limit **
  25  norm          .10000E-03    2.1697        .19167E-06** at limit **
  26  norm          6.6208        11.239        .51624E-06   -.39727E-04
  27  Prefactor     .10000E-03    1.9493        .97840E-07** at limit **
  28  Prefactor     2.9578        168.22       -.25665E-05   -.41735E-04
  29  norm          .10000E-03    4.5800        .21148E-05** at limit **
  30  Prefactor     14.320        12.779        .26395E-06   -.12253E-04
  31  norm          6.6214        7.6008        .92124E-06   -.21536E-03
  32  Normalizat    .29057        .27544       -.20738E-05   -.50819E-04
  33  Prefactor     1.4717        .25102        .19856E-06   -.39767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.5522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.1748
  Prefactor  = 17.3732
  Prefactor  = 15.4439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.13163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.8535
  Prefactor  = 0.0001
  Prefactor  = 11.8038
  Prefactor  = 8.19675
  Prefactor  = 0.0001
  Prefactor  = 2.13362
  Prefactor  = 0.0001
  Prefactor  = 38.9149
  Prefactor  = 33.2864
  Prefactor  = 0.0001
  norm       = 7.51057
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.6208
  Prefactor  = 0.0001
  Prefactor  = 2.95776
  norm       = 0.0001
  Prefactor  = 14.3199
  norm       = 6.62144
  Normalizat = 0.290574
  Prefactor  = 1.47166
 **********
 **   18 **HESSE 
 **********

 FCN=   4238.535     FROM HESSE     STATUS=OK           691 CALLS     6017 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.552        7.2978        .10880E-03   -1.4972    
   3  Prefactor     .10000E-03    5.9430        .15470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.175        42.369        .63228E-04   -1.4439    
   6  Prefactor     17.373        13.998        .96102E-04   -1.4874    
   7  Prefactor     15.444        286.12        .10168E-03   -1.4922    
   8  norm          .10000E-03    4.8509        .13989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    40.272        .32210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1316        4.9085        .10626E-03   -1.5138    
  11  Prefactor     .10000E-03    28.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9043        .14008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     76.853        36.136        .45811E-04   -1.3952    
  14  Prefactor     .10000E-03    17.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.804        38.510        .11648E-03   -1.5021    
  16  Prefactor     8.1967        15.652        .14003E-03   -1.5135    
  17  Prefactor     .10000E-03    52.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1336        27.567        .28244E-03   -1.5416    
  19  Prefactor     .10000E-03    4.8818        .13902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.915        42.729        .64244E-04   -1.4460    
  21  Prefactor     33.286        44.918        .69449E-04   -1.4553    
  22  Prefactor     .10000E-03    7.0663        .16889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.5106        10.012        .14633E-03   -1.5160    
  24  norm          .10000E-03    3.9598        .12597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.1725        .93639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.6208        11.249        .15589E-03   -1.5193    
  27  Prefactor     .10000E-03    1.9506        .88773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.9578        171.10        .23327E-03   -1.5364    
  29  norm          .10000E-03    4.5164        .13358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     14.320        12.779        .10585E-03   -1.4951    
  31  norm          6.6214        7.4608        .15596E-03   -1.5193    
  32  Normalizat    .29057        .27820        .42986E-03   -1.2340    
  33  Prefactor     1.4717        .25595        .20314E-03   -.78336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42257e-10
Minuit parameter uncertainties:
  1  2.72286e-05
  2  7.29831
  3  5.52428e-06
  4  9.62252e-06
  5  42.4012
  6  14.0001
  7  133.695
  8  1.81614e-07
  9  4.03448e-05
  10  4.90874
  11  0.00010015
  12  2.49404e-06
  13  36.1466
  14  5.86802e-05
  15  38.5907
  16  15.6597
  17  3.63497e-05
  18  15.3469
  19  3.10467e-07
  20  42.7624
  21  44.9641
  22  7.01082e-06
  23  10.014
  24  2.47718e-07
  25  9.23595e-07
  26  11.2523
  27  6.26704e-08
  28  45.1279
  29  5.23957e-06
  30  12.7814
  31  7.46188
  32  0.279537
  33  0.256177
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.002e-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:  1.472e+00  2.562e-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:  2.906e-01  2.795e-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.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361637/likelihoodResults_581990401_582249601_4FGL_J2234.2-4156_daily_bin1322.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) = 4238.53558848
delta logL = -0.00016455473542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4238.53542431
delta logL = -3.79630364478e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1908       1.0000          .0000       10.000    
     3 'Normalizat'    .29057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4717       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=   4238.535     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.390        .90712E-02** at limit **
   2  Index         2.1668        5.5258        .50000        .74880E-05
   3  Normalizat    .29058        .38771E-02    .97079E-01    .63261E-04
   4  Prefactor     1.4717        .39333E-02    .45959E-01    .11206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.16682
  Normalizat = 0.290576
  Prefactor  = 1.47166
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1668        5.7683        .50000       -.60242    
   3  Normalizat    .29058        .10050E-01    .42979E-03   -1.2340    
   4  Prefactor     1.4717        .10215E-01    .20314E-03   -.78336    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.15447e-08
Minuit parameter uncertainties:
  1  0.000933639
  2  157.213
  3  0.0100506
  4  0.0102151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361637': 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) = 4238.53542416
delta logL = -2.29084434977e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  9.336e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.167e+00  1.572e+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.472e+00  1.022e-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:  2.906e-01  1.005e-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/361637/cmap_HighResolution_581990401_582249601_4FGL_J2234.2-4156_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.28e-08', time_completed='2021-09-28 15:03:24.181300', job_id='361637', GAL2='1.47', fit_tolerance='1e-08', EG2='0.29', EG='0.29', time_epoch_completed='1632866604.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='-2.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1322' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:03:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 361637: <4FGL_J2234.2-4156_daily_bin1322> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1322 338.568 -41.9411 581990401 582249601 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 :                                   762.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            773 sec.

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

