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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin586
RA = 338.568, Dec = -41.9411
tmin = 391219201, tmax = 391478401
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='357614', job_status='RUN', time_executed='2021-09-28 14:36:41.901250', time_epoch_executed='1632865001.9' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357614/ft1_4FGL_J2234.2-4156_daily_bin586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357614/ft2_4FGL_J2234.2-4156_daily_bin586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357614/ft1_4FGL_J2234.2-4156_daily_bin586.fits outfile=/scratch/kocevski/357614/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin586.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=391219201.0 tmax=391478401.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.55
user 3.14
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357614/ft1_filtered_4FGL_J2234.2-4156_daily_bin586.fits" evtable="EVENTS" scfile=/scratch/kocevski/357614/ft2_4FGL_J2234.2-4156_daily_bin586.fits sctable="SC_DATA" outfile=/scratch/kocevski/357614/ltcube_391219201_391478401_4FGL_J2234.2-4156_daily_bin586.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/357614/ft2_4FGL_J2234.2-4156_daily_bin586.fits
.....................!
real 12.48
user 12.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357614/ft1_filtered_4FGL_J2234.2-4156_daily_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/357614/ft2_4FGL_J2234.2-4156_daily_bin586.fits sctable="SC_DATA" expcube=/scratch/kocevski/357614/ltcube_391219201_391478401_4FGL_J2234.2-4156_daily_bin586.fits outfile=/scratch/kocevski/357614/expmap_391219201_391478401_4FGL_J2234.2-4156_daily_bin586.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/357614/ltcube_391219201_391478401_4FGL_J2234.2-4156_daily_bin586.fits
.....................!
real 191.53
user 186.18
sys 4.96

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/357614/ft1_filtered_4FGL_J2234.2-4156_daily_bin586.fits scfile=/scratch/kocevski/357614/ft2_4FGL_J2234.2-4156_daily_bin586.fits outfile=/scratch/kocevski/357614/cmap_391219201_391478401_4FGL_J2234.2-4156_daily_bin586.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357614/ft1_filtered_4FGL_J2234.2-4156_daily_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/357614/ft2_4FGL_J2234.2-4156_daily_bin586.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357614/Model_4FGL_J2234.2-4156_daily_bin586.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/357614/ft1_filtered_4FGL_J2234.2-4156_daily_bin586.fits.....................!
real 45.35
user 43.79
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    6.1509       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2240       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.581       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    93.637       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6677       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1946       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7179       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7842       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.264       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9308       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.114       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.1439       1.0000         .10000E-03   10000.    
    25 'norm      '    2.4044       1.0000         .10000E-03   10000.    
    26 'norm      '    18.870       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    48.800       1.0000         .10000E-03   10000.    
    29 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.953       1.0000         .10000E-03   10000.    
    31 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0155       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .90038       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=   5780.042     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4525 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3404       -.43691E-06** at limit **
   2  norm          6.1506        4.4807        .25849E-07    .37260E-05
   3  Prefactor     4.2239        10.830        .21749E-05   -.14190E-03
   4  Prefactor     13.580        11.068       -.11942E-06   -.29153E-04
   5  Prefactor     .10000E-03    14.724        .49713E-06** at limit **
   6  Prefactor     5.0611        6.5514        .69449E-08   -.85290E-05
   7  Prefactor     93.637        79.628       -.69302E-07   -.18912E-05
   8  norm          3.6678        3.8261       -.23623E-07    .12182E-04
   9  Prefactor     .10000E-03    4.1411       -.38985E-07** at limit **
  10  Prefactor     3.5975        3.6867       -.44426E-07    .20980E-04
  11  Prefactor     .10000E-03    14.302        .64284E-06** at limit **
  12  Prefactor     4.1954        6.0030        .18249E-05   -.34281E-03
  13  Prefactor     5.7200        18.955       -.79477E-07    .38994E-05
  14  Prefactor     19.322        23.386        .89067E-06   -.75710E-04
  15  Prefactor     .10000E-03    17.325       -.93932E-06** at limit **
  16  Prefactor     3.7869        11.132        .42262E-06    .76135E-05
  17  Prefactor     .10000E-03    45.728       -.30020E-07** at limit **
  18  Prefactor     12.264        12.092        .22476E-06   -.30982E-05
  19  Prefactor     .10000E-03    2.9761       -.73026E-07** at limit **
  20  Prefactor     6.9316        36.042       -.41890E-06    .19417E-05
  21  Prefactor     .10000E-03    15.925       -.64310E-07** at limit **
  22  Prefactor     24.115        16.532        .11762E-06   -.94380E-05
  23  norm          .10000E-03    5.2281       -.33272E-06** at limit **
  24  norm          1.1439        3.7077        .27891E-06   -.45528E-04
  25  norm          2.4084        4.1944       -.48518E-06   -.93227E-03
  26  norm          18.871        10.907        .76380E-07   -.74994E-04
  27  Prefactor     .10000E-03    2.0707       -.10578E-07** at limit **
  28  Prefactor     48.834        30.841       -.30489E-05   -.14238E-03
  29  norm          .10000E-03    3.1367        .19676E-05** at limit **
  30  Prefactor     15.953        12.144        .15859E-06   -.28788E-04
  31  norm          .10000E-03    1.3448        .16253E-06** at limit **
  32  Normalizat    1.0154        .20383       -.23863E-05   -.16591E-03
  33  Prefactor     .90050        .18169        .16521E-05   -.17840E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.15061
  Prefactor  = 4.22394
  Prefactor  = 13.5802
  Prefactor  = 0.0001
  Prefactor  = 5.0611
  Prefactor  = 93.6375
  norm       = 3.66776
  Prefactor  = 0.0001
  Prefactor  = 3.59749
  Prefactor  = 0.0001
  Prefactor  = 4.19541
  Prefactor  = 5.72
  Prefactor  = 19.3219
  Prefactor  = 0.0001
  Prefactor  = 3.78687
  Prefactor  = 0.0001
  Prefactor  = 12.2638
  Prefactor  = 0.0001
  Prefactor  = 6.93156
  Prefactor  = 0.0001
  Prefactor  = 24.1151
  norm       = 0.0001
  norm       = 1.1439
  norm       = 2.40845
  norm       = 18.8706
  Prefactor  = 0.0001
  Prefactor  = 48.8338
  norm       = 0.0001
  Prefactor  = 15.9528
  norm       = 0.0001
  Normalizat = 1.01541
  Prefactor  = 0.9005
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.042     FROM HESSE     STATUS=OK           701 CALLS     5226 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.1506        4.4790        .13247E-03   -1.5212    
   3  Prefactor     4.2239        10.765        .98033E-03   -1.5297    
   4  Prefactor     13.580        11.034        .54345E-03   -1.4971    
   5  Prefactor     .10000E-03    14.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0611        6.5404        .17873E-03   -1.5258    
   7  Prefactor     93.637        79.582        .41532E-04   -1.3770    
   8  norm          3.6678        3.8317        .14828E-03   -1.5325    
   9  Prefactor     .10000E-03    4.1652        .15103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5975        3.6801        .13995E-03   -1.5329    
  11  Prefactor     .10000E-03    14.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1954        5.9054        .98386E-03   -1.5298    
  13  Prefactor     5.7200        18.927        .16798E-03   -1.5230    
  14  Prefactor     19.322        23.379        .91096E-04   -1.4829    
  15  Prefactor     .10000E-03    17.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7869        11.112        .20752E-03   -1.5319    
  17  Prefactor     .10000E-03    45.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.264        12.113        .11439E-03   -1.5007    
  19  Prefactor     .10000E-03    2.9874        .12806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.9316        35.983        .15239E-03   -1.5181    
  21  Prefactor     .10000E-03    15.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.115        16.539        .81572E-04   -1.4725    
  23  norm          .10000E-03    5.2352        .16964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.1439        3.6253        .25676E-03   -1.5494    
  25  norm          2.4084        4.0014        .18926E-03   -1.5398    
  26  norm          18.871        10.906        .92201E-04   -1.4839    
  27  Prefactor     .10000E-03    2.0735        .10680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     48.834        31.614        .57403E-04   -1.4309    
  29  norm          .10000E-03    5.8955        .24188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     15.953        12.145        .10028E-03   -1.4909    
  31  norm          .10000E-03    1.3487        .86126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0154        .23306        .24871E-03   -.92516    
  33  Prefactor     .90050        .21007        .25154E-03   -.96124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00595e-10
