/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 169 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_bin1332
RA = 338.568, Dec = -41.9411
tmin = 584582401, tmax = 584841601
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='361652', job_status='RUN', time_executed='2021-09-28 14:53:29.650509', time_epoch_executed='1632866009.65' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361652

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361652/ft1_4FGL_J2234.2-4156_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361652/ft2_4FGL_J2234.2-4156_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361652/ft1_4FGL_J2234.2-4156_daily_bin1332.fits outfile=/scratch/kocevski/361652/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1332.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=584582401.0 tmax=584841601.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.84
user 2.61
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361652/ft2_4FGL_J2234.2-4156_daily_bin1332.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/361652/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1332.fits evtable="EVENTS" outfile="/scratch/kocevski/361652/ft1_filtered_4FGL_J2234.2-4156_daily_bin1332.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361652/ft1_filtered_4FGL_J2234.2-4156_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/361652/ft2_4FGL_J2234.2-4156_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/361652/ltcube_584582401_584841601_4FGL_J2234.2-4156_daily_bin1332.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/361652/ft2_4FGL_J2234.2-4156_daily_bin1332.fits
.....................!
real 12.36
user 12.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361652/ft1_filtered_4FGL_J2234.2-4156_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/361652/ft2_4FGL_J2234.2-4156_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/361652/ltcube_584582401_584841601_4FGL_J2234.2-4156_daily_bin1332.fits outfile=/scratch/kocevski/361652/expmap_584582401_584841601_4FGL_J2234.2-4156_daily_bin1332.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/361652/ltcube_584582401_584841601_4FGL_J2234.2-4156_daily_bin1332.fits
.....................!
real 190.67
user 185.68
sys 4.66

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361652/ft1_filtered_4FGL_J2234.2-4156_daily_bin1332.fits scfile=/scratch/kocevski/361652/ft2_4FGL_J2234.2-4156_daily_bin1332.fits outfile=/scratch/kocevski/361652/cmap_HighResolution_584582401_584841601_4FGL_J2234.2-4156_daily_bin1332.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/361652/ft1_filtered_4FGL_J2234.2-4156_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/361652/ft2_4FGL_J2234.2-4156_daily_bin1332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361652/Model_4FGL_J2234.2-4156_daily_bin1332.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/361652/ft1_filtered_4FGL_J2234.2-4156_daily_bin1332.fits.....................!
real 24.98
user 23.78
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94647E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.166       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    242.57       1.0000         .10000E-03   10000.    
     8 'norm      '    72.795       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.869       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.248       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.250       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.557       1.0000         .10000E-03   10000.    
    15 'Prefactor '    131.36       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8733       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.9018       1.0000         .10000E-03   10000.    
    23 'norm      '    4.6440       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.9331       1.0000         .10000E-03   10000.    
    26 'norm      '    4.9375       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.6091       1.0000         .10000E-03   10000.    
    28 'Prefactor '    59.223       1.0000         .10000E-03   10000.    
    29 'norm      '    1.2620       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .79153       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .69150       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=   2128.664     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     5240 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    1425.4       -.35502E-05** at limit **
   2  norm          .10000E-03    20.011       -.11196E-06** at limit **
   3  Prefactor     .10000E-03    27.983       -.33196E-07** at limit **
   4  Prefactor     54.156        58.212       -.57456E-06   -.20513E-05
   5  Prefactor     .10000E-03    162.13        .26344E-07** at limit **
   6  Prefactor     .10000E-03    141.58        .39151E-06** at limit **
   7  Prefactor     242.57        810.28        .40332E-05   -.13666E-06
   8  norm          72.810        55.829       -.39677E-07    .44414E-05
   9  Prefactor     .10000E-03    24.109        .64338E-07** at limit **
  10  Prefactor     15.871        13.459        .40901E-07   -.75321E-05
  11  Prefactor     .10000E-03    33.286        .75560E-08** at limit **
  12  Prefactor     17.255        24.390       -.44615E-07   -.33553E-05
  13  Prefactor     26.252        33.326        .13371E-06   -.19190E-05
  14  Prefactor     25.556        33.310        .12069E-06   -.24451E-05
  15  Prefactor     131.38        124.95       -.25813E-06    .11151E-05
  16  Prefactor     9.8595        37.130        .49960E-06   -.61017E-06
  17  Prefactor     .10000E-03    109.68        .74735E-07** at limit **
  18  Prefactor     .10000E-03    24.271        .15849E-06** at limit **
  19  Prefactor     .10000E-03    16.854        .31921E-06** at limit **
  20  Prefactor     .10000E-03    90.958       -.38180E-07** at limit **
  21  Prefactor     .10000E-03    114.01        .19079E-06** at limit **
  22  Prefactor     9.9023        15.151        .58575E-07   -.12869E-05
  23  norm          4.6437        10.309        .43173E-05   -.76213E-05
  24  norm          .10000E-03    4.8157        .44007E-08** at limit **
  25  norm          2.9329        4.0321       -.85228E-07   -.10963E-06
  26  norm          4.9373        7.3612        .13177E-06   -.22976E-04
  27  Prefactor     4.6094        5.9244       -.21991E-07   -.81557E-05
  28  Prefactor     59.226        45.905       -.29479E-06   -.17988E-04
  29  norm          1.2622        4.0683        .45609E-06    .21087E-04
  30  Prefactor     .10000E-03    13.882       -.50959E-08** at limit **
  31  norm          .10000E-03    1.8210        .19064E-07** at limit **
  32  Normalizat    .79135        .29934       -.75943E-06   -.12387E-04
  33  Prefactor     .69166        .29365       -.14103E-06   -.15777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.1559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 242.565
  norm       = 72.8097
  Prefactor  = 0.0001
  Prefactor  = 15.8706
  Prefactor  = 0.0001
  Prefactor  = 17.2547
  Prefactor  = 26.2521
  Prefactor  = 25.5559
  Prefactor  = 131.381
  Prefactor  = 9.85948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.90232
  norm       = 4.64374
  norm       = 0.0001
  norm       = 2.93294
  norm       = 4.93734
  Prefactor  = 4.6094
  Prefactor  = 59.2261
  norm       = 1.26219
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.791349
  Prefactor  = 0.691662
 **********
 **   18 **HESSE 
 **********

 FCN=   2128.664     FROM HESSE     STATUS=OK           693 CALLS     5933 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    1428.4        .18176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    20.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     54.156        58.490        .54500E-04   -1.4235    
   5  Prefactor     .10000E-03    162.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    141.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     242.57        809.20        .13000E-03   -1.2580    
   8  norm          72.810        55.868        .23528E-03   -1.3999    
   9  Prefactor     .10000E-03    24.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.871        13.460        .10054E-03   -1.4911    
  11  Prefactor     .10000E-03    33.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.255        24.334        .96437E-04   -1.4877    
  13  Prefactor     26.252        33.362        .78189E-04   -1.4683    
  14  Prefactor     25.556        33.314        .79241E-04   -1.4696    
  15  Prefactor     131.38        124.42        .35131E-04   -1.3410    
  16  Prefactor     9.8595        36.909        .12753E-03   -1.5080    
  17  Prefactor     .10000E-03    109.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.294        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    91.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    114.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.9023        15.145        .12734E-03   -1.5079    
  23  norm          4.6437        10.316        .93379E-03   -1.5277    
  24  norm          .10000E-03    4.8407        .98880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.9329        4.0212        .10012E-03   -1.5365    
  26  norm          4.9373        7.3566        .14732E-03   -1.5264    
  27  Prefactor     4.6094        5.9133        .12312E-03   -1.5279    
  28  Prefactor     59.226        45.145        .52134E-04   -1.4167    
  29  norm          1.2622        3.9036        .13685E-03   -1.5483    
  30  Prefactor     .10000E-03    13.967        .16776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.8239        .60765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .79135        .36382        .25060E-03   -1.0039    
  33  Prefactor     .69166        .35561        .26951E-03   -1.0385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22288e-11
