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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1064
RA = 338.568, Dec = -41.9411
tmin = 515116801, tmax = 515376001
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='360189', job_status='RUN', time_executed='2021-09-28 14:48:12.422014', time_epoch_executed='1632865692.42' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360189/ft1_4FGL_J2234.2-4156_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360189/ft2_4FGL_J2234.2-4156_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360189/ft1_4FGL_J2234.2-4156_daily_bin1064.fits outfile=/scratch/kocevski/360189/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1064.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=515116801.0 tmax=515376001.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.93
user 2.73
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360189/ft2_4FGL_J2234.2-4156_daily_bin1064.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/360189/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1064.fits evtable="EVENTS" outfile="/scratch/kocevski/360189/ft1_filtered_4FGL_J2234.2-4156_daily_bin1064.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.43
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360189/ft1_filtered_4FGL_J2234.2-4156_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/360189/ft2_4FGL_J2234.2-4156_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/360189/ltcube_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.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/360189/ft2_4FGL_J2234.2-4156_daily_bin1064.fits
.....................!
real 10.22
user 9.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360189/ft1_filtered_4FGL_J2234.2-4156_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/360189/ft2_4FGL_J2234.2-4156_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/360189/ltcube_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.fits outfile=/scratch/kocevski/360189/expmap_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.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/360189/ltcube_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.fits
.....................!
real 150.68
user 146.41
sys 3.99

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/360189/ft1_filtered_4FGL_J2234.2-4156_daily_bin1064.fits scfile=/scratch/kocevski/360189/ft2_4FGL_J2234.2-4156_daily_bin1064.fits outfile=/scratch/kocevski/360189/cmap_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.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.48
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360189/ft1_filtered_4FGL_J2234.2-4156_daily_bin1064.fits scfile=/scratch/kocevski/360189/ft2_4FGL_J2234.2-4156_daily_bin1064.fits outfile=/scratch/kocevski/360189/cmap_HighResolution_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.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.46
user 0.31
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360189/ft1_filtered_4FGL_J2234.2-4156_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/360189/ft2_4FGL_J2234.2-4156_daily_bin1064.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360189/Model_4FGL_J2234.2-4156_daily_bin1064.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/360189/ft1_filtered_4FGL_J2234.2-4156_daily_bin1064.fits.....................!
real 36.96
user 35.14
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/360189/ft1_filtered_4FGL_J2234.2-4156_daily_bin1064.fits', '/scratch/kocevski/360189/ft2_4FGL_J2234.2-4156_daily_bin1064.fits', expMap='/scratch/kocevski/360189/expmap_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.fits', expCube='/scratch/kocevski/360189/ltcube_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/360189/Model_4FGL_J2234.2-4156_daily_bin1064.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/360189/ft1_filtered_4FGL_J2234.2-4156_daily_bin1064.fits
Spacecraft file(s): /scratch/kocevski/360189/ft2_4FGL_J2234.2-4156_daily_bin1064.fits
Exposure map: /scratch/kocevski/360189/expmap_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.fits
Exposure cube: /scratch/kocevski/360189/ltcube_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/360189/Model_4FGL_J2234.2-4156_daily_bin1064.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) = 6185.17633624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.043       1.0000         .10000E-03   10000.    
     2 'norm      '    .10309E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.838       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    78.373       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4121       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3637       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0799       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.274       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2102       1.0000         .10000E-03   10000.    
    23 'norm      '    .67684E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    3.5148       1.0000         .10000E-03   10000.    
    25 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.8693       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.7162       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.430       1.0000         .10000E-03   10000.    
    29 'norm      '    5.5664       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .86052       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .87489       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=   6185.168     FROM MIGRAD    STATUS=CONVERGED    868 CALLS     4567 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.041        33.047        .12148E-06    .23700E-04
   2  norm          .10000E-03    1.7767        .45461E-07** at limit **
   3  Prefactor     10.838        8.4748        .11715E-06    .37258E-04
   4  Prefactor     .10000E-03    8.7459       -.36923E-08** at limit **
   5  Prefactor     78.378        44.483       -.24141E-06   -.33974E-04
   6  Prefactor     6.4093        8.9759       -.25401E-06   -.13152E-04
   7  Prefactor     .10000E-03    48.826       -.27278E-05** at limit **
   8  norm          .10000E-03    2.0061       -.31533E-07** at limit **
   9  Prefactor     7.3640        5.8608        .96743E-07    .25528E-04
  10  Prefactor     .10000E-03    1.7542        .46473E-06** at limit **
  11  Prefactor     .10000E-03    13.342       -.17896E-06** at limit **
  12  Prefactor     7.0800        5.2263        .13538E-06    .62105E-04
  13  Prefactor     10.276        15.049        .36189E-06    .22283E-04
  14  Prefactor     .10000E-03    18.316        .56148E-06** at limit **
  15  Prefactor     .10000E-03    9.9237       -.56413E-06** at limit **
  16  Prefactor     .10000E-03    4.5382       -.61565E-07** at limit **
  17  Prefactor     .10000E-03    20.403       -.98485E-07** at limit **
  18  Prefactor     .10000E-03    7.7427        .81176E-07** at limit **
  19  Prefactor     .10000E-03    3.3569       -.11888E-06** at limit **
  20  Prefactor     .10000E-03    7.0382       -.34849E-06** at limit **
  21  Prefactor     .10000E-03    20.826       -.46226E-06** at limit **
  22  Prefactor     1.2107        9.2607        .39197E-05    .23229E-03
  23  norm          .10007E-03    22.651       -.63555E-05** at limit **
  24  norm          3.5148        3.7374       -.64173E-07    .76651E-06
  25  norm          .10000E-03    3.2536       -.22570E-05** at limit **
  26  norm          5.8693        6.6892        .10485E-06    .48098E-04
  27  Prefactor     5.7152        4.7535       -.11286E-06    .35252E-04
  28  Prefactor     12.401        42.306        .31487E-05    .10356E-03
  29  norm          5.5697        5.3865        .18710E-06    .51619E-03
  30  Prefactor     .10000E-03    4.0940        .84196E-07** at limit **
  31  norm          .10000E-03    2.3118        .12327E-05** at limit **
  32  Normalizat    .86041        .17786       -.21088E-05    .37476E-03
  33  Prefactor     .87500        .16603        .24896E-05    .23092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.0409
  norm       = 0.0001
  Prefactor  = 10.8378
  Prefactor  = 0.0001
  Prefactor  = 78.3778
  Prefactor  = 6.40928
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 7.36396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.08001
  Prefactor  = 10.2761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21073
  norm       = 0.000100065
  norm       = 3.51477
  norm       = 0.0001
  norm       = 5.86933
  Prefactor  = 5.71516
  Prefactor  = 12.4009
  norm       = 5.56974
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.860407
  Prefactor  = 0.874996
 **********
 **   18 **HESSE 
 **********

 FCN=   6185.168     FROM HESSE     STATUS=OK           691 CALLS     5258 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.041        32.991        .65850E-04   -1.4490    
   2  norm          .10000E-03    1.7920        .10215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.838        8.4626        .12170E-03   -1.5049    
   4  Prefactor     .10000E-03    8.9541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     78.378        44.384        .45362E-04   -1.3935    
   6  Prefactor     6.4093        8.9361        .15850E-03   -1.5202    
   7  Prefactor     .10000E-03    49.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0071        .10879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3640        5.8594        .14780E-03   -1.5165    
  10  Prefactor     .10000E-03    13.073        .19070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0800        5.2187        .14662E-03   -1.5176    
  13  Prefactor     10.276        15.038        .12500E-03   -1.5067    
  14  Prefactor     .10000E-03    18.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.9741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5783        .16362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.8436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3947        .14068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.0428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.2107        12.528        .20567E-02   -1.5488    
  23  norm          .10007E-03    58.702        .39491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.5148        3.7424        .15263E-03   -1.5333    
  25  norm          .10000E-03    3.4437        .14126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.8693        6.6913        .82882E-03   -1.5223    
  27  Prefactor     5.7152        4.7438        .15148E-03   -1.5230    
  28  Prefactor     12.401        42.326        .11362E-03   -1.5004    
  29  norm          5.5697        5.3896        .13266E-03   -1.5236    
  30  Prefactor     .10000E-03    4.0978        .15537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.2977        .11573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .86041        .19629        .23722E-03   -.97866    
  33  Prefactor     .87500        .18194        .22749E-03   -.97020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13596e-09
