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


Performing analysis on: 4FGL_J2234.1-2656_daily_bin1085
RA = 338.543, Dec = -26.9375
tmin = 520560001, tmax = 520819201
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='354300', job_status='RUN', time_executed='2021-09-28 14:26:34.801773', time_epoch_executed='1632864394.8' WHERE source_name='4FGL J2234.1-2656' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354300/ft1_4FGL_J2234.1-2656_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354300/ft2_4FGL_J2234.1-2656_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354300/ft1_4FGL_J2234.1-2656_daily_bin1085.fits outfile=/scratch/kocevski/354300/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin1085.fits ra=338.543 dec=-26.9375 rad=12.0 tmin=520560001.0 tmax=520819201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.24
user 4.96
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/354300/ft2_4FGL_J2234.1-2656_daily_bin1085.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/354300/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/354300/ft1_filtered_4FGL_J2234.1-2656_daily_bin1085.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354300/ft1_filtered_4FGL_J2234.1-2656_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/354300/ft2_4FGL_J2234.1-2656_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/354300/ltcube_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.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/354300/ft2_4FGL_J2234.1-2656_daily_bin1085.fits
.....................!
real 11.88
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354300/ft1_filtered_4FGL_J2234.1-2656_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/354300/ft2_4FGL_J2234.1-2656_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/354300/ltcube_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.fits outfile=/scratch/kocevski/354300/expmap_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.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/354300/ltcube_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.fits
.....................!
real 189.48
user 184.69
sys 4.43

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/354300/ft1_filtered_4FGL_J2234.1-2656_daily_bin1085.fits scfile=/scratch/kocevski/354300/ft2_4FGL_J2234.1-2656_daily_bin1085.fits outfile=/scratch/kocevski/354300/cmap_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354300/ft1_filtered_4FGL_J2234.1-2656_daily_bin1085.fits scfile=/scratch/kocevski/354300/ft2_4FGL_J2234.1-2656_daily_bin1085.fits outfile=/scratch/kocevski/354300/cmap_HighResolution_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/354300/ft1_filtered_4FGL_J2234.1-2656_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/354300/ft2_4FGL_J2234.1-2656_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/354300/Model_4FGL_J2234.1-2656_daily_bin1085.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/354300/ft1_filtered_4FGL_J2234.1-2656_daily_bin1085.fits.....................!
real 60.51
user 59.09
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/354300/ft1_filtered_4FGL_J2234.1-2656_daily_bin1085.fits', '/scratch/kocevski/354300/ft2_4FGL_J2234.1-2656_daily_bin1085.fits', expMap='/scratch/kocevski/354300/expmap_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.fits', expCube='/scratch/kocevski/354300/ltcube_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/354300/Model_4FGL_J2234.1-2656_daily_bin1085.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/354300/ft1_filtered_4FGL_J2234.1-2656_daily_bin1085.fits
Spacecraft file(s): /scratch/kocevski/354300/ft2_4FGL_J2234.1-2656_daily_bin1085.fits
Exposure map: /scratch/kocevski/354300/expmap_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.fits
Exposure cube: /scratch/kocevski/354300/ltcube_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/354300/Model_4FGL_J2234.1-2656_daily_bin1085.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) = 8134.10482388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1791       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6527       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6863       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8316       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.179       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.6878       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.269       1.0000         .10000E-03   10000.    
    13 'norm      '    .15643E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.447       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3731       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21784E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2328       1.0000         .10000E-03   10000.    
    20 'Prefactor '    105.03       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8468       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99497       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68653       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=   8134.064     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2571 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5333        .16164E-06** at limit **
   2  Prefactor     3.1779        9.1359        .21910E-06   -.52022E-03
   3  Prefactor     .10000E-03    21.548        .12321E-06** at limit **
   4  norm          1.6530        2.7662        .37269E-06   -.88062E-04
   5  norm          1.6863        .34110        .32895E-08   -.21218E-03
   6  Prefactor     2.8320        4.4909        .95416E-06   -.35299E-04
   7  Prefactor     23.179        15.773        .76934E-06   -.19860E-04
   8  Prefactor     .10000E-03    1.8863       -.11155E-06** at limit **
   9  Prefactor     .10000E-03    23.806       -.22216E-06** at limit **
  10  norm          8.6867        9.4923        .52876E-07    .89669E-06
  11  Prefactor     .10000E-03    3.7988        .13729E-06** at limit **
  12  Prefactor     13.268        11.552       -.55779E-07   -.20467E-04
  13  norm          .10000E-03    1.1805       -.83339E-07** at limit **
  14  Prefactor     25.374        38.651        .32276E-05    .29827E-04
  15  Prefactor     .10000E-03    9.2454        .34343E-06** at limit **
  16  norm          7.3719        3.9342       -.88025E-07   -.21078E-04
  17  Prefactor     .10000E-03    4.3944        .75529E-07** at limit **
  18  Prefactor     .10000E-03    13.972        .17174E-06** at limit **
  19  norm          3.2327        .79404        .25259E-07   -.19700E-03
  20  Prefactor     105.06        50.531        .11706E-04    .52223E-04
  21  Prefactor     1.8364        5.3275        .59761E-06   -.87300E-03
  22  Normalizat    .99511        .15103       -.16484E-05    .56823E-04
  23  Prefactor     .68639        .12831        .38495E-06   -.11214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.17788
  Prefactor  = 0.0001
  norm       = 1.65296
  norm       = 1.68632
  Prefactor  = 2.83198
  Prefactor  = 23.1789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.6867
  Prefactor  = 0.0001
  Prefactor  = 13.2679
  norm       = 0.000100002
  Prefactor  = 25.3736
  Prefactor  = 0.0001
  norm       = 7.37188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.23267
  Prefactor  = 105.059
  Prefactor  = 1.83642
  Normalizat = 0.995112
  Prefactor  = 0.686391
 **********
 **   18 **HESSE 
 **********

 FCN=   8134.064     FROM HESSE     STATUS=OK           374 CALLS     2945 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1779        9.6353        .11364E-02   -1.5351    
   3  Prefactor     .10000E-03    21.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6530        2.7325        .17751E-03   -1.5451    
   5  norm          1.6863        .34076        .21997E-04   -1.5448    
   6  Prefactor     2.8320        4.4754        .23160E-03   -1.5371    
   7  Prefactor     23.179        15.785        .83199E-04   -1.4745    
   8  Prefactor     .10000E-03    1.8993        .12094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.6867        9.4910        .13599E-03   -1.5118    
  11  Prefactor     .10000E-03    3.8014        .17167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.268        11.565        .10996E-03   -1.4979    
  13  norm          .10000E-03    2.2058        .17045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.374        34.956        .79411E-04   -1.4700    
  15  Prefactor     .10000E-03    9.4164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3719        3.9374        .12257E-03   -1.5165    
  17  Prefactor     .10000E-03    4.3982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2327        .89003        .35442E-04   -1.5348    
  20  Prefactor     105.06        50.328        .19619E-03   -1.3654    
  21  Prefactor     1.8364        19.271        .15342E-02   -1.5437    
  22  Normalizat    .99511        .17902        .23422E-03   -.93194    
  23  Prefactor     .68639        .15136        .24401E-03   -1.0406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35335e-09
