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


Performing analysis on: 4FGL_J2234.1-2656_daily_bin644
RA = 338.543, Dec = -26.9375
tmin = 406252801, tmax = 406512001
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='352726', job_status='RUN', time_executed='2021-09-28 14:20:41.598155', time_epoch_executed='1632864041.6' WHERE source_name='4FGL J2234.1-2656' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352726

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352726/ft1_4FGL_J2234.1-2656_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352726/ft2_4FGL_J2234.1-2656_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352726/ft1_4FGL_J2234.1-2656_daily_bin644.fits outfile=/scratch/kocevski/352726/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin644.fits ra=338.543 dec=-26.9375 rad=12.0 tmin=406252801.0 tmax=406512001.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.83
user 3.59
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/352726/ft2_4FGL_J2234.1-2656_daily_bin644.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/352726/ft2_4FGL_J2234.1-2656_daily_bin644.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/352726/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin644.fits evtable="EVENTS" outfile="/scratch/kocevski/352726/ft1_filtered_4FGL_J2234.1-2656_daily_bin644.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352726/ft1_filtered_4FGL_J2234.1-2656_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/352726/ft2_4FGL_J2234.1-2656_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/352726/ltcube_406252801_406512001_4FGL_J2234.1-2656_daily_bin644.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/352726/ft2_4FGL_J2234.1-2656_daily_bin644.fits
.....................!
real 11.90
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352726/ft1_filtered_4FGL_J2234.1-2656_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/352726/ft2_4FGL_J2234.1-2656_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/352726/ltcube_406252801_406512001_4FGL_J2234.1-2656_daily_bin644.fits outfile=/scratch/kocevski/352726/expmap_406252801_406512001_4FGL_J2234.1-2656_daily_bin644.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/352726/ltcube_406252801_406512001_4FGL_J2234.1-2656_daily_bin644.fits
.....................!
real 190.86
user 185.17
sys 5.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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2234.1-2656 @ 338.543 -26.9375

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/352726/ft1_filtered_4FGL_J2234.1-2656_daily_bin644.fits scfile=/scratch/kocevski/352726/ft2_4FGL_J2234.1-2656_daily_bin644.fits outfile=/scratch/kocevski/352726/cmap_406252801_406512001_4FGL_J2234.1-2656_daily_bin644.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.543 yref=-26.9375 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/352726/ft1_filtered_4FGL_J2234.1-2656_daily_bin644.fits scfile=/scratch/kocevski/352726/ft2_4FGL_J2234.1-2656_daily_bin644.fits outfile=/scratch/kocevski/352726/cmap_HighResolution_406252801_406512001_4FGL_J2234.1-2656_daily_bin644.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.543 yref=-26.9375 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.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/352726/ft1_filtered_4FGL_J2234.1-2656_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/352726/ft2_4FGL_J2234.1-2656_daily_bin644.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/352726/Model_4FGL_J2234.1-2656_daily_bin644.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/352726/ft1_filtered_4FGL_J2234.1-2656_daily_bin644.fits.....................!
real 55.93
user 54.23
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/352726/ft1_filtered_4FGL_J2234.1-2656_daily_bin644.fits', '/scratch/kocevski/352726/ft2_4FGL_J2234.1-2656_daily_bin644.fits', expMap='/scratch/kocevski/352726/expmap_406252801_406512001_4FGL_J2234.1-2656_daily_bin644.fits', expCube='/scratch/kocevski/352726/ltcube_406252801_406512001_4FGL_J2234.1-2656_daily_bin644.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/352726/Model_4FGL_J2234.1-2656_daily_bin644.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.1-2656'

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  9.136e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  1.955e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/352726/ft1_filtered_4FGL_J2234.1-2656_daily_bin644.fits
Spacecraft file(s): /scratch/kocevski/352726/ft2_4FGL_J2234.1-2656_daily_bin644.fits
Exposure map: /scratch/kocevski/352726/expmap_406252801_406512001_4FGL_J2234.1-2656_daily_bin644.fits
Exposure cube: /scratch/kocevski/352726/ltcube_406252801_406512001_4FGL_J2234.1-2656_daily_bin644.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/352726/Model_4FGL_J2234.1-2656_daily_bin644.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) = 7388.69744174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.052       1.0000         .10000E-03   10000.    
     4 'norm      '    4.2659       1.0000         .10000E-03   10000.    
     5 'norm      '    .53107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.979       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7989       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11726E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    29.685       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.432       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.942       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2695       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.458       1.0000         .10000E-03   10000.    
    16 'norm      '    .55133       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7147       1.0000         .10000E-03   10000.    
    19 'norm      '    .28417       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .60249       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0310       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7388.684     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2534 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.877       -.61590E-06** at limit **
   2  Prefactor     .10000E-03    7.5016        .28763E-06** at limit **
   3  Prefactor     46.062        34.802        .15391E-05    .26294E-03
   4  norm          4.2660        2.7200       -.19166E-07   -.72044E-04
   5  norm          .53109        .24197        .53456E-09   -.16183E-03
   6  Prefactor     8.3636        8.6829        .93201E-07   -.28171E-04
   7  Prefactor     30.980        16.416       -.19706E-07   -.36499E-04
   8  Prefactor     4.7989        5.0168        .61554E-06    .33224E-03
   9  Prefactor     .10000E-03    77.037       -.43168E-06** at limit **
  10  norm          29.687        16.553       -.11301E-06   -.72150E-04
  11  Prefactor     11.433        13.908       -.58754E-07   -.22865E-04
  12  Prefactor     11.943        8.9889        .91677E-07   -.59799E-04
  13  norm          1.2698        1.3114       -.41624E-08   -.21817E-03
  14  Prefactor     .10000E-03    17.184        .23065E-06** at limit **
  15  Prefactor     18.458        10.697        .51889E-06   -.25933E-03
  16  norm          .54994        2.5022        .16478E-05   -.31625E-03
  17  Prefactor     .10000E-03    10.679       -.11010E-06** at limit **
  18  Prefactor     9.7237        7.3786       -.42729E-06   -.36143E-03
  19  norm          .28403        .38499       -.24485E-07   -.80735E-03
  20  Prefactor     .10000E-03    11.197        .32287E-06** at limit **
  21  Prefactor     .10000E-03    2.8814        .25494E-07** at limit **
  22  Normalizat    .60255        .15696       -.65350E-06   -.56280E-04
  23  Prefactor     1.0309        .13733       -.16514E-07   -.91427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.0616
  norm       = 4.26597
  norm       = 0.531087
  Prefactor  = 8.36363
  Prefactor  = 30.9798
  Prefactor  = 4.79891
  Prefactor  = 0.0001
  norm       = 29.6872
  Prefactor  = 11.4334
  Prefactor  = 11.9427
  norm       = 1.26982
  Prefactor  = 0.0001
  Prefactor  = 18.4582
  norm       = 0.549941
  Prefactor  = 0.0001
  Prefactor  = 9.72367
  norm       = 0.284033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.60255
  Prefactor  = 1.03088
 **********
 **   18 **HESSE 
 **********

 FCN=   7388.684     FROM HESSE     STATUS=OK           374 CALLS     2908 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.4963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.062        36.530        .59083E-04   -1.4350    
   4  norm          4.2660        2.7183        .10647E-03   -1.5295    
   5  norm          .53109        .24054        .27195E-04   -1.5562    
   6  Prefactor     8.3636        8.6789        .13863E-03   -1.5129    
   7  Prefactor     30.980        16.414        .71987E-04   -1.4594    
   8  Prefactor     4.7989        5.0728        .18365E-03   -1.5270    
   9  Prefactor     .10000E-03    77.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          29.687        16.553        .73536E-04   -1.4618    
  11  Prefactor     11.433        13.916        .11848E-03   -1.5032    
  12  Prefactor     11.943        8.9925        .11592E-03   -1.5017    
  13  norm          1.2698        1.2886        .96478E-04   -1.5483    
  14  Prefactor     .10000E-03    17.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.458        10.815        .46613E-03   -1.4848    
  16  norm          .54994        2.6752        .25035E-03   -1.5560    
  17  Prefactor     .10000E-03    10.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.7237        7.0491        .12857E-03   -1.5084    
  19  norm          .28403        .33608        .50805E-03   -1.5601    
  20  Prefactor     .10000E-03    11.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8905        .14232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .60255        .18676        .27447E-03   -1.0788    
  23  Prefactor     1.0309        .16428        .20242E-03   -.91707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58924e-10
