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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1381
RA = 338.568, Dec = -41.9411
tmin = 597283201, tmax = 597542401
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='361729', job_status='RUN', time_executed='2021-09-28 14:52:47.062988', time_epoch_executed='1632865967.06' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361729/ft1_4FGL_J2234.2-4156_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361729/ft2_4FGL_J2234.2-4156_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361729/ft1_4FGL_J2234.2-4156_daily_bin1381.fits outfile=/scratch/kocevski/361729/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1381.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=597283201.0 tmax=597542401.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.52
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361729/ft1_filtered_4FGL_J2234.2-4156_daily_bin1381.fits" evtable="EVENTS" scfile=/scratch/kocevski/361729/ft2_4FGL_J2234.2-4156_daily_bin1381.fits sctable="SC_DATA" outfile=/scratch/kocevski/361729/ltcube_597283201_597542401_4FGL_J2234.2-4156_daily_bin1381.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/361729/ft2_4FGL_J2234.2-4156_daily_bin1381.fits
.....................!
real 11.92
user 11.59
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361729/ft1_filtered_4FGL_J2234.2-4156_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/361729/ft2_4FGL_J2234.2-4156_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/361729/ltcube_597283201_597542401_4FGL_J2234.2-4156_daily_bin1381.fits outfile=/scratch/kocevski/361729/expmap_597283201_597542401_4FGL_J2234.2-4156_daily_bin1381.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/361729/ltcube_597283201_597542401_4FGL_J2234.2-4156_daily_bin1381.fits
.....................!
real 190.57
user 185.64
sys 4.60

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/361729/ft1_filtered_4FGL_J2234.2-4156_daily_bin1381.fits scfile=/scratch/kocevski/361729/ft2_4FGL_J2234.2-4156_daily_bin1381.fits outfile=/scratch/kocevski/361729/cmap_597283201_597542401_4FGL_J2234.2-4156_daily_bin1381.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/361729/ft1_filtered_4FGL_J2234.2-4156_daily_bin1381.fits scfile=/scratch/kocevski/361729/ft2_4FGL_J2234.2-4156_daily_bin1381.fits outfile=/scratch/kocevski/361729/cmap_HighResolution_597283201_597542401_4FGL_J2234.2-4156_daily_bin1381.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361729/ft1_filtered_4FGL_J2234.2-4156_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/361729/ft2_4FGL_J2234.2-4156_daily_bin1381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361729/Model_4FGL_J2234.2-4156_daily_bin1381.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/361729/ft1_filtered_4FGL_J2234.2-4156_daily_bin1381.fits.....................!
real 42.27
user 40.98
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.570       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4383       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7772       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    227.22       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1714       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1622       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.259       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.274       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10239E-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 '    13.833       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2242       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.650       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2335       1.0000         .10000E-03   10000.    
    23 'norm      '    .32923E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .19479E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    9.7913       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.9321       1.0000         .10000E-03   10000.    
    29 'norm      '    2.9344       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .79779E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .61625       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=   5254.759     FROM MIGRAD    STATUS=CONVERGED    884 CALLS     4681 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.561        43.975       -.11206E-05   -.51723E-04
   2  norm          2.4318        4.8319        .53798E-06    .15178E-03
   3  Prefactor     .10000E-03    7.5811       -.12352E-06** at limit **
   4  Prefactor     3.7789        8.1747        .44057E-06    .65397E-04
   5  Prefactor     .10000E-03    57.856        .81942E-06** at limit **
   6  Prefactor     .10000E-03    6.7133       -.56112E-06** at limit **
   7  Prefactor     227.21        120.21        .54230E-06   -.78894E-05
   8  norm          .10000E-03    2.2351       -.36479E-07** at limit **
   9  Prefactor     2.1670        7.0505        .17256E-05    .23816E-03
  10  Prefactor     5.1621        3.2697        .16567E-07    .97650E-04
  11  Prefactor     18.257        32.871       -.30188E-06   -.13166E-04
  12  Prefactor     .10000E-03    6.7327        .89084E-06** at limit **
  13  Prefactor     30.272        22.516       -.46531E-06   -.64355E-04
  14  Prefactor     .10000E-03    5.5083        .11965E-08** at limit **
  15  Prefactor     .10000E-03    43.476       -.13678E-06** at limit **
  16  Prefactor     .10000E-03    2.9337        .30168E-07** at limit **
  17  Prefactor     .10000E-03    71.175        .22456E-06** at limit **
  18  Prefactor     13.832        10.904       -.44802E-07   -.11361E-04
  19  Prefactor     7.2238        5.6019        .12064E-05    .90283E-03
  20  Prefactor     .10000E-03    12.129        .42466E-07** at limit **
  21  Prefactor     13.641        37.171       -.42226E-06   -.43011E-04
  22  Prefactor     9.2328        10.515        .37289E-07   -.17877E-05
  23  norm          .10006E-03    11.542        .43882E-05** at limit **
  24  norm          .10000E-03    1.7205        .42816E-08** at limit **
  25  norm          .10002E-03    4.2484       -.12939E-05** at limit **
  26  norm          9.7907        7.5664        .16882E-07    .38306E-04
  27  Prefactor     .10000E-03    1.9702        .62931E-08** at limit **
  28  Prefactor     4.8748        36.912        .35128E-05    .13054E-03
  29  norm          2.9327        3.8255        .50452E-06    .11001E-02
  30  Prefactor     .10000E-03    6.5462       -.20201E-06** at limit **
  31  norm          .10001E-03    2.2535       -.26165E-06** at limit **
  32  Normalizat    1.0583        .17602        .57916E-06    .16736E-03
  33  Prefactor     .61617        .16206       -.10311E-05    .97703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5605
  norm       = 2.43183
  Prefactor  = 0.0001
  Prefactor  = 3.77889
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 227.207
  norm       = 0.0001
  Prefactor  = 2.16702
  Prefactor  = 5.16214
  Prefactor  = 18.257
  Prefactor  = 0.0001
  Prefactor  = 30.2716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8316
  Prefactor  = 7.22375
  Prefactor  = 0.0001
  Prefactor  = 13.6412
  Prefactor  = 9.23281
  norm       = 0.000100057
  norm       = 0.0001
  norm       = 0.000100015
  norm       = 9.79067
  Prefactor  = 0.0001
  Prefactor  = 4.87478
  norm       = 2.93275
  Prefactor  = 0.0001
  norm       = 0.000100005
  Normalizat = 1.05828
  Prefactor  = 0.616167
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.759     FROM HESSE     STATUS=OK           705 CALLS     5386 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.561        43.344        .92942E-04   -1.4846    
   2  norm          2.4318        4.7522        .18807E-03   -1.5396    
   3  Prefactor     .10000E-03    7.6519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7789        8.1567        .20772E-03   -1.5319    
   5  Prefactor     .10000E-03    58.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     227.21        119.96        .13421E-03   -1.2682    
   8  norm          .10000E-03    2.2362        .10584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1670        7.1055        .27945E-03   -1.5414    
  10  Prefactor     5.1621        3.2732        .99623E-04   -1.5254    
  11  Prefactor     18.257        32.861        .93731E-04   -1.4853    
  12  Prefactor     .10000E-03    6.9925        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.272        22.503        .72818E-04   -1.4607    
  14  Prefactor     .10000E-03    5.5127        .16616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    44.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9399        .12125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    71.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.832        10.929        .10769E-03   -1.4964    
  19  Prefactor     7.2238        5.7124        .74314E-03   -1.5170    
  20  Prefactor     .10000E-03    12.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.641        37.161        .10841E-03   -1.4969    
  22  Prefactor     9.2328        10.513        .13189E-03   -1.5100    
  23  norm          .10006E-03    19.117        .34348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7215        .92859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10002E-03    27.142        .27008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          9.7907        7.5665        .12806E-03   -1.5082    
  27  Prefactor     .10000E-03    1.9796        .99359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.8748        35.874        .18110E-03   -1.5266    
  29  norm          2.9327        3.7172        .13535E-03   -1.5365    
  30  Prefactor     .10000E-03    6.5797        .18113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10001E-03    34.232        .20436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0583        .20297        .21148E-03   -.91103    
  33  Prefactor     .61617        .18550        .25511E-03   -1.0691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72419e-09