Minuit parameter uncertainties:
  1  33.0073
  2  4.00303e-06
  3  8.46349
  4  3.21816e-05
  5  44.4026
  6  8.93796
  7  0.000392851
  8  8.32859e-07
  9  5.85988
  10  0.000112005
  11  1.15362e-05
  12  5.219
  13  15.0434
  14  5.53173e-05
  15  3.22915e-05
  16  3.0621e-07
  17  9.08038e-06
  18  1.65994e-05
  19  2.7187e-06
  20  1.98951e-05
  21  4.47665e-05
  22  7.79097
  23  0.00391955
  24  3.74266
  25  6.50679e-05
  26  6.69218
  27  4.74409
  28  42.4282
  29  5.39003
  30  6.1351e-07
  31  5.10574e-06
  32  0.196457
  33  0.182064
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.154e-05  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.750e-01  1.821e-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:  8.604e-01  1.965e-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: 3.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360189/likelihoodResults_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.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) = 6185.16807323
delta logL = -0.000356852916411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6185.16771649
delta logL = -1.1767133401e-07

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 'Index     '    1.9832       1.0000          .0000       10.000    
     3 'Normalizat'    .86050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87491       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=   6185.168     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1327.7        .90712E-02** at limit **
   2  Index         1.9742        8.9875        .50000        .52388E-05
   3  Normalizat    .86040        .45199E-01    .44395E-01    .17222E-04
   4  Prefactor     .87500        .43926E-01    .44684E-01    .12625E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97424
  Normalizat = 0.860403
  Prefactor  = 0.875
 **********
 **   18 **HESSE 
 **********

 FCN=   6185.168     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      233 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6436.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9742        7.5138        .50000       -.64996    
   3  Normalizat    .86040        .13977        .23722E-03   -.97866    
   4  Prefactor     .87500        .13586        .22750E-03   -.97020    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.20275e-09
Minuit parameter uncertainties:
  1  6.15284e-05
  2  61.5788
  3  0.139829
  4  0.135909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360189': 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) = 6185.16771635
delta logL = 2.43917384068e-08

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.153e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.974e+00  6.158e+01  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:  8.750e-01  1.359e-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:  8.604e-01  1.398e-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/360189/cmap_HighResolution_515116801_515376001_4FGL_J2234.2-4156_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-03', job_status='DONE', photon_flux_upper_limit='3.65e-08', time_completed='2021-09-28 15:00:02.184610', job_id='360189', GAL2='0.87', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632866402.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1064' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:00:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 360189: <4FGL_J2234.2-4156_daily_bin1064> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1064> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:25 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:26 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:45:26 2021
Terminated at Tue Sep 28 15:00:02 2021
Results reported at Tue Sep 28 15:00:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1064 338.568 -41.9411 515116801 515376001 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 :                                   708.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             238.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            877 sec.

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

