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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1349
RA = 338.568, Dec = -41.9411
tmin = 588988801, tmax = 589248001
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='361679', job_status='RUN', time_executed='2021-09-28 14:52:00.080612', time_epoch_executed='1632865920.08' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361679/ft1_4FGL_J2234.2-4156_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361679/ft2_4FGL_J2234.2-4156_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361679/ft1_4FGL_J2234.2-4156_daily_bin1349.fits outfile=/scratch/kocevski/361679/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1349.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=588988801.0 tmax=589248001.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.10
user 2.88
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361679/ft1_filtered_4FGL_J2234.2-4156_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/361679/ft2_4FGL_J2234.2-4156_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/361679/ltcube_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.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/361679/ft2_4FGL_J2234.2-4156_daily_bin1349.fits
.....................!
real 15.74
user 15.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361679/ft1_filtered_4FGL_J2234.2-4156_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/361679/ft2_4FGL_J2234.2-4156_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/361679/ltcube_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.fits outfile=/scratch/kocevski/361679/expmap_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.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/361679/ltcube_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.fits
.....................!
real 191.81
user 186.25
sys 5.21

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/361679/ft1_filtered_4FGL_J2234.2-4156_daily_bin1349.fits scfile=/scratch/kocevski/361679/ft2_4FGL_J2234.2-4156_daily_bin1349.fits outfile=/scratch/kocevski/361679/cmap_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361679/ft1_filtered_4FGL_J2234.2-4156_daily_bin1349.fits scfile=/scratch/kocevski/361679/ft2_4FGL_J2234.2-4156_daily_bin1349.fits outfile=/scratch/kocevski/361679/cmap_HighResolution_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361679/ft1_filtered_4FGL_J2234.2-4156_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/361679/ft2_4FGL_J2234.2-4156_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361679/Model_4FGL_J2234.2-4156_daily_bin1349.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/361679/ft1_filtered_4FGL_J2234.2-4156_daily_bin1349.fits....!
real 13.79
user 12.53
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/361679/ft1_filtered_4FGL_J2234.2-4156_daily_bin1349.fits', '/scratch/kocevski/361679/ft2_4FGL_J2234.2-4156_daily_bin1349.fits', expMap='/scratch/kocevski/361679/expmap_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.fits', expCube='/scratch/kocevski/361679/ltcube_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/361679/Model_4FGL_J2234.2-4156_daily_bin1349.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/361679/ft1_filtered_4FGL_J2234.2-4156_daily_bin1349.fits
Spacecraft file(s): /scratch/kocevski/361679/ft2_4FGL_J2234.2-4156_daily_bin1349.fits
Exposure map: /scratch/kocevski/361679/expmap_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.fits
Exposure cube: /scratch/kocevski/361679/ltcube_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/361679/Model_4FGL_J2234.2-4156_daily_bin1349.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 54.4663324759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 49.778727422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15839E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .89036E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41968       1.0000         .10000E-03   10000.    
     4 'Prefactor '    201.87       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .85437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18146E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1716       1.0000         .10000E-03   10000.    
     8 'norm      '    .18619E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2397       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14093E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3314       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26844       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9095       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6674       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .39423E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5700       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4629       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2523       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8139       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5702       1.0000         .10000E-03   10000.    
    23 'norm      '    2.1314       1.0000         .10000E-03   10000.    
    24 'norm      '    .27273       1.0000         .10000E-03   10000.    
    25 'norm      '    .12490       1.0000         .10000E-03   10000.    
    26 'norm      '    6.3264       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.9209       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.7704       1.0000         .10000E-03   10000.    
    29 'norm      '    1.7038       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.7079       1.0000         .10000E-03   10000.    
    31 'norm      '    .39160E-01   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .42820E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   49.27065     FROM MIGRAD    STATUS=CONVERGED    496 CALLS      734 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    89.500       -.10407E-06** at limit **
   2  norm          .10000E-03    17.863        .56268E-08** at limit **
   3  Prefactor     .10000E-03    67.556       -.72010E-08** at limit **
   4  Prefactor     194.51        117.61        .22738E-05   -.10965E-03
   5  Prefactor     .10000E-03    123.21        .40487E-06** at limit **
   6  Prefactor     .10000E-03    24.531        .14085E-06** at limit **
   7  Prefactor     .10000E-03    274.05        .76854E-05** at limit **
   8  norm          .10000E-03    35.864        .38229E-08** at limit **
   9  Prefactor     1.2397        5049.8         .0000         .0000    
  10  Prefactor     .10000E-03    330.46        .96913E-05** at limit **
  11  Prefactor     .10125E-03    5360.7        .10180E-03** at limit **
  12  Prefactor     .10000E-03    187.83        .23609E-06** at limit **
  13  Prefactor     8.9095        5029.0         .0000         .0000    
  14  Prefactor    10000.0        9030.8       -.15164E-03** at limit **
  15  Prefactor     .10000E-03    427.58        .18152E-05** at limit **
  16  Prefactor     .10000E-03    156.88        .20989E-07** at limit **
  17  Prefactor     .10000E-03    6362.8       -.31314E-04** at limit **
  18  Prefactor     4.2114        5039.4         .0000         .0000    
  19  Prefactor    10000.0        9898.8       -.95521E-04** at limit **
  20  Prefactor     .10058E-03    7982.2        .74517E-05** at limit **
  21  Prefactor     6.8139        5033.2         .0000         .0000    
  22  Prefactor     .11995E-03    5051.3        .58217E-04** at limit **
  23  norm          .10589E-03    6337.1       -.20240E-03** at limit **
  24  norm          .10001E-03    1415.6        .81641E-05** at limit **
  25  norm          .10000E-03    721.33        .84021E-05** at limit **
  26  norm          .10000E-03    1605.7       -.30823E-04** at limit **
  27  Prefactor     .10001E-03    1022.4       -.18176E-04** at limit **
  28  Prefactor     .10005E-03    6905.8       -.15897E-04** at limit **
  29  norm          .10000E-03    332.37        .18109E-04** at limit **
  30  Prefactor     .10001E-03    816.09        .17957E-05** at limit **
  31  norm          .10000E-03    128.89       -.28340E-08** at limit **
  32  Normalizat    .10000E-01    .26812       -.20292E-05** at limit **
  33  Prefactor     .55511E-15    .17493        .33280E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 194.514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.2397
  Prefactor  = 0.0001
  Prefactor  = 0.000101253
  Prefactor  = 0.0001
  Prefactor  = 8.90951
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 4.21144
  Prefactor  = 10000
  Prefactor  = 0.000100575
  Prefactor  = 6.81391
  Prefactor  = 0.000119952
  norm       = 0.000105893
  norm       = 0.000100008
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100049
  norm       = 0.000100001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 5.55112e-16
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   49.27065     FROM HESSE     STATUS=FAILED        41 CALLS      775 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.944        .91020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.581        .91441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    67.411        .10938E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     194.51        113.98        .71104E-03   -1.2909    
   5  Prefactor     .10000E-03    119.42        .12641E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.081        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    267.56        .56891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    35.828        .10146E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     583.01        581.52         .0000       -1.5485    
  10  Prefactor     .10000E-03    .26315        .96913E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10125E-03    .58535E-01    .10180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .26449        .23609E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.9095        1.0016         .0000       -1.5111    
  14  Prefactor    10000.0        .43252E-01   -.15164E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .16661        .18152E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .23796        .20989E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .71485E-01   -.31314E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2114        1.0072         .0000       -1.5298    
  19  Prefactor    10000.0        .19763       -.95521E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10058E-03    .34663E-01    .74517E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.8139        1.0027         .0000       -1.5186    
  22  Prefactor     .11995E-03    .71481E-01    .58217E-04    4.7123    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10589E-03    .12461       -.20240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    .26547        .81641E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .23181        .84021E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .39793E-01   -.30823E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    .14044       -.18176E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10005E-03    .37155E-01   -.15897E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .16220        .18109E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    .16172        .17957E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    .21238       -.28340E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .25771       -.20292E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .55511E-15    .25504        .33280E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.26118e-10
