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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1020
RA = 338.568, Dec = -41.9411
tmin = 503712001, tmax = 503971201
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='360116', job_status='RUN', time_executed='2021-09-28 14:45:53.663486', time_epoch_executed='1632865553.66' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360116/ft1_4FGL_J2234.2-4156_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360116/ft2_4FGL_J2234.2-4156_daily_bin1020.fits


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

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

Done.
real 5.59
user 5.27
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360116/ft2_4FGL_J2234.2-4156_daily_bin1020.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/360116/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/360116/ft1_filtered_4FGL_J2234.2-4156_daily_bin1020.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360116/ft1_filtered_4FGL_J2234.2-4156_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/360116/ft2_4FGL_J2234.2-4156_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/360116/ltcube_503712001_503971201_4FGL_J2234.2-4156_daily_bin1020.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/360116/ft2_4FGL_J2234.2-4156_daily_bin1020.fits
.....................!
real 11.80
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360116/ft1_filtered_4FGL_J2234.2-4156_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/360116/ft2_4FGL_J2234.2-4156_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/360116/ltcube_503712001_503971201_4FGL_J2234.2-4156_daily_bin1020.fits outfile=/scratch/kocevski/360116/expmap_503712001_503971201_4FGL_J2234.2-4156_daily_bin1020.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/360116/ltcube_503712001_503971201_4FGL_J2234.2-4156_daily_bin1020.fits
.....................!
real 190.97
user 185.60
sys 4.92

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/360116/ft1_filtered_4FGL_J2234.2-4156_daily_bin1020.fits scfile=/scratch/kocevski/360116/ft2_4FGL_J2234.2-4156_daily_bin1020.fits outfile=/scratch/kocevski/360116/cmap_503712001_503971201_4FGL_J2234.2-4156_daily_bin1020.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/360116/ft1_filtered_4FGL_J2234.2-4156_daily_bin1020.fits scfile=/scratch/kocevski/360116/ft2_4FGL_J2234.2-4156_daily_bin1020.fits outfile=/scratch/kocevski/360116/cmap_HighResolution_503712001_503971201_4FGL_J2234.2-4156_daily_bin1020.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.536       1.0000         .10000E-03   10000.    
     2 'norm      '    10.507       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91691       1.0000         .10000E-03   10000.    
     5 'Prefactor '    110.35       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11828E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    90.956       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5448       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6981       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6679       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11381E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.574       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33496E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    66.203       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.997       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   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      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14770E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    7.5012       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    2.7137       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0037       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .70839       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=   4507.474     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     4558 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.524        47.657        .76687E-06    .65502E-05
   2  norm          10.501        6.1077       -.31417E-08    .39320E-04
   3  Prefactor     4.5333        13.364        .64158E-06    .45892E-04
   4  Prefactor     1.0382        12.115       -.27035E-06   -.11896E-04
   5  Prefactor     110.35        66.515       -.38557E-06    .45625E-05
   6  Prefactor     .10000E-03    17.395       -.67586E-06** at limit **
   7  Prefactor     90.648        137.17        .79241E-05    .49581E-05
   8  norm          .10000E-03    8.6336       -.13712E-06** at limit **
   9  Prefactor     7.5486        9.3191        .29824E-06   -.16375E-04
  10  Prefactor     1.6977        6.5864        .11524E-06   -.28614E-05
  11  Prefactor     .10000E-03    31.199       -.13895E-06** at limit **
  12  Prefactor     7.6690        8.8436        .57548E-07    .66644E-06
  13  Prefactor     .10000E-03    52.378        .39294E-06** at limit **
  14  Prefactor     .10000E-03    7.1591        .50911E-08** at limit **
  15  Prefactor     11.613        34.023       -.12180E-05    .13276E-05
  16  Prefactor     .10000E-03    26.319       -.83706E-06** at limit **
  17  Prefactor     65.983        145.20        .65383E-05    .33431E-05
  18  Prefactor     21.002        10.920        .10456E-06   -.87801E-05
  19  Prefactor     .10000E-03    5.3387       -.19249E-07** at limit **
  20  Prefactor     .10000E-03    19.599       -.32661E-07** at limit **
  21  Prefactor     .10000E-03    15.177       -.47227E-07** at limit **
  22  Prefactor     .10000E-03    11.500        .14640E-07** at limit **
  23  norm          .10000E-03    6.4511        .69920E-08** at limit **
  24  norm          .10000E-03    4.3155       -.16075E-09** at limit **
  25  norm          .10000E-03    2.8130        .13407E-07** at limit **
  26  norm          .10000E-03    3.8918       -.23613E-08** at limit **
  27  Prefactor     .10000E-03    4.0830       -.29824E-08** at limit **
  28  Prefactor     .10000E-03    131.57        .69329E-06** at limit **
  29  norm          7.5041        8.2289        .40641E-06   -.11327E-04
  30  Prefactor     .10000E-03    14.687       -.10001E-06** at limit **
  31  norm          2.7126        8.7859       -.64323E-08   -.36981E-04
  32  Normalizat    1.0036        .21181       -.14777E-05    .76588E-04
  33  Prefactor     .70835        .17618        .11840E-05    .13996E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5236
  norm       = 10.5009
  Prefactor  = 4.5333
  Prefactor  = 1.0382
  Prefactor  = 110.355
  Prefactor  = 0.0001
  Prefactor  = 90.648
  norm       = 0.0001
  Prefactor  = 7.5486
  Prefactor  = 1.69773
  Prefactor  = 0.0001
  Prefactor  = 7.66896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6135
  Prefactor  = 0.0001
  Prefactor  = 65.9829
  Prefactor  = 21.0022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.50414
  Prefactor  = 0.0001
  norm       = 2.71263
  Normalizat = 1.00365
  Prefactor  = 0.708347
 **********
 **   18 **HESSE 
 **********

 FCN=   4507.474     FROM HESSE     STATUS=OK           693 CALLS     5251 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.524        47.481        .10887E-03   -1.4972    
   2  norm          10.501        6.0946        .11183E-03   -1.5060    
   3  Prefactor     4.5333        13.901        .18800E-03   -1.5282    
   4  Prefactor     1.0382        60.337        .33617E-02   -1.5504    
   5  Prefactor     110.35        66.493        .38291E-04   -1.3603    
   6  Prefactor     .10000E-03    17.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     90.648        137.68        .21067E-03   -1.3801    
   8  norm          .10000E-03    8.6760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5486        9.3523        .73002E-03   -1.5158    
  10  Prefactor     1.6977        6.5450        .30604E-03   -1.5447    
  11  Prefactor     .10000E-03    31.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6690        8.8255        .14482E-03   -1.5154    
  13  Prefactor     .10000E-03    53.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1634        .17545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.613        33.962        .11776E-03   -1.5026    
  16  Prefactor     .10000E-03    26.752        .21343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     65.983        145.64        .24663E-03   -1.4082    
  18  Prefactor     21.002        10.941        .87410E-04   -1.4791    
  19  Prefactor     .10000E-03    5.3943        .15145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.4553        .16655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.3157        .13622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.8150        .10984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.9006        .12935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.0887        .13250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    132.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          7.5041        8.1426        .73215E-03   -1.5160    
  30  Prefactor     .10000E-03    14.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          2.7126        8.8848        .12362E-02   -1.5379    
  32  Normalizat    1.0036        .23744        .23601E-03   -.92908    
  33  Prefactor     .70835        .19843        .24729E-03   -1.0320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72327e-08
