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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin242
RA = 338.568, Dec = -41.9411
tmin = 302054401, tmax = 302313601
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='357077', job_status='RUN', time_executed='2021-09-28 14:37:31.593904', time_epoch_executed='1632865051.59' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='242'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357077

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357077/ft1_4FGL_J2234.2-4156_daily_bin242.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357077/ft2_4FGL_J2234.2-4156_daily_bin242.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357077/ft1_4FGL_J2234.2-4156_daily_bin242.fits outfile=/scratch/kocevski/357077/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin242.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=302054401.0 tmax=302313601.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.58
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357077/ft1_filtered_4FGL_J2234.2-4156_daily_bin242.fits" evtable="EVENTS" scfile=/scratch/kocevski/357077/ft2_4FGL_J2234.2-4156_daily_bin242.fits sctable="SC_DATA" outfile=/scratch/kocevski/357077/ltcube_302054401_302313601_4FGL_J2234.2-4156_daily_bin242.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/357077/ft2_4FGL_J2234.2-4156_daily_bin242.fits
.....................!
real 11.99
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357077/ft1_filtered_4FGL_J2234.2-4156_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/357077/ft2_4FGL_J2234.2-4156_daily_bin242.fits sctable="SC_DATA" expcube=/scratch/kocevski/357077/ltcube_302054401_302313601_4FGL_J2234.2-4156_daily_bin242.fits outfile=/scratch/kocevski/357077/expmap_302054401_302313601_4FGL_J2234.2-4156_daily_bin242.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/357077/ltcube_302054401_302313601_4FGL_J2234.2-4156_daily_bin242.fits
.....................!
real 191.31
user 185.73
sys 5.26

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/357077/ft1_filtered_4FGL_J2234.2-4156_daily_bin242.fits scfile=/scratch/kocevski/357077/ft2_4FGL_J2234.2-4156_daily_bin242.fits outfile=/scratch/kocevski/357077/cmap_302054401_302313601_4FGL_J2234.2-4156_daily_bin242.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357077/ft1_filtered_4FGL_J2234.2-4156_daily_bin242.fits scfile=/scratch/kocevski/357077/ft2_4FGL_J2234.2-4156_daily_bin242.fits outfile=/scratch/kocevski/357077/cmap_HighResolution_302054401_302313601_4FGL_J2234.2-4156_daily_bin242.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.129       1.0000         .10000E-03   10000.    
     2 'norm      '    4.1412       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.855       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8889       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.586       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2966       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9813       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3149       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.417       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.926       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.024       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0904       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7758       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.9396       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    6.0295       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    8.8921       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .75598       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2398       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=   4904.138     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4533 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.131        24.268        .27013E-06    .30921E-04
   2  norm          4.1419        4.3477        .64450E-06    .21444E-03
   3  Prefactor     .10000E-03    9.1769        .59014E-07** at limit **
   4  Prefactor     13.855        9.2909        .13016E-06   -.11599E-04
   5  Prefactor     .10000E-03    51.346        .25684E-05** at limit **
   6  Prefactor     3.8864        9.1196       -.10244E-05   -.12380E-03
   7  Prefactor     42.652        104.52        .13691E-04    .14745E-03
   8  norm          .10000E-03    2.4568        .45980E-07** at limit **
   9  Prefactor     5.2950        8.1873        .41854E-05   -.54226E-03
  10  Prefactor     5.9801        5.0749        .18434E-05   -.72910E-03
  11  Prefactor     .10000E-03    32.557        .12569E-05** at limit **
  12  Prefactor     .10000E-03    2.7712       -.31983E-07** at limit **
  13  Prefactor     7.3117        29.138       -.20582E-05   -.32068E-04
  14  Prefactor     21.409        33.295       -.17227E-05   -.88023E-04
  15  Prefactor     24.919        30.133       -.11674E-05   -.70220E-04
  16  Prefactor     10.024        12.936        .45682E-06   -.13088E-05
  17  Prefactor     .10000E-03    47.065        .45628E-05** at limit **
  18  Prefactor     7.0854        17.074        .22707E-06   -.14687E-04
  19  Prefactor     7.7737        8.9635       -.32592E-07   -.27518E-04
  20  Prefactor     .10001E-03    61.624       -.73798E-05** at limit **
  21  Prefactor     .10000E-03    26.952       -.27782E-05** at limit **
  22  Prefactor     .10000E-03    6.0892        .38487E-06** at limit **
  23  norm          .10000E-03    5.2852        .75160E-07** at limit **
  24  norm          .10000E-03    4.9874        .13420E-06** at limit **
  25  norm          5.9398        5.7257       -.17210E-06   -.12521E-03
  26  norm          .10000E-03    5.5540       -.44606E-06** at limit **
  27  Prefactor     .10000E-03    2.9564        .37412E-07** at limit **
  28  Prefactor     .10000E-03    13.894        .57119E-06** at limit **
  29  norm          6.0291        4.9885       -.14050E-06   -.24959E-03
  30  Prefactor     .10000E-03    9.9435       -.22793E-06** at limit **
  31  norm          8.8919        5.6024       -.35424E-07   -.62341E-04
  32  Normalizat    .75640        .22590        .38279E-06   -.76425E-04
  33  Prefactor     1.2394        .19964       -.20521E-05    .90747E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1312
  norm       = 4.14185
  Prefactor  = 0.0001
  Prefactor  = 13.8552
  Prefactor  = 0.000100001
  Prefactor  = 3.8864
  Prefactor  = 42.652
  norm       = 0.0001
  Prefactor  = 5.29502
  Prefactor  = 5.9801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.31169
  Prefactor  = 21.4095
  Prefactor  = 24.9186
  Prefactor  = 10.0243
  Prefactor  = 0.000100004
  Prefactor  = 7.0854
  Prefactor  = 7.77368
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.9398
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.02908
  Prefactor  = 0.0001
  norm       = 8.89192
  Normalizat = 0.756395
  Prefactor  = 1.23943
 **********
 **   18 **HESSE 
 **********

 FCN=   4904.138     FROM HESSE     STATUS=OK           691 CALLS     5224 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.131        24.266        .81548E-04   -1.4725    
   2  norm          4.1419        4.3493        .14272E-03   -1.5301    
   3  Prefactor     .10000E-03    9.3279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.855        9.2854        .10761E-03   -1.4963    
   5  Prefactor     .10000E-03    51.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8864        9.2031        .20460E-03   -1.5314    
   7  Prefactor     42.652        108.67        .61431E-04   -1.4401    
   8  norm          .10000E-03    2.4579        .10720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2950        8.4544        .87319E-03   -1.5248    
  10  Prefactor     5.9801        5.1805        .69003E-03   -1.5219    
  11  Prefactor     .10000E-03    32.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7891        .11379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3117        29.050        .14830E-03   -1.5167    
  14  Prefactor     21.409        33.387        .86549E-04   -1.4782    
  15  Prefactor     24.919        30.250        .80235E-04   -1.4709    
  16  Prefactor     10.024        12.902        .12656E-03   -1.5075    
  17  Prefactor     .10000E-03    47.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0854        17.153        .15065E-03   -1.5176    
  19  Prefactor     7.7737        8.9681        .14380E-03   -1.5150    
  20  Prefactor     .10001E-03    62.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.0980        .16883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.2880        .15724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.0229        .15275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.9398        5.7429        .15437E-03   -1.5220    
  26  norm          .10000E-03    5.5702        .16124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.9636        .11759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.0291        5.0048        .13214E-03   -1.5217    
  30  Prefactor     .10000E-03    9.9797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          8.8919        5.6033        .12758E-03   -1.5111    
  32  Normalizat    .75640        .27386        .29634E-03   -1.0171    
  33  Prefactor     1.2394        .24051        .22580E-03   -.85126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80394e-09