Minuit parameter uncertainties:
  1  0.000139551
  2  3.28479e-05
  3  36.5473
  4  2.71837
  5  0.240538
  6  8.68018
  7  16.4168
  8  5.07329
  9  0.000118108
  10  16.5551
  11  13.9202
  12  8.9935
  13  1.28862
  14  6.11469e-05
  15  10.816
  16  2.42583
  17  1.37855e-06
  18  7.04973
  19  0.336079
  20  5.33998e-05
  21  5.61427e-06
  22  0.186957
  23  0.16436
Done.

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

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  2.969e+01  1.656e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  1.955e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.031e+00  1.644e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  6.026e-01  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.91
Ra Dec: 338.543 -26.938
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 3.07e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.19e-05

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): 0
logL (Free Index) = 7388.41617823
delta logL = 0.267495696588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7388.41296751
delta logL = 0.270706413959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.186       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6060       1.0000          .0000       5.0000    
     3 'Normalizat'    .61372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0268       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7388.413     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      232 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.175        20.851        .18540E-02   -.41899E-04
   2  alpha         1.6056        .46592        .36460       -.13525E-04
   3  Normalizat    .61335        .14306        .61539E-01    .83928E-04
   4  Prefactor     1.0269        .13510        .41523E-01    .38135E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.1749
  alpha      = 1.60558
  Normalizat = 0.613354
  Prefactor  = 1.0269
 **********
 **   18 **HESSE 
 **********

 FCN=   7388.413     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.175        18.101        .74161E-04   -1.4627    
   2  alpha         1.6056        .46782        .13820E-01   -.36588    
   3  Normalizat    .61335        .16709        .27225E-03   -1.0742    
   4  Prefactor     1.0269        .15880        .20284E-03   -.91838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92019e-10