Minuit parameter uncertainties:
  1  4.58439e-05
  2  4.47922
  3  10.7698
  4  11.0356
  5  8.26935e-05
  6  6.5413
  7  79.673
  8  3.83196
  9  8.01336e-06
  10  3.68035
  11  0.00010038
  12  5.90622
  13  18.9466
  14  23.3897
  15  0.000137997
  16  11.1185
  17  7.26101e-06
  18  12.1152
  19  1.40656e-06
  20  31.6156
  21  3.64808e-06
  22  16.542
  23  2.91242e-05
  24  3.62602
  25  4.0018
  26  10.9069
  27  2.26332e-07
  28  31.6248
  29  4.26535e-05
  30  12.1467
  31  6.9393e-06
  32  0.233289
  33  0.210261
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.004e-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:  9.005e-01  2.103e-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.015e+00  2.333e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357614/likelihoodResults_391219201_391478401_4FGL_J2234.2-4156_daily_bin586.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) = 5780.04234876
delta logL = -0.000332986583999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5780.0420163
delta logL = -5.23643393535e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0985       1.0000          .0000       10.000    
     3 'Normalizat'    1.0154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90051       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=   5780.042     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      228 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    631.13        .90712E-02** at limit **
   2  Index         2.0777        5.9550        .50000        .12535E-04
   3  Normalizat    1.0154        .33116E-01    .44133E-01    .26791E-04
   4  Prefactor     .90050        .31897E-01    .45012E-01    .13234E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07775
  Normalizat = 1.01541
  Prefactor  = 0.9005
 **********
 **   18 **HESSE 
 **********

 FCN=   5780.042     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0777        6.0338        .50000       -.62420    
   3  Normalizat    1.0154        .21189        .24871E-03   -.92516    
   4  Prefactor     .90050        .20409        .25154E-03   -.96124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58739e-10
Minuit parameter uncertainties:
  1  6.7884e-05
  2  4.09789
  3  0.212068
  4  0.204264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357614': 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) = 5780.04201602
delta logL = -2.43214344664e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.788e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.078e+00  4.098e+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.005e-01  2.043e-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.015e+00  2.121e-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/357614/cmap_HighResolution_391219201_391478401_4FGL_J2234.2-4156_daily_bin586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-03', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-09-28 14:51:30.922683', job_id='357614', GAL2='0.90', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632865890.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-2.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='586' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:51:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 357614: <4FGL_J2234.2-4156_daily_bin586> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin586> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:36:23 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:36:25 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:36:25 2021
Terminated at Tue Sep 28 14:51:31 2021
Results reported at Tue Sep 28 14:51:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin586 338.568 -41.9411 391219201 391478401 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 :                                   886.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