Minuit parameter uncertainties:
  1  0.0123946
  2  1.87245e-06
  3  2.22196e-05
  4  58.5523
  5  6.91367e-07
  6  1.6604e-07
  7  852.101
  8  55.9082
  9  2.162e-05
  10  13.4623
  11  7.28822e-06
  12  24.3481
  13  33.386
  14  33.3382
  15  124.666
  16  36.9946
  17  3.94376e-05
  18  2.87764e-05
  19  1.57303e-05
  20  7.38399e-05
  21  0.000115946
  22  15.1504
  23  10.3197
  24  4.35806e-07
  25  4.02158
  26  7.35795
  27  5.91409
  28  45.171
  29  3.90439
  30  2.30069e-06
  31  3.77468e-08
  32  0.364946
  33  0.356782
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.288e-06  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:  6.917e-01  3.568e-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.913e-01  3.649e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361652/likelihoodResults_584582401_584841601_4FGL_J2234.2-4156_daily_bin1332.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) = 2128.66411199
delta logL = -0.000142128129028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2128.66397179
delta logL = -1.9253575374e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15775E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2883       1.0000          .0000       10.000    
     3 'Normalizat'    .79134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69166       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=   2128.664     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10310E-03    8.5816        .18142E-01** at limit **
   2  Index         2.2062        5.3997        .50000        .11122E-04
   3  Normalizat    .79135        .38454E-02    .25060E-03    .85084E-04
   4  Prefactor     .69166        .39087E-02    .26951E-03    .77659E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001031
  Index      = 2.20622
  Normalizat = 0.79135
  Prefactor  = 0.691662
 **********
 **   18 **HESSE 
 **********

 FCN=   2128.664     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10310E-03    140.90        .22876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2062        5.0448        .50000       -.59289    
   3  Normalizat    .79135        .15694E-01    .10024E-04   -1.0039    
   4  Prefactor     .69166        .15952E-01    .10780E-04   -1.0385    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73345e-09
Minuit parameter uncertainties:
  1  0.0418965
  2  320.85
  3  0.0156937
  4  0.0159521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361652': 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) = 2128.66397036
delta logL = -4.9872096497e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.031e-04  4.190e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.206e+00  3.208e+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:  6.917e-01  1.595e-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.913e-01  1.569e-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/361652/cmap_HighResolution_584582401_584841601_4FGL_J2234.2-4156_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-28 15:02:23.783614', job_id='361652', GAL2='0.69', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632866543.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-4.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1332' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:02:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 361652: <4FGL_J2234.2-4156_daily_bin1332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1332 338.568 -41.9411 584582401 584841601 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 :                                   532.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            712 sec.

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