Minuit parameter uncertainties:
  1  18.1039
  2  0.471005
  3  0.167226
  4  0.158868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352726': 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): 0
logL (Free Index) = 7388.41296146
delta logL = 0.270712465844

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  2.917e+01  1.810e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  1.606e+00  4.710e-01  0.000e+00  5.000e+00 ( 1.000e+00)
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.027e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  6.134e-01  1.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.45
Ra Dec: 338.543 -26.938
Photon Index (Free Index): 1.61 +/- 0.47
Photon Flux (Free Index): 2.03e-08 +/- 1.71e-08
Energy Flux (Free Index): 3.23e-05 +/- 2.85e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/352726/cmap_HighResolution_406252801_406512001_4FGL_J2234.1-2656_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.07e-08', energy_flux2='3.23e-05', photon_flux_error='1.71e-08', dlogl='2.71e-01', energy_flux='2.14e-05', photon_flux2='2.03e-08', job_status='DONE', time_completed='2021-09-28 14:30:58.177970', photon_index_error2='0.47', photon_index2='1.61', ts='14.91', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.85e-05', EG='0.60', time_epoch_completed='1632864658.18', return_code='0', job_id='352726', GAL2='1.03', EG2='0.61', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='1.71e-08', ts2='15.45', photon_index='1.95' WHERE bin_id='644' AND source_name='4FGL J2234.1-2656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:30:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 352726: <4FGL_J2234.1-2656_daily_bin644> in cluster <slac> Done

Job <4FGL_J2234.1-2656_daily_bin644> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:20:24 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:20:25 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:20:25 2021
Terminated at Tue Sep 28 14:30:59 2021
Results reported at Tue Sep 28 14:30:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.1-2656_daily_bin644 338.543 -26.9375 406252801 406512001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.1-2656 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   616.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            635 sec.

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

