/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 5 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 = 7659
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin6
RA = 338.568, Dec = -41.9411
tmin = 240883201, tmax = 241142401
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='355627', job_status='RUN', time_executed='2021-09-28 14:30:47.784383', time_epoch_executed='1632864647.78' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355627

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355627/ft1_4FGL_J2234.2-4156_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355627/ft2_4FGL_J2234.2-4156_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355627/ft1_4FGL_J2234.2-4156_daily_bin6.fits outfile=/scratch/kocevski/355627/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin6.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=240883201.0 tmax=241142401.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 1.49
user 1.31
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355627/ft1_filtered_4FGL_J2234.2-4156_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/355627/ft2_4FGL_J2234.2-4156_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/355627/ltcube_240883201_241142401_4FGL_J2234.2-4156_daily_bin6.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/355627/ft2_4FGL_J2234.2-4156_daily_bin6.fits
.....................!
real 17.30
user 16.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355627/ft1_filtered_4FGL_J2234.2-4156_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/355627/ft2_4FGL_J2234.2-4156_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/355627/ltcube_240883201_241142401_4FGL_J2234.2-4156_daily_bin6.fits outfile=/scratch/kocevski/355627/expmap_240883201_241142401_4FGL_J2234.2-4156_daily_bin6.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/355627/ltcube_240883201_241142401_4FGL_J2234.2-4156_daily_bin6.fits
.....................!
real 189.46
user 184.91
sys 4.19

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/355627/ft1_filtered_4FGL_J2234.2-4156_daily_bin6.fits scfile=/scratch/kocevski/355627/ft2_4FGL_J2234.2-4156_daily_bin6.fits outfile=/scratch/kocevski/355627/cmap_240883201_241142401_4FGL_J2234.2-4156_daily_bin6.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355627/ft1_filtered_4FGL_J2234.2-4156_daily_bin6.fits scfile=/scratch/kocevski/355627/ft2_4FGL_J2234.2-4156_daily_bin6.fits outfile=/scratch/kocevski/355627/cmap_HighResolution_240883201_241142401_4FGL_J2234.2-4156_daily_bin6.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/355627/ft1_filtered_4FGL_J2234.2-4156_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/355627/ft2_4FGL_J2234.2-4156_daily_bin6.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/355627/Model_4FGL_J2234.2-4156_daily_bin6.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/355627/ft1_filtered_4FGL_J2234.2-4156_daily_bin6.fits.....................!
real 47.08
user 45.76
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    19.009       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.621       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15677E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    138.50       1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8523       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8051       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30999       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.531       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    138.89       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.012       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13621E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8994       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .60469       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    37.953       1.0000         .10000E-03   10000.    
    29 'norm      '    .10743E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    6.8708       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .80229       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .90645       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=   6173.938     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     4551 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.427        .34802E-07** at limit **
   2  norm          19.010        5.3032        .27393E-07    .41571E-05
   3  Prefactor     10.621        7.8329        .12786E-06    .33566E-04
   4  Prefactor     .10000E-03    2.0896       -.11014E-07** at limit **
   5  Prefactor     .10000E-03    16.518        .46480E-06** at limit **
   6  Prefactor     .10000E-03    18.208        .38600E-05** at limit **
   7  Prefactor     138.54        100.57       -.26683E-06   -.11067E-04
   8  norm          .10000E-03    8.7598        .17086E-06** at limit **
   9  Prefactor     16.215        8.7466        .60983E-07    .14966E-03
  10  Prefactor     1.8517        3.4510        .62992E-06    .17256E-03
  11  Prefactor     .10000E-03    18.065        .69754E-07** at limit **
  12  Prefactor     5.8053        5.4502        .53282E-07   -.47611E-04
  13  Prefactor     .23111        12.025       -.24533E-05    .51374E-03
  14  Prefactor     29.535        21.403        .49772E-07    .11830E-03
  15  Prefactor     .10000E-03    20.241        .61810E-06** at limit **
  16  Prefactor     .10000E-03    13.954        .15855E-05** at limit **
  17  Prefactor     138.94        112.74       -.29459E-06    .48660E-04
  18  Prefactor     10.012        9.3704        .10535E-06    .58517E-04
  19  Prefactor     .10000E-03    1.6538       -.19520E-07** at limit **
  20  Prefactor     .10000E-03    61.884        .85512E-06** at limit **
  21  Prefactor     .10000E-03    17.717        .75113E-07** at limit **
  22  Prefactor     .10000E-03    3.5392        .32672E-07** at limit **
  23  norm          .10000E-03    3.9991       -.17681E-07** at limit **
  24  norm          1.8993        3.0139        .10336E-06    .39834E-04
  25  norm          .10000E-03    1.4922       -.15019E-06** at limit **
  26  norm          .60402        5.1039        .93738E-06   -.16821E-03
  27  Prefactor     .10000E-03    1.1783       -.12127E-07** at limit **
  28  Prefactor     37.928        27.491        .17539E-05    .54236E-03
  29  norm          .10000E-03    2.8516       -.22035E-05** at limit **
  30  Prefactor     .10000E-03    3.5924       -.59333E-07** at limit **
  31  norm          6.8675        4.7904        .54825E-06    .12159E-02
  32  Normalizat    .80228        .17224       -.33736E-06    .21122E-03
  33  Prefactor     .90654        .15662       -.11616E-06    .16351E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 19.0095
  Prefactor  = 10.6208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 138.536
  norm       = 0.0001
  Prefactor  = 16.215
  Prefactor  = 1.85171
  Prefactor  = 0.0001
  Prefactor  = 5.80531
  Prefactor  = 0.23111
  Prefactor  = 29.5348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 138.941
  Prefactor  = 10.0122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.89931
  norm       = 0.0001
  norm       = 0.604016
  Prefactor  = 0.0001
  Prefactor  = 37.9277
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.86749
  Normalizat = 0.802277
  Prefactor  = 0.906545
 **********
 **   18 **HESSE 
 **********

 FCN=   6173.938     FROM HESSE     STATUS=OK           695 CALLS     5246 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.010        5.3023        .91863E-04   -1.4836    
   3  Prefactor     10.621        7.8326        .12294E-03   -1.5056    
   4  Prefactor     .10000E-03    2.0943        .11090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     138.54        99.794        .17113E-03   -1.3348    
   8  norm          .10000E-03    9.1000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.215        8.7532        .99467E-04   -1.4902    
  10  Prefactor     1.8517        3.4238        .18592E-03   -1.5436    
  11  Prefactor     .10000E-03    18.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8053        5.4412        .16669E-03   -1.5226    
  13  Prefactor     .23111        105.31        .45175E-02   -1.5612    
  14  Prefactor     29.535        21.401        .73727E-04   -1.4621    
  15  Prefactor     .10000E-03    20.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     138.94        112.14        .17090E-03   -1.3345    
  18  Prefactor     10.012        9.3830        .12664E-03   -1.5075    
  19  Prefactor     .10000E-03    1.6560        .98674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    62.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.5412        .14436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.0080        .15346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8993        2.9891        .16782E-03   -1.5432    
  25  norm          .10000E-03    1.4945        .93747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .60402        10.960        .33495E-02   -1.5553    
  27  Prefactor     .10000E-03    1.1788        .83297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     37.928        28.246        .65058E-04   -1.4475    
  29  norm          .10000E-03    4.2049        .22266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.5967        .14544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          6.8675        4.8585        .13712E-03   -1.5184    
  32  Normalizat    .80228        .20135        .25149E-03   -.99984    
  33  Prefactor     .90654        .18380        .22831E-03   -.95913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82082e-08
