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


Performing analysis on: 4FGL_J2234.1-2656_daily_bin932
RA = 338.543, Dec = -26.9375
tmin = 480902401, tmax = 481161601
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='353171', job_status='RUN', time_executed='2021-09-28 14:25:09.965362', time_epoch_executed='1632864309.97' WHERE source_name='4FGL J2234.1-2656' and cadence='daily' and bin_id='932'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/353171

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/353171/ft1_4FGL_J2234.1-2656_daily_bin932.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/353171/ft2_4FGL_J2234.1-2656_daily_bin932.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/353171/ft1_4FGL_J2234.1-2656_daily_bin932.fits outfile=/scratch/kocevski/353171/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin932.fits ra=338.543 dec=-26.9375 rad=12.0 tmin=480902401.0 tmax=481161601.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.72
user 3.41
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/353171/ft1_filtered_4FGL_J2234.1-2656_daily_bin932.fits" evtable="EVENTS" scfile=/scratch/kocevski/353171/ft2_4FGL_J2234.1-2656_daily_bin932.fits sctable="SC_DATA" outfile=/scratch/kocevski/353171/ltcube_480902401_481161601_4FGL_J2234.1-2656_daily_bin932.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/353171/ft2_4FGL_J2234.1-2656_daily_bin932.fits
.....................!
real 11.50
user 11.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/353171/ft1_filtered_4FGL_J2234.1-2656_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/353171/ft2_4FGL_J2234.1-2656_daily_bin932.fits sctable="SC_DATA" expcube=/scratch/kocevski/353171/ltcube_480902401_481161601_4FGL_J2234.1-2656_daily_bin932.fits outfile=/scratch/kocevski/353171/expmap_480902401_481161601_4FGL_J2234.1-2656_daily_bin932.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/353171/ltcube_480902401_481161601_4FGL_J2234.1-2656_daily_bin932.fits
.....................!
real 191.38
user 186.50
sys 4.52

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/353171/ft1_filtered_4FGL_J2234.1-2656_daily_bin932.fits scfile=/scratch/kocevski/353171/ft2_4FGL_J2234.1-2656_daily_bin932.fits outfile=/scratch/kocevski/353171/cmap_480902401_481161601_4FGL_J2234.1-2656_daily_bin932.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/353171/ft1_filtered_4FGL_J2234.1-2656_daily_bin932.fits scfile=/scratch/kocevski/353171/ft2_4FGL_J2234.1-2656_daily_bin932.fits outfile=/scratch/kocevski/353171/cmap_HighResolution_480902401_481161601_4FGL_J2234.1-2656_daily_bin932.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/353171/ft1_filtered_4FGL_J2234.1-2656_daily_bin932.fits evtable="EVENTS" scfile=/scratch/kocevski/353171/ft2_4FGL_J2234.1-2656_daily_bin932.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/353171/Model_4FGL_J2234.1-2656_daily_bin932.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/353171/ft1_filtered_4FGL_J2234.1-2656_daily_bin932.fits.....................!
real 44.82
user 43.50
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14082E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22286E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1030       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3327       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14228E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64607E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25177E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.131       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .62509       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4664       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .15965       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94792       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2505       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5303.259     FROM MIGRAD    STATUS=FAILED       887 CALLS     2570 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.343        .36285E-03** at limit **
   2  Prefactor     .10000E-03    8.9155        .18142E-02** at limit **
   3  Prefactor     .10000E-03    25.518        .18142E-02** at limit **
   4  norm          .10000E-03    1.5797        .89081E-03** at limit **
   5  norm          1.1031        .39911        .26679E-04   -.34090E-03
   6  Prefactor     4.3318        8.7144        .19352E-03   -.17976E-03
   7  Prefactor     .10000E-03    15.737        .18142E-02** at limit **
   8  Prefactor     .10010E-03    29.871        .39471E-02** at limit **
   9  Prefactor     .10000E-03    64.272        .21462E-02** at limit **
  10  norm          10.127        19.967        .12589E-03   -.19326E-03
  11  Prefactor     .49896        235.40        .64030E-02    .59645E-03
  12  Prefactor     .10000E-03    5.0153        .15906E-02** at limit **
  13  norm          1.4660        2.2466        .13161E-03   -.13738E-02
  14  Prefactor     .10000E-03    79.483        .18142E-02** at limit **
  15  Prefactor     .10000E-03    13.509        .18142E-02** at limit **
  16  norm          .10000E-03    1.3244        .81749E-03** at limit **
  17  Prefactor     .10000E-03    4.5387        .15143E-02** at limit **
  18  Prefactor     .10000E-03    2.5766        .11397E-02** at limit **
  19  norm          .15974        .41928        .75644E-04    .16126E-03
  20  Prefactor     .10000E-03    25.642        .18142E-02** at limit **
  21  Prefactor     .10000E-03    4.0532        .14299E-02** at limit **
  22  Normalizat    .94828        .25233        .27442E-03   -.66586E-03
  23  Prefactor     1.2504        .23214        .22239E-03   -.80583E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5303.259     FROM SIMPLEX   STATUS=UNCHANGED   1246 CALLS     3816 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.343        .69605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9155        .35176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.518        .63649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.5797        .79725E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1031        .39911        .69277E-06   -1.5498    
   6  Prefactor     4.3318        8.7144        .68343E-06   -1.5292    
   7  Prefactor     .10000E-03    15.737        .64218E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10010E-03    29.871        .10582E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    64.272        .16057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.127        19.967        .67283E-06   -1.5071    
  11  Prefactor     .49896        235.40        .64392E-06   -1.5567    
  12  Prefactor     .10000E-03    5.0153        .37710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4660        2.2466        .69120E-06   -1.5466    
  14  Prefactor     .10000E-03    79.483        .75386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.509        .44304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3244        .14879E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5387        .11061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5766        .56920E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15974        .41928        .69816E-06   -1.5628    
  20  Prefactor     .10000E-03    25.642        .53303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0532        .22808E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94828        .25233        .42361E-06   -.94784    
  23  Prefactor     1.2504        .23214        .37895E-06   -.84796    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5303.259     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     4167 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.344        .72569E-04** at limit **
   2  Prefactor     .10000E-03    8.9162        .36285E-03** at limit **
   3  Prefactor     .10000E-03    25.519        .36285E-03** at limit **
   4  norm          .10000E-03    1.5797        .17816E-03** at limit **
   5  norm          1.1030        .39908        .10672E-05    .59074E-04
   6  Prefactor     4.3319        8.7124        .77409E-05    .14687E-05
   7  Prefactor     .10000E-03    15.739        .36285E-03** at limit **
   8  Prefactor     .10000E-03    30.157        .78942E-03** at limit **
   9  Prefactor     .10000E-03    64.280        .42924E-03** at limit **
  10  norm          10.127        19.967        .50356E-05    .90307E-06
  11  Prefactor     .49893        242.43        .12806E-02    .22283E-05
  12  Prefactor     .10000E-03    5.0157        .31812E-03** at limit **
  13  norm          1.4661        2.2462        .52646E-05    .25914E-05
  14  Prefactor     .10000E-03    79.491        .36285E-03** at limit **
  15  Prefactor     .10000E-03    13.513        .36285E-03** at limit **
  16  norm          .10000E-03    1.3244        .16350E-03** at limit **
  17  Prefactor     .10000E-03    4.5388        .30286E-03** at limit **
  18  Prefactor     .10000E-03    2.5767        .22793E-03** at limit **
  19  norm          .15974        .41923        .30258E-05   -.22544E-05
  20  Prefactor     .10000E-03    25.642        .36285E-03** at limit **
  21  Prefactor     .10000E-03    4.0534        .28599E-03** at limit **
  22  Normalizat    .94828        .25216        .54884E-04    .53235E-04
  23  Prefactor     1.2504        .23236        .44478E-04    .46469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.10305
  Prefactor  = 4.33186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1269
  Prefactor  = 0.498931
  Prefactor  = 0.0001
  norm       = 1.46609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.15974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.948279
  Prefactor  = 1.25035
 **********
 **   18 **HESSE 
 **********

 FCN=   5303.259     FROM HESSE     STATUS=OK           348 CALLS     4515 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.343        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9162        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.519        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.5797        .35633E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1030        .39907        .36950E-06   -1.5498    
   6  Prefactor     4.3319        8.7089        .15482E-05   -1.5292    
   7  Prefactor     .10000E-03    15.739        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.169        .15788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    64.280        .85849E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.127        19.986        .10071E-05   -1.5071    
  11  Prefactor     .49893        242.09        .51224E-04   -1.5567    
  12  Prefactor     .10000E-03    5.0157        .63625E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4661        2.2462        .10529E-05   -1.5466    
  14  Prefactor     .10000E-03    79.492        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.514        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3244        .32700E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5388        .60572E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5767        .45586E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15974        .41929        .60515E-06   -1.5628    
  20  Prefactor     .10000E-03    25.642        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0534        .57197E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .94828        .25213        .10977E-04   -.94784    
  23  Prefactor     1.2504        .23241        .88955E-05   -.84796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27376e-12
