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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1114
RA = 338.568, Dec = -41.9411
tmin = 528076801, tmax = 528336001
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='360270', job_status='RUN', time_executed='2021-09-28 14:47:11.532203', time_epoch_executed='1632865631.53' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360270

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360270/ft1_4FGL_J2234.2-4156_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360270/ft2_4FGL_J2234.2-4156_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360270/ft1_4FGL_J2234.2-4156_daily_bin1114.fits outfile=/scratch/kocevski/360270/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1114.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=528076801.0 tmax=528336001.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.43
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1114.fits" evtable="EVENTS" scfile=/scratch/kocevski/360270/ft2_4FGL_J2234.2-4156_daily_bin1114.fits sctable="SC_DATA" outfile=/scratch/kocevski/360270/ltcube_528076801_528336001_4FGL_J2234.2-4156_daily_bin1114.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/360270/ft2_4FGL_J2234.2-4156_daily_bin1114.fits
.....................!
real 12.20
user 11.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/360270/ft2_4FGL_J2234.2-4156_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/360270/ltcube_528076801_528336001_4FGL_J2234.2-4156_daily_bin1114.fits outfile=/scratch/kocevski/360270/expmap_528076801_528336001_4FGL_J2234.2-4156_daily_bin1114.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/360270/ltcube_528076801_528336001_4FGL_J2234.2-4156_daily_bin1114.fits
.....................!
real 191.28
user 186.40
sys 4.32

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/360270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1114.fits scfile=/scratch/kocevski/360270/ft2_4FGL_J2234.2-4156_daily_bin1114.fits outfile=/scratch/kocevski/360270/cmap_528076801_528336001_4FGL_J2234.2-4156_daily_bin1114.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/360270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1114.fits scfile=/scratch/kocevski/360270/ft2_4FGL_J2234.2-4156_daily_bin1114.fits outfile=/scratch/kocevski/360270/cmap_HighResolution_528076801_528336001_4FGL_J2234.2-4156_daily_bin1114.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/360270/ft2_4FGL_J2234.2-4156_daily_bin1114.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360270/Model_4FGL_J2234.2-4156_daily_bin1114.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/360270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1114.fits.....................!
real 39.10
user 37.73
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.173       1.0000         .10000E-03   10000.    
     2 'norm      '    17.695       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14455       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9298       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.096       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19522E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.5199       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0683       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .68240       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6187       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2093       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    126.72       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.944       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3138       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      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    48.866       1.0000         .10000E-03   10000.    
    29 'norm      '    3.1532       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .67052       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3340       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=   4619.339     FROM MIGRAD    STATUS=CONVERGED    908 CALLS     4605 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.167        75.606        .11683E-05   -.70598E-05
   2  norm          17.695        9.4111        .64751E-07   -.44035E-04
   3  Prefactor     .11131        289.18       -.16638E-05   -.40081E-05
   4  Prefactor     2.9326        8.0955        .31401E-06   -.34431E-04
   5  Prefactor     40.099        52.162       -.25953E-05    .80496E-05
   6  Prefactor     .10000E-03    6.8533       -.54026E-06** at limit **
   7  Prefactor     .10000E-03    961.34       -.68882E-05** at limit **
   8  norm          4.5198        5.3688       -.36596E-06    .21449E-04
   9  Prefactor     8.0671        11.594        .70671E-06   -.38428E-04
  10  Prefactor     .68149        4.4555        .30115E-06    .65325E-04
  11  Prefactor     .10000E-03    31.680        .21000E-07** at limit **
  12  Prefactor     3.6187        5.4832       -.95280E-09   -.17865E-04
  13  Prefactor     4.2076        26.271        .55666E-06   -.24880E-05
  14  Prefactor     .10000E-03    7.5712       -.21261E-07** at limit **
  15  Prefactor     .10000E-03    20.174       -.67265E-06** at limit **
  16  Prefactor     .10000E-03    13.398       -.98333E-06** at limit **
  17  Prefactor     126.69        120.09        .85044E-06   -.64836E-06
  18  Prefactor     .10000E-03    11.518        .16083E-06** at limit **
  19  Prefactor     .10000E-03    7.2896        .24633E-06** at limit **
  20  Prefactor     45.926        43.553        .11730E-06    .24397E-06
  21  Prefactor     .10000E-03    72.389        .31814E-06** at limit **
  22  Prefactor     6.3139        7.6346        .59091E-07    .86381E-06
  23  norm          .10000E-03    5.5922        .35193E-07** at limit **
  24  norm          .10000E-03    2.2432        .65417E-08** at limit **
  25  norm          .10000E-03    3.5654       -.22553E-06** at limit **
  26  norm          .10000E-03    4.8392        .43472E-07** at limit **
  27  Prefactor     .10000E-03    1.9300        .21464E-07** at limit **
  28  Prefactor     48.852        51.857        .16493E-05    .73539E-05
  29  norm          3.1537        5.5257       -.13095E-05    .25901E-05
  30  Prefactor     .10000E-03    6.5706        .34761E-07** at limit **
  31  norm          .10000E-03    2.1841       -.18457E-06** at limit **
  32  Normalizat    .67050        .22289       -.21850E-05   -.35298E-04
  33  Prefactor     1.3341        .20848       -.72027E-06   -.86864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1672
  norm       = 17.6949
  Prefactor  = 0.111306
  Prefactor  = 2.93255
  Prefactor  = 40.0989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.5198
  Prefactor  = 8.06708
  Prefactor  = 0.681489
  Prefactor  = 0.0001
  Prefactor  = 3.61875
  Prefactor  = 4.20761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 126.688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.9257
  Prefactor  = 0.0001
  Prefactor  = 6.31387
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.8524
  norm       = 3.15366
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.6705
  Prefactor  = 1.33408
 **********
 **   18 **HESSE 
 **********

 FCN=   4619.339     FROM HESSE     STATUS=OK           699 CALLS     5304 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.167        75.062        .93952E-04   -1.4855    
   2  norm          17.695        9.3945        .95213E-04   -1.4866    
   3  Prefactor     .11131        16.711        .60924E-01   -1.5641    
   4  Prefactor     2.9326        8.0169        .23732E-03   -1.5365    
   5  Prefactor     40.099        51.945        .63301E-04   -1.4441    
   6  Prefactor     .10000E-03    6.8433        .17311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    953.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.5198        5.3641        .16736E-03   -1.5283    
   9  Prefactor     8.0671        11.584        .70576E-03   -1.5140    
  10  Prefactor     .68149        4.5308        .27136E-03   -1.5543    
  11  Prefactor     .10000E-03    31.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6187        5.4534        .92895E-03   -1.5327    
  13  Prefactor     4.2076        26.173        .19642E-03   -1.5298    
  14  Prefactor     .10000E-03    7.5753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     126.69        120.06        .17881E-03   -1.3452    
  18  Prefactor     .10000E-03    11.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5081        .35869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     45.926        43.537        .59152E-04   -1.4352    
  21  Prefactor     .10000E-03    72.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.3139        7.6334        .15975E-03   -1.5205    
  23  norm          .10000E-03    5.5990        .15699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.2444        .99418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.5934        .12516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.8511        .14604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.9335        .92218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     48.852        52.046        .57365E-04   -1.4309    
  29  norm          3.1537        5.5327        .85227E-03   -1.5353    
  30  Prefactor     .10000E-03    6.5997        .17017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.1838        .97970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .67050        .26251        .30754E-03   -1.0507    
  33  Prefactor     1.3341        .24903        .22040E-03   -.82299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35582e-10