Minuit parameter uncertainties:
  1  6.55232e-06
  2  5.11838e-07
  3  2.48644e-07
  4  114.107
  5  1.70416e-05
  6  1.17179e-06
  7  0.000359636
  8  3.01922e-06
  9  1.1212
  10  6.04446e-06
  11  0.00054155
  12  6.26698e-08
  13  1.00158
  14  0.000227327
  15  2.52909e-06
  16  2.13496e-07
  17  3.38796e-05
  18  1.00723
  19  0.000799214
  20  0.000282469
  21  1.00272
  22  0.00238847
  23  0.00171383
  24  9.22969e-05
  25  5.17501e-05
  26  7.94581e-06
  27  5.42366e-05
  28  8.52322e-05
  29  2.26313e-05
  30  7.51908e-05
  31  3.25283e-07
  32  1.27022e-07
  33  2.48215e-08
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 49.2706452488

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.013e-04  5.416e-04  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:  5.551e-16  2.482e-08  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.000e-02  1.270e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.0695101252248

TS (Fixed Index): -0.00
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.50e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361679/likelihoodResults_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 49.2715828782
delta logL = -0.000937629339461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 49.2715828782
delta logL = -0.000937629335368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    1.9933       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=   49.27158     FROM MIGRAD    STATUS=CONVERGED     20 CALLS       89 TOTAL
                     EDM=   .64E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       1.9933        3.3617        .50000       -.25265E-06
                               ERR DEF=  .500    
Final values: 
  Index      = 1.99331
 **********
 **   18 **HESSE 
 **********

 FCN=   49.27158     FROM HESSE     STATUS=OK            11 CALLS      100 TOTAL
                     EDM=   .64E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       1.9933        3.3617        .50000       -.64517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38326e-14
Minuit parameter uncertainties:
  1  3.99497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361679': 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) = 49.2715828782
delta logL = -0.000937629334814

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  9.637e-03  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
286        Index:  1.993e+00  3.995e+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:  4.753e-07  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/361679/cmap_HighResolution_588988801_589248001_4FGL_J2234.2-4156_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.50e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-28 14:57:24.888838', job_id='361679', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632866244.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-9.38e-04', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1349' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:57:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 361679: <4FGL_J2234.2-4156_daily_bin1349> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1349> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:34 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:35 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:50:35 2021
Terminated at Tue Sep 28 14:57:25 2021
Results reported at Tue Sep 28 14:57:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1349 338.568 -41.9411 588988801 589248001 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 :                                   323.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             352.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   410 sec.
    Turnaround time :                            411 sec.

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