Minuit parameter uncertainties:
  1  9.21977e-07
  2  8.65685e-07
  3  2.17966e-06
  4  1.48701e-07
  5  0.399075
  6  8.71141
  7  3.63562e-06
  8  4.72425e-06
  9  7.2074e-06
  10  19.9996
  11  22.0684
  12  9.87961e-07
  13  2.24631
  14  5.46514e-05
  15  3.98135e-06
  16  1.24309e-07
  17  3.54737e-07
  18  3.55064e-07
  19  0.419297
  20  8.30973e-07
  21  4.92612e-07
  22  0.252449
  23  0.232601
Done.

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

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  1.013e+01  2.000e+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.250e+00  2.326e-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.483e-01  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/353171/likelihoodResults_480902401_481161601_4FGL_J2234.1-2656_daily_bin932.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) = 5302.73187707
delta logL = 0.52747998052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5302.72270244
delta logL = 0.536654611817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6577       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0912       1.0000          .0000       5.0000    
     3 'Normalizat'    .90226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2732       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5302.723     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      307 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6523        15.597        .15552E-03   -.37355E-04
   2  alpha         3.0917        1.2809        .13803E-01    .12168E-04
   3  Normalizat    .90231        .25889        .28049E-03   -.31614E-05
   4  Prefactor     1.2733        .23367        .22054E-03   -.76665E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.6523
  alpha      = 3.09169
  Normalizat = 0.902313
  Prefactor  = 1.27325
 **********
 **   18 **HESSE 
 **********

 FCN=   5302.723     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6523        12.269        .62207E-05   -1.5192    
   2  alpha         3.0917        1.0261        .55212E-03    .23894    
   3  Normalizat    .90231        .25828        .11220E-04   -.96379    
   4  Prefactor     1.2733        .23329        .44108E-04   -.84106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41096e-11