Minuit parameter uncertainties:
  1  5.26321e-05
  2  5.30243
  3  7.8334
  4  2.16389e-07
  5  9.44133e-05
  6  0.000264
  7  99.9159
  8  1.15211e-05
  9  8.7539
  10  3.42417
  11  2.57951e-05
  12  5.44163
  13  9.88204
  14  21.4068
  15  7.07169e-05
  16  5.75881e-05
  17  112.308
  18  9.38438
  19  5.58677e-07
  20  0.000305348
  21  4.77984e-05
  22  3.94929e-06
  23  2.24698e-06
  24  2.98935
  25  3.60852e-06
  26  5.14652
  27  2.55613e-07
  28  28.2555
  29  9.91613e-05
  30  5.80244e-06
  31  4.85882
  32  0.201536
  33  0.183922
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.580e-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:  9.065e-01  1.839e-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.023e-01  2.015e-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: 4.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/355627/likelihoodResults_240883201_241142401_4FGL_J2234.2-4156_daily_bin6.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) = 6173.93796952
delta logL = -0.0002635255114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6173.93770668
delta logL = -6.78416654409e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3775       1.0000          .0000       10.000    
     3 'Normalizat'    .80227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90655       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=   6173.938     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7164        .90712E-02** at limit **
   2  Index         2.3592        6.3315        .50000        .10369E-04
   3  Normalizat    .80228        .19717E-02    .43640E-01    .42785E-03
   4  Prefactor     .90655        .19039E-02    .45088E-01    .18926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.35921
  Normalizat = 0.802276
  Prefactor  = 0.906546
 **********
 **   18 **HESSE 
 **********

 FCN=   6173.938     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3592        7.0609        .50000       -.55643    
   3  Normalizat    .80228        .91863E-02    .12574E-02   -.99984    
   4  Prefactor     .90655        .88714E-02    .22831E-03   -.95913    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43699e-07
Minuit parameter uncertainties:
  1  0.00026348
  2  236.451
  3  0.0091863
  4  0.00887141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355627': 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) = 6173.93770656
delta logL = -5.66905328014e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.635e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.359e+00  2.365e+02  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.065e-01  8.871e-03  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.023e-01  9.186e-03  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/355627/cmap_HighResolution_240883201_241142401_4FGL_J2234.2-4156_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-03', job_status='DONE', photon_flux_upper_limit='4.23e-08', time_completed='2021-09-28 14:45:53.401951', job_id='355627', GAL2='0.91', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1632865553.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-5.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='6' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:45:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 355627: <4FGL_J2234.2-4156_daily_bin6> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin6> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 14:30:33 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:30:34 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:30:34 2021
Terminated at Tue Sep 28 14:45:54 2021
Results reported at Tue Sep 28 14:45:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin6 338.568 -41.9411 240883201 241142401 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 :                                   905.18 sec.
    Max Memory :                                 617 MB
    Average Memory :                             301.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