Minuit parameter uncertainties:
  1  43.4175
  2  4.75297
  3  3.69445e-05
  4  8.15906
  5  0.000545405
  6  4.51536e-05
  7  120.089
  8  1.8964e-06
  9  7.10821
  10  3.27332
  11  32.8934
  12  0.000112278
  13  22.5095
  14  2.44442e-07
  15  0.000197357
  16  1.73421e-06
  17  0.000112713
  18  10.9301
  19  5.71285
  20  1.91238e-06
  21  37.224
  22  10.5153
  23  0.00208025
  24  7.48103e-08
  25  0.0012805
  26  7.56727
  27  9.40018e-07
  28  26.4705
  29  3.71748
  30  5.45622e-05
  31  0.000849801
  32  0.203122
  33  0.185684
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  6.162e-01  1.857e-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.058e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/361729/likelihoodResults_597283201_597542401_4FGL_J2234.2-4156_daily_bin1381.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) = 5254.63128052
delta logL = 0.12775358366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5254.62557562
delta logL = 0.133458485729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9372       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6181       1.0000          .0000       10.000    
     3 'Normalizat'    1.0445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62281       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5254.626     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      324 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9336        75.135        .13407E-03   -.22683E-03
   2  Index         2.6184        2.5457        .74149E-02   -.58576E-04
   3  Normalizat    1.0439        .20233        .21273E-03    .42268E-03
   4  Prefactor     .62342        .18688        .25371E-03    .26147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.93364
  Index      = 2.61837
  Normalizat = 1.04389
  Prefactor  = 0.623419
 **********
 **   18 **HESSE 
 **********

 FCN=   5254.626     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9336        25.781        .53629E-05   -1.5110    
   2  Index         2.6184        1.3277        .29660E-03   -.49647    
   3  Normalizat    1.0439        .19576        .42545E-04   -.91574    
   4  Prefactor     .62342        .18293        .10148E-04   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95714e-10
Minuit parameter uncertainties:
  1  25.8136
  2  1.34878
  3  0.195899
  4  0.183102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361729': 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) = 5254.62557
delta logL = 0.133464105887

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  8.934e+00  2.581e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.618e+00  1.349e+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:  6.234e-01  1.831e-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.044e+00  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.41
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/361729/cmap_HighResolution_597283201_597542401_4FGL_J2234.2-4156_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-09-28 15:07:08.629696', job_id='361729', GAL2='0.62', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1632866828.63', return_code2='0', ts='0.41', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.33e-01', ts2='0.70', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1381' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:07:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 361729: <4FGL_J2234.2-4156_daily_bin1381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1381 338.568 -41.9411 597283201 597542401 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 :                                   859.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            991 sec.

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