Minuit parameter uncertainties:
  1  3.94225e-06
  2  9.64
  3  7.21035e-07
  4  2.73273
  5  0.340758
  6  4.4759
  7  15.7882
  8  1.94266e-06
  9  1.20137e-05
  10  9.49264
  11  7.60623e-07
  12  11.5668
  13  0.000117404
  14  34.984
  15  2.04216e-05
  16  3.93758
  17  2.23529e-06
  18  4.0562e-05
  19  0.890036
  20  50.3488
  21  11.9026
  22  0.179128
  23  0.151452
Done.

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

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  8.687e+00  9.493e+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

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  6.864e-01  1.515e-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:  9.951e-01  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 338.543 -26.938
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 8.98e-09 +/- 9.81e-09
Energy Flux (Fixed Index): 6.25e-06 +/- 6.83e-06

TS (Fixed Index): 2.49
Ra Dec: 338.543 -26.938
Photon Flux Upper Limit: 4.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/354300/likelihoodResults_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.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): 0
logL (Free Index) = 8134.06339564
delta logL = 0.000442634809588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8134.06338985
delta logL = 0.000448423870694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7019       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9245       1.0000          .0000       5.0000    
     3 'Normalizat'    .99547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68625       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=   8134.063     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      219 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7110        519.03        .33971E-02    .14946E-04
   2  alpha         1.9256        4.0288        .42622        .42371E-05
   3  Normalizat    .99545        .15328        .46110E-01    .11698E-02
   4  Prefactor     .68625        .79656E-01    .42218E-01    .11202E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 8.71101
  alpha      = 1.92558
  Normalizat = 0.995453
  Prefactor  = 0.686247
 **********
 **   18 **HESSE 
 **********

 FCN=   8134.063     FROM HESSE     STATUS=OK            29 CALLS      248 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7110        9.5787        .13588E-03   -1.5118    
   2  alpha         1.9256        .94476        .28053E-01   -.23184    
   3  Normalizat    .99545        .16977        .23419E-03   -.93183    
   4  Prefactor     .68625        .14982        .24404E-03   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95751e-10
Minuit parameter uncertainties:
  1  9.58035
  2  0.970276
  3  0.169858
  4  0.149904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354300': 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) = 8134.06338863
delta logL = 0.000449644431683

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  8.711e+00  9.580e+00  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  1.926e+00  9.703e-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:  6.862e-01  1.499e-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:  9.955e-01  1.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 338.543 -26.938
Photon Index (Free Index): 1.93 +/- 0.97
Photon Flux (Free Index): 8.66e-09 +/- 1.37e-08
Energy Flux (Free Index): 6.41e-06 +/- 9.01e-06

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/354300/cmap_HighResolution_520560001_520819201_4FGL_J2234.1-2656_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', comment='SUCCESS', photon_flux='8.98e-09', energy_flux2='6.41e-06', photon_flux_error='9.81e-09', dlogl='4.50e-04', energy_flux='6.25e-06', photon_flux2='8.66e-09', job_status='DONE', time_completed='2021-09-28 14:38:42.477196', photon_index_error2='0.97', photon_index2='1.93', ts='2.49', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='4.03e-08', energy_flux_error2='9.01e-06', EG='1.00', time_epoch_completed='1632865122.48', return_code='0', job_id='354300', GAL2='0.69', EG2='1.00', return_code2='0', energy_flux_error='6.83e-06', photon_flux_error2='1.37e-08', ts2='2.49', photon_index='1.95' WHERE bin_id='1085' AND source_name='4FGL J2234.1-2656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:38:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 354300: <4FGL_J2234.1-2656_daily_bin1085> in cluster <slac> Done

Job <4FGL_J2234.1-2656_daily_bin1085> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:25:18 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:25:19 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:25:19 2021
Terminated at Tue Sep 28 14:38:43 2021
Results reported at Tue Sep 28 14:38:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.1-2656_daily_bin1085 338.543 -26.9375 520560001 520819201 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

