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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1568
RA = 338.568, Dec = -41.9411
tmin = 645753601, tmax = 646012801
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='363063', job_status='RUN', time_executed='2021-09-28 14:56:00.451884', time_epoch_executed='1632866160.45' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363063

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363063/ft1_4FGL_J2234.2-4156_daily_bin1568.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363063/ft2_4FGL_J2234.2-4156_daily_bin1568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363063/ft1_4FGL_J2234.2-4156_daily_bin1568.fits outfile=/scratch/kocevski/363063/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1568.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=645753601.0 tmax=646012801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.30
user 2.09
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363063/ft2_4FGL_J2234.2-4156_daily_bin1568.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/363063/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1568.fits evtable="EVENTS" outfile="/scratch/kocevski/363063/ft1_filtered_4FGL_J2234.2-4156_daily_bin1568.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363063/ft1_filtered_4FGL_J2234.2-4156_daily_bin1568.fits" evtable="EVENTS" scfile=/scratch/kocevski/363063/ft2_4FGL_J2234.2-4156_daily_bin1568.fits sctable="SC_DATA" outfile=/scratch/kocevski/363063/ltcube_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.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/363063/ft2_4FGL_J2234.2-4156_daily_bin1568.fits
.....................!
real 12.35
user 12.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363063/ft1_filtered_4FGL_J2234.2-4156_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/363063/ft2_4FGL_J2234.2-4156_daily_bin1568.fits sctable="SC_DATA" expcube=/scratch/kocevski/363063/ltcube_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.fits outfile=/scratch/kocevski/363063/expmap_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.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/363063/ltcube_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.fits
.....................!
real 190.33
user 184.59
sys 5.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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2234.2-4156 @ 338.568 -41.9411

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/363063/ft1_filtered_4FGL_J2234.2-4156_daily_bin1568.fits scfile=/scratch/kocevski/363063/ft2_4FGL_J2234.2-4156_daily_bin1568.fits outfile=/scratch/kocevski/363063/cmap_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363063/ft1_filtered_4FGL_J2234.2-4156_daily_bin1568.fits scfile=/scratch/kocevski/363063/ft2_4FGL_J2234.2-4156_daily_bin1568.fits outfile=/scratch/kocevski/363063/cmap_HighResolution_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/363063/ft1_filtered_4FGL_J2234.2-4156_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/363063/ft2_4FGL_J2234.2-4156_daily_bin1568.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363063/Model_4FGL_J2234.2-4156_daily_bin1568.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/363063/ft1_filtered_4FGL_J2234.2-4156_daily_bin1568.fits.....................!
real 34.54
user 33.33
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/363063/ft1_filtered_4FGL_J2234.2-4156_daily_bin1568.fits', '/scratch/kocevski/363063/ft2_4FGL_J2234.2-4156_daily_bin1568.fits', expMap='/scratch/kocevski/363063/expmap_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.fits', expCube='/scratch/kocevski/363063/ltcube_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/363063/Model_4FGL_J2234.2-4156_daily_bin1568.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.2-4156'

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.331e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/363063/ft1_filtered_4FGL_J2234.2-4156_daily_bin1568.fits
Spacecraft file(s): /scratch/kocevski/363063/ft2_4FGL_J2234.2-4156_daily_bin1568.fits
Exposure map: /scratch/kocevski/363063/expmap_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.fits
Exposure cube: /scratch/kocevski/363063/ltcube_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/363063/Model_4FGL_J2234.2-4156_daily_bin1568.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) = 3832.06599914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18267E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.528       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.049       1.0000         .10000E-03   10000.    
     8 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6641       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1976       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.389       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7188       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .67379E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.102       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.595       1.0000         .10000E-03   10000.    
    23 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    86.814       1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3949       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .89073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3832.060     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     4647 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1075.0       -.43994E-04** at limit **
   2  norm          .10000E-03    14.813       -.30733E-05** at limit **
   3  Prefactor     .10000E-03    8.3416        .43513E-07** at limit **
   4  Prefactor     25.532        17.953       -.12258E-05    .49668E-04
   5  Prefactor     .10000E-03    53.410        .74756E-06** at limit **
   6  Prefactor     .10000E-03    11.849        .17087E-05** at limit **
   7  Prefactor     18.133        513.70        .42533E-05   -.26880E-05
   8  norm          .10000E-03    4.6650        .15297E-06** at limit **
   9  Prefactor     .10000E-03    4.0442        .24244E-07** at limit **
  10  Prefactor     1.6599        6.0503        .10365E-05    .11747E-04
  11  Prefactor     1.5405        288.19        .29241E-05   -.42435E-05
  12  Prefactor     10.399        11.647        .60002E-06   -.62818E-04
  13  Prefactor     .10000E-03    23.320        .10199E-06** at limit **
  14  Prefactor     5.7195        22.393        .61373E-06   -.66063E-05
  15  Prefactor     .10000E-03    278.32        .38174E-05** at limit **
  16  Prefactor     14.118        18.537        .75724E-06   -.38167E-04
  17  Prefactor     .10000E-03    62.072       -.86351E-07** at limit **
  18  Prefactor     .10000E-03    7.5486        .57653E-07** at limit **
  19  Prefactor     .10000E-03    2.4078       -.10598E-07** at limit **
  20  Prefactor     .10000E-03    114.36       -.23690E-06** at limit **
  21  Prefactor     .10000E-03    35.139        .97560E-08** at limit **
  22  Prefactor     25.600        29.658        .82601E-06   -.15011E-04
  23  norm          .10000E-03    7.0753        .21146E-07** at limit **
  24  norm          .10000E-03    9.0907       -.15390E-07** at limit **
  25  norm          .10000E-03    1.8692        .28885E-07** at limit **
  26  norm          .10000E-03    7.2027        .32008E-07** at limit **
  27  Prefactor     .10000E-03    2.4943        .14324E-07** at limit **
  28  Prefactor     86.828        50.694        .93384E-06   -.19513E-04
  29  norm          .10000E-03    2.3281        .17880E-06** at limit **
  30  Prefactor     .10000E-03    6.7715        .30394E-07** at limit **
  31  norm          .10000E-03    3.0052        .12694E-06** at limit **
  32  Normalizat    1.3950        .28404       -.36006E-05    .11381E-04
  33  Prefactor     .89060        .24732        .44743E-07   -.10068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1329
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.65988
  Prefactor  = 1.54051
  Prefactor  = 10.3992
  Prefactor  = 0.0001
  Prefactor  = 5.71955
  Prefactor  = 0.0001
  Prefactor  = 14.1184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5996
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.8279
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.39496
  Prefactor  = 0.890599
 **********
 **   18 **HESSE 
 **********

 FCN=   3832.060     FROM HESSE     STATUS=OK           679 CALLS     5326 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1078.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.814        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.3668        .17460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.532        17.885        .79284E-04   -1.4697    
   5  Prefactor     .10000E-03    53.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.133        508.06        .94274E-04   -1.4856    
   8  norm          .10000E-03    4.6678        .13059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0507        .12158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6599        6.0117        .26564E-03   -1.5450    
  11  Prefactor     1.5405        294.96        .41521E-03   -1.5460    
  12  Prefactor     10.399        11.606        .12431E-03   -1.5063    
  13  Prefactor     .10000E-03    23.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7195        22.356        .16796E-03   -1.5230    
  15  Prefactor     .10000E-03    281.93        .42002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.118        18.385        .10666E-03   -1.4956    
  17  Prefactor     .10000E-03    62.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5820        .16611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.4083        .93808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    114.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.600        29.713        .79181E-04   -1.4696    
  23  norm          .10000E-03    7.0859        .16083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.4034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.8695        .82654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.2301        .16226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.4967        .95481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     86.828        51.061        .43119E-04   -1.3842    
  29  norm          .10000E-03    2.3347        .92107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.7817        .15734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    3.0340        .10476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3950        .34093        .24876E-03   -.80774    
  33  Prefactor     .89060        .30151        .28235E-03   -.96470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10322e-10
