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


Performing analysis on: 4FGL_J2234.1-2656_daily_bin1090
RA = 338.543, Dec = -26.9375
tmin = 521856001, tmax = 522115201
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='354309', job_status='RUN', time_executed='2021-09-28 14:28:52.522167', time_epoch_executed='1632864532.52' WHERE source_name='4FGL J2234.1-2656' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354309

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354309/ft1_4FGL_J2234.1-2656_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354309/ft2_4FGL_J2234.1-2656_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354309/ft1_4FGL_J2234.1-2656_daily_bin1090.fits outfile=/scratch/kocevski/354309/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin1090.fits ra=338.543 dec=-26.9375 rad=12.0 tmin=521856001.0 tmax=522115201.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.76
user 3.50
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354309/ft1_filtered_4FGL_J2234.1-2656_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/354309/ft2_4FGL_J2234.1-2656_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/354309/ltcube_521856001_522115201_4FGL_J2234.1-2656_daily_bin1090.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/354309/ft2_4FGL_J2234.1-2656_daily_bin1090.fits
.....................!
real 11.91
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354309/ft1_filtered_4FGL_J2234.1-2656_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/354309/ft2_4FGL_J2234.1-2656_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/354309/ltcube_521856001_522115201_4FGL_J2234.1-2656_daily_bin1090.fits outfile=/scratch/kocevski/354309/expmap_521856001_522115201_4FGL_J2234.1-2656_daily_bin1090.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/354309/ltcube_521856001_522115201_4FGL_J2234.1-2656_daily_bin1090.fits
.....................!
real 190.68
user 185.15
sys 5.14

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/354309/ft1_filtered_4FGL_J2234.1-2656_daily_bin1090.fits scfile=/scratch/kocevski/354309/ft2_4FGL_J2234.1-2656_daily_bin1090.fits outfile=/scratch/kocevski/354309/cmap_521856001_522115201_4FGL_J2234.1-2656_daily_bin1090.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354309/ft1_filtered_4FGL_J2234.1-2656_daily_bin1090.fits scfile=/scratch/kocevski/354309/ft2_4FGL_J2234.1-2656_daily_bin1090.fits outfile=/scratch/kocevski/354309/cmap_HighResolution_521856001_522115201_4FGL_J2234.1-2656_daily_bin1090.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/354309/ft1_filtered_4FGL_J2234.1-2656_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/354309/ft2_4FGL_J2234.1-2656_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/354309/Model_4FGL_J2234.1-2656_daily_bin1090.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/354309/ft1_filtered_4FGL_J2234.1-2656_daily_bin1090.fits.....................!
real 48.24
user 46.91
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2204       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8570       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    81.105       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6997       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20376E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .60108       1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.290       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2053       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82738       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=   5867.885     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2564 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5951        .13016E-06** at limit **
   2  Prefactor     .10000E-03    23.282       -.71026E-06** at limit **
   3  Prefactor     .10000E-03    53.835       -.80761E-06** at limit **
   4  norm          .10000E-03    2.1807       -.25511E-08** at limit **
   5  norm          1.6148        .44491        .23541E-08    .72195E-04
   6  Prefactor     1.2201        12.158        .23858E-05   -.15423E-03
   7  Prefactor     17.899        25.326       -.28159E-06   -.33262E-04
   8  Prefactor     3.8560        7.3440        .28023E-06   -.78929E-04
   9  Prefactor     .10000E-03    20.174        .64881E-06** at limit **
  10  norm          .10000E-03    16.633        .33232E-07** at limit **
  11  Prefactor     .10000E-03    28.450       -.34366E-07** at limit **
  12  Prefactor     .10000E-03    31.247        .15232E-05** at limit **
  13  norm          .10000E-03    2.0800        .24374E-07** at limit **
  14  Prefactor     81.101        51.685       -.45881E-06   -.42910E-04
  15  Prefactor     .10000E-03    3.6926        .12330E-07** at limit **
  16  norm          5.6995        4.8255        .23132E-06    .17227E-03
  17  Prefactor     8.4415        20.213       -.12021E-05    .16759E-04
  18  Prefactor     .10001E-03    7.3586        .86078E-06** at limit **
  19  norm          .60117        .53032       -.15084E-06   -.10308E-03
  20  Prefactor     50.306        53.263        .20177E-05    .42351E-04
  21  Prefactor     .10000E-03    4.6256       -.56285E-07** at limit **
  22  Normalizat    1.2056        .19651       -.84606E-06   -.27561E-04
  23  Prefactor     .82719        .17009        .12504E-06   -.69908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.61484
  Prefactor  = 1.22011
  Prefactor  = 17.8988
  Prefactor  = 3.85596
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 81.1008
  Prefactor  = 0.0001
  norm       = 5.69948
  Prefactor  = 8.44147
  Prefactor  = 0.000100009
  norm       = 0.601173
  Prefactor  = 50.3056
  Prefactor  = 0.0001
  Normalizat = 1.20556
  Prefactor  = 0.827188
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.885     FROM HESSE     STATUS=OK           366 CALLS     2930 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6009        .16041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    53.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.2086        .11032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6148        .44504        .25792E-04   -1.5454    
   6  Prefactor     1.2201        11.869        .40829E-03   -1.5487    
   7  Prefactor     17.899        25.238        .94667E-04   -1.4862    
   8  Prefactor     3.8560        7.3814        .20548E-03   -1.5315    
   9  Prefactor     .10000E-03    20.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    16.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.1250        .21429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     81.101        51.657        .44598E-04   -1.3904    
  15  Prefactor     .10000E-03    3.6995        .14375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6995        4.8278        .13159E-03   -1.5230    
  17  Prefactor     8.4415        20.119        .13801E-03   -1.5127    
  18  Prefactor     .10001E-03    23.280        .36319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .60117        .52743        .46430E-04   -1.5553    
  20  Prefactor     50.306        53.622        .56550E-04   -1.4288    
  21  Prefactor     .10000E-03    4.6345        .16077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2056        .23500        .23930E-03   -.86431    
  23  Prefactor     .82719        .20312        .25300E-03   -.98734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64953e-10