Minuit parameter uncertainties:
  1  24.2763
  2  4.34966
  3  2.28646e-06
  4  9.28636
  5  0.000453401
  6  9.20644
  7  109.183
  8  1.72968e-06
  9  8.45626
  10  5.18091
  11  0.000206575
  12  3.10426e-07
  13  29.1064
  14  33.4163
  15  30.2684
  16  12.906
  17  0.00086164
  18  17.1653
  19  8.96963
  20  0.00141651
  21  0.000379718
  22  2.70596e-05
  23  5.58269e-06
  24  1.07103e-05
  25  5.74347
  26  2.46386e-05
  27  2.61708e-06
  28  7.2755e-05
  29  5.00517
  30  1.76544e-05
  31  5.60359
  32  0.274356
  33  0.240727
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.066e-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.239e+00  2.407e-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:  7.564e-01  2.744e-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: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357077/likelihoodResults_302054401_302313601_4FGL_J2234.2-4156_daily_bin242.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) = 4904.13800378
delta logL = -0.000145945147779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4904.13785804
delta logL = -2.08012352232e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10645E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9222       1.0000          .0000       10.000    
     3 'Normalizat'    .75640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2394       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=   4904.138     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    840.74        .90712E-02** at limit **
   2  Index         1.9423        7.3137        .50000       -.55618E-05
   3  Normalizat    .75640        .27785E-01    .66974E-01    .22468E-04
   4  Prefactor     1.2394        .26571E-01    .51076E-01    .41527E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9423
  Normalizat = 0.756398
  Prefactor  = 1.23943
 **********
 **   18 **HESSE 
 **********

 FCN=   4904.138     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6277.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9423        8.3020        .50000       -.65801    
   3  Normalizat    .75640        .54649E-01    .29633E-03   -1.0171    
   4  Prefactor     1.2394        .52333E-01    .22580E-03   -.85126    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01929e-09
Minuit parameter uncertainties:
  1  0.000512025
  2  37.8012
  3  0.0546531
  4  0.0523352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357077': 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) = 4904.13785791
delta logL = -7.44867065805e-08

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.120e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.942e+00  3.780e+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:  1.239e+00  5.234e-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:  7.564e-01  5.465e-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/357077/cmap_HighResolution_302054401_302313601_4FGL_J2234.2-4156_daily_bin242.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-28 14:50:48.319235', job_id='357077', GAL2='1.24', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632865848.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='-7.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='242' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:50:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 357077: <4FGL_J2234.2-4156_daily_bin242> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin242 338.568 -41.9411 302054401 302313601 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 :                                   796.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