Minuit parameter uncertainties:
  1  0.00153336
  2  0.00016599
  3  2.65857e-05
  4  17.8889
  5  0.000182278
  6  3.51391e-05
  7  193.81
  8  2.00158e-06
  9  8.81652e-06
  10  6.01384
  11  42.8474
  12  11.6087
  13  5.62642e-05
  14  22.389
  15  9.87953e-05
  16  18.3921
  17  7.87157e-05
  18  2.18079e-05
  19  1.45423e-06
  20  3.32248e-05
  21  1.52577e-05
  22  29.73
  23  5.54696e-06
  24  8.78705e-07
  25  3.83615e-07
  26  1.2118e-05
  27  1.71742e-06
  28  51.0866
  29  2.12954e-06
  30  5.59029e-06
  31  3.12211e-06
  32  0.341487
  33  0.302075
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.541e+00  4.285e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.906e-01  3.021e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.395e+00  3.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 8.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363063/likelihoodResults_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.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) = 3831.76075987
delta logL = 0.299037982849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3831.72021688
delta logL = 0.339580972638

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91897       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8271       1.0000          .0000       10.000    
     3 'Normalizat'    1.3218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93043       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3831.720     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91544        26.955        .12876E-01    .66009E-03
   2  Index         3.8284        2.9246        .83237E-01    .13859E-03
   3  Normalizat    1.3218        .57986E-01    .57538E-01   -.15782E-04
   4  Prefactor     .93051        .54128E-01    .45392E-01   -.16555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.915436
  Index      = 3.8284
  Normalizat = 1.32185
  Prefactor  = 0.930509
 **********
 **   18 **HESSE 
 **********

 FCN=   3831.720     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91544        75.524        .75370E-04   -1.5517    
   2  Index         3.8284        6.9114        .46826E-02   -.23652    
   3  Normalizat    1.3218        .26441        .25445E-03   -.82917    
   4  Prefactor     .93051        .24136        .27687E-03   -.95083    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.22791e-10
Minuit parameter uncertainties:
  1  16.6507
  2  6.71449
  3  0.264684
  4  0.24164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363063': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3831.72021637
delta logL = 0.339581484286

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  9.154e-01  1.665e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  3.828e+00  6.714e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.305e-01  2.416e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.322e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 338.568 -41.941

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/363063/cmap_HighResolution_645753601_646012801_4FGL_J2234.2-4156_daily_bin1568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', job_status='DONE', photon_flux_upper_limit='8.43e-08', time_completed='2021-09-28 15:07:22.423241', job_id='363063', GAL2='0.93', fit_tolerance='1e-08', EG2='1.32', EG='1.39', time_epoch_completed='1632866842.42', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.40e-01', ts2='0.72', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1568' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:07:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 363063: <4FGL_J2234.2-4156_daily_bin1568> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1568> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:55:37 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:55:38 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:55:38 2021
Terminated at Tue Sep 28 15:07:23 2021
Results reported at Tue Sep 28 15:07:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1568 338.568 -41.9411 645753601 646012801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.2-4156 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   680.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