Minuit parameter uncertainties:
  1  4.51939e-06
  2  1.74347e-05
  3  3.51673e-05
  4  3.03337e-06
  5  0.445038
  6  7.61244
  7  25.2526
  8  7.38315
  9  4.03759e-05
  10  1.16978e-05
  11  2.75367e-06
  12  0.00016406
  13  9.43874e-06
  14  51.6857
  15  2.37921e-07
  16  4.82816
  17  20.135
  18  0.000934587
  19  0.527436
  20  53.6731
  21  5.71358e-06
  22  0.235211
  23  0.203307
Done.

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

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  1.000e-04  1.170e-05  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:  8.272e-01  2.033e-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:  1.206e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/354309/likelihoodResults_521856001_522115201_4FGL_J2234.1-2656_daily_bin1090.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) = 5867.8849282
delta logL = -0.000285684688606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5867.70280785
delta logL = 0.181834663196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23653       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4870       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84808       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=   5867.703     FROM MIGRAD    STATUS=FAILED        97 CALLS      328 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23596        35.148        .62848E-04   -.56076E-04
   2  alpha         4.4879        3.4405        .45387E-01    .26040E-03
   3  Normalizat    1.1680        .14959        .24246E-03   -.30618E-04
   4  Prefactor     .84807        .13276        .25016E-03   -.94073E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5867.703     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      419 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23596        35.148        .98880E-04   -.56076E-04
   2  alpha         4.4879        3.4405        .37767E-02    .26040E-03
   3  Normalizat    1.1680        .14959        .91535E-04   -.30618E-04
   4  Prefactor     .84807        .13276        .83294E-04   -.94073E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5867.703     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      451 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23596        36.729        .25139E-05   -.58790E-04
   2  alpha         4.4879        3.6113        .90773E-02   -.61244E-06
   3  Normalizat    1.1680        .21880        .96984E-05   -.30478E-04
   4  Prefactor     .84807        .19189        .10006E-04   -.95436E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.235959
  alpha      = 4.48791
  Normalizat = 1.16799
  Prefactor  = 0.848072
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.703     FROM HESSE     STATUS=OK            25 CALLS      476 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23596        4.6679        .50278E-06   -1.5611    
   2  alpha         4.4879        4.7366        .36309E-03    .91928    
   3  Normalizat    1.1680        .23281        .19397E-05   -.87598    
   4  Prefactor     .84807        .20494        .20013E-05   -.97980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56636e-12
Minuit parameter uncertainties:
  1  2.09874
  2  3.93895
  3  0.233017
  4  0.205124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354309': 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) = 5867.70280774
delta logL = 0.18183477453

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  2.360e-01  2.099e+00  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  4.488e+00  3.939e+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:  8.481e-01  2.051e-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:  1.168e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.543 -26.938

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/354309/cmap_HighResolution_521856001_522115201_4FGL_J2234.1-2656_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-05', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-09-28 14:39:16.222061', job_id='354309', GAL2='0.85', fit_tolerance='1e-08', EG2='1.17', EG='1.21', time_epoch_completed='1632865156.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.82e-01', ts2='0.38', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1090' AND source_name='4FGL J2234.1-2656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:39:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 354309: <4FGL_J2234.1-2656_daily_bin1090> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.1-2656_daily_bin1090 338.543 -26.9375 521856001 522115201 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 :                                   622.29 sec.
    Max Memory :                                 1239 MB
    Average Memory :                             291.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