Minuit parameter uncertainties:
  1  74.0159
  2  9.39531
  3  2.72721
  4  8.01984
  5  52.0038
  6  4.12983e-05
  7  0.000655008
  8  5.36471
  9  11.5874
  10  3.5145
  11  3.62319e-05
  12  5.45417
  13  21.0013
  14  6.93907e-06
  15  4.7265e-05
  16  5.11642e-05
  17  120.292
  18  3.05696e-05
  19  2.68797e-05
  20  43.5676
  21  8.28302e-05
  22  7.63462
  23  4.607e-06
  24  4.18618e-07
  25  2.03654e-05
  26  7.79081e-06
  27  2.00554e-06
  28  52.0943
  29  5.53363
  30  1.08495e-05
  31  4.24321e-06
  32  0.262998
  33  0.249251
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.623e-05  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.334e+00  2.493e-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:  6.705e-01  2.630e-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.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360270/likelihoodResults_528076801_528336001_4FGL_J2234.2-4156_daily_bin1114.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) = 4619.33922378
delta logL = -0.00015005086334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4619.33907426
delta logL = -5.31631485501e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2081       1.0000          .0000       10.000    
     3 'Normalizat'    .67050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3341       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=   4619.339     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      276 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10140E-03    125.88        .18142E-02** at limit **
   2  Index         2.1496        5.9137        .50000        .10538E-04
   3  Normalizat    .67050        .11226E-01    .30754E-03   -.71937E-04
   4  Prefactor     1.3341        .11038E-01    .22040E-03   -.76269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101395
  Index      = 2.14963
  Normalizat = 0.670499
  Prefactor  = 1.33408
 **********
 **   18 **HESSE 
 **********

 FCN=   4619.339     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10140E-03    564.07        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1496        5.4769        .50000       -.60660    
   3  Normalizat    .67050        .24376E-01    .12302E-04   -1.0507    
   4  Prefactor     1.3341        .23968E-01    .44080E-04   -.82299    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.95795e-09
Minuit parameter uncertainties:
  1  0.0566447
  2  445.651
  3  0.0243762
  4  0.0239684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360270': 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) = 4619.33907406
delta logL = -3.28652276949e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.014e-04  5.664e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.150e+00  4.457e+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.334e+00  2.397e-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:  6.705e-01  2.438e-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/360270/cmap_HighResolution_528076801_528336001_4FGL_J2234.2-4156_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-09-28 14:59:58.012026', job_id='360270', GAL2='1.33', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632866398.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='-3.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1114' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:59:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 360270: <4FGL_J2234.2-4156_daily_bin1114> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1114> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:32 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:34 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:34 2021
Terminated at Tue Sep 28 15:00:01 2021
Results reported at Tue Sep 28 15:00:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1114 338.568 -41.9411 528076801 528336001 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 :                                   765.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            869 sec.

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