Minuit parameter uncertainties:
  1  47.6138
  2  6.09501
  3  13.9107
  4  15.8453
  5  66.5377
  6  7.04525e-05
  7  138.165
  8  9.40017e-06
  9  9.35411
  10  6.54778
  11  9.31566e-07
  12  8.82697
  13  6.11584e-06
  14  6.99674e-07
  15  34.019
  16  7.88479e-05
  17  146.432
  18  10.942
  19  9.42117e-07
  20  1.14534e-06
  21  4.12055e-07
  22  1.0442e-06
  23  4.16162e-08
  24  1.60016e-08
  25  3.84069e-06
  26  1.45388e-08
  27  4.61681e-07
  28  0.0002014
  29  8.14378
  30  2.04249e-06
  31  8.88913
  32  0.237686
  33  0.198632
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  9.316e-07  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:  7.083e-01  1.986e-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.004e+00  2.377e-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: 5.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360116/likelihoodResults_503712001_503971201_4FGL_J2234.2-4156_daily_bin1020.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) = 4507.47453739
delta logL = -0.000152356559738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4507.47438564
delta logL = -6.10241841059e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12163E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2332       1.0000          .0000       10.000    
     3 'Normalizat'    1.0036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70835       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=   4507.474     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      230 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    16.868        .90712E-02** at limit **
   2  Index         2.2132        8.8243        .50000        .57468E-05
   3  Normalizat    1.0036        .37458E-02    .46213E-01   -.11494E-03
   4  Prefactor     .70835        .33677E-02    .42512E-01    .93057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.2132
  Normalizat = 1.00364
  Prefactor  = 0.708351
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    123.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2132        5.2832        .50000       -.59120    
   3  Normalizat    1.0036        .10168E-01    .23601E-03   -.92909    
   4  Prefactor     .70835        .91415E-02    .24728E-03   -1.0320    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.18808e-08
Minuit parameter uncertainties:
  1  0.00223648
  2  190.122
  3  0.0101682
  4  0.00914149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360116': 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) = 4507.47438522
delta logL = -1.89405000128e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.236e-03  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.213e+00  1.901e+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:  7.084e-01  9.141e-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.004e+00  1.017e-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/360116/cmap_HighResolution_503712001_503971201_4FGL_J2234.2-4156_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-28 14:58:19.284488', job_id='360116', GAL2='0.71', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632866299.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-1.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1020' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:58:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 360116: <4FGL_J2234.2-4156_daily_bin1020> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1020> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:18 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45: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 14:45:21 2021
Terminated at Tue Sep 28 14:58:20 2021
Results reported at Tue Sep 28 14:58:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1020 338.568 -41.9411 503712001 503971201 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 :                                   743.05 sec.
    Max Memory :                                 1218 MB
    Average Memory :                             347.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            782 sec.

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