Minuit parameter uncertainties:
  1  12.2738
  2  1.05937
  3  0.258637
  4  0.233482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/353171': 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) = 5302.72270125
delta logL = 0.536655804421

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  6.652e+00  1.227e+01  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  3.092e+00  1.059e+00  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.273e+00  2.335e-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.023e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 338.543 -26.938
Photon Index (Free Index): 3.09 +/- 1.06
Photon Flux (Free Index): 4.73e-08 +/- 5.42e-08
Energy Flux (Free Index): 9.70e-06 +/- 1.00e-05

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/353171/cmap_HighResolution_480902401_481161601_4FGL_J2234.1-2656_daily_bin932.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-05', comment='SUCCESS', energy_flux2='9.70e-06', dlogl='5.37e-01', photon_flux2='4.73e-08', job_status='DONE', time_completed='2021-09-28 14:36:06.403622', photon_index_error2='1.06', photon_index2='3.09', ts='0.35', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='7.05e-08', energy_flux_error2='1.00e-05', EG='0.95', time_epoch_completed='1632864966.4', return_code='0', job_id='353171', GAL2='1.27', EG2='0.90', return_code2='0', photon_flux_error2='5.42e-08', ts2='1.46', photon_index='1.95' WHERE bin_id='932' AND source_name='4FGL J2234.1-2656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:36:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 353171: <4FGL_J2234.1-2656_daily_bin932> in cluster <slac> Done

Job <4FGL_J2234.1-2656_daily_bin932> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:21:05 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:21:06 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:21:06 2021
Terminated at Tue Sep 28 14:36:06 2021
Results reported at Tue Sep 28 14:36:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.1-2656_daily_bin932 338.543 -26.9375 480902401 481161601 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 :                                   655.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             225.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

