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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin943
RA = 338.568, Dec = -41.9411
tmin = 483753601, tmax = 484012801
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='359003', job_status='RUN', time_executed='2021-09-28 14:43:29.194167', time_epoch_executed='1632865409.19' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359003/ft1_4FGL_J2234.2-4156_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359003/ft2_4FGL_J2234.2-4156_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359003/ft1_4FGL_J2234.2-4156_daily_bin943.fits outfile=/scratch/kocevski/359003/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin943.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=483753601.0 tmax=484012801.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 5.82
user 5.56
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359003/ft1_filtered_4FGL_J2234.2-4156_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/359003/ft2_4FGL_J2234.2-4156_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/359003/ltcube_483753601_484012801_4FGL_J2234.2-4156_daily_bin943.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/359003/ft2_4FGL_J2234.2-4156_daily_bin943.fits
.....................!
real 11.55
user 11.22
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359003/ft1_filtered_4FGL_J2234.2-4156_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/359003/ft2_4FGL_J2234.2-4156_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/359003/ltcube_483753601_484012801_4FGL_J2234.2-4156_daily_bin943.fits outfile=/scratch/kocevski/359003/expmap_483753601_484012801_4FGL_J2234.2-4156_daily_bin943.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/359003/ltcube_483753601_484012801_4FGL_J2234.2-4156_daily_bin943.fits
.....................!
real 190.34
user 185.46
sys 4.54

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/359003/ft1_filtered_4FGL_J2234.2-4156_daily_bin943.fits scfile=/scratch/kocevski/359003/ft2_4FGL_J2234.2-4156_daily_bin943.fits outfile=/scratch/kocevski/359003/cmap_483753601_484012801_4FGL_J2234.2-4156_daily_bin943.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359003/ft1_filtered_4FGL_J2234.2-4156_daily_bin943.fits scfile=/scratch/kocevski/359003/ft2_4FGL_J2234.2-4156_daily_bin943.fits outfile=/scratch/kocevski/359003/cmap_HighResolution_483753601_484012801_4FGL_J2234.2-4156_daily_bin943.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.59
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359003/ft1_filtered_4FGL_J2234.2-4156_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/359003/ft2_4FGL_J2234.2-4156_daily_bin943.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359003/Model_4FGL_J2234.2-4156_daily_bin943.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/359003/ft1_filtered_4FGL_J2234.2-4156_daily_bin943.fits.....................!
real 29.16
user 27.92
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78897E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    33.017       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6935       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.707       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6762       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28692E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    7.4953       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5167       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1456       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23831E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8582       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.238       1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.612       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.142       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31665E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .59987E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9497       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32160E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.207       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .14970E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.4267       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .21216E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.7706       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .99428E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    8.5781       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .86445       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .71151       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=   2882.412     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     3297 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12708E-03    170.68       -.51023E-04** at limit **
   2  norm          33.126        10.449        .14076E-05   -.18905E-02
   3  Prefactor     7.6603        3.6963       -.30028E-05   -.96789E-03
   4  Prefactor     .10000E-03    4.3577        .13477E-05** at limit **
   5  Prefactor     34.854        49.365        .36851E-04   -.35408E-02
   6  Prefactor     3.8248        6.4208       -.18345E-04   -.15512E-02
   7  Prefactor     .10000E-03    41.423       -.11858E-05** at limit **
   8  norm          7.5014        2.1326       -.26483E-06    .16614E-03
   9  Prefactor     1.5466        2.8980       -.88034E-05    .62884E-04
  10  Prefactor     4.1511        4.8326        .51545E-06   -.80591E-04
  11  Prefactor     .10022E-03    17.825        .12054E-04** at limit **
  12  Prefactor     .10000E-03    4.2175        .33600E-05** at limit **
  13  Prefactor     8.4390        17.824        .11704E-04    .60462E-02
  14  Prefactor     16.618        18.847        .11671E-04   -.97341E-02
  15  Prefactor     38.300        53.797        .14424E-04   -.15247E-02
  16  Prefactor     11.802        24.253       -.35029E-04   -.46966E-02
  17  Prefactor     .10813E-03    10.153       -.10224E-04** at limit **
  18  Prefactor     .10068E-03    10.634        .37825E-04** at limit **
  19  Prefactor     4.8715        7.3479       -.12567E-04    .22092E-02
  20  Prefactor     .10010E-03    2.4511       -.13183E-04** at limit **
  21  Prefactor     63.896        19.763       -.23750E-05   -.43779E-02
  22  Prefactor     .10000E-03    12.541        .98933E-05** at limit **
  23  norm          .10012E-03    15.475       -.13871E-04** at limit **
  24  norm          .10000E-03    4.7233       -.32193E-05** at limit **
  25  norm          .10000E-03    4.6666       -.37954E-05** at limit **
  26  norm          4.4896        6.6558       -.30563E-05    .15482E-02
  27  Prefactor     .10000E-03    7.5461       -.13472E-05** at limit **
  28  Prefactor     .10000E-03    13.737       -.94301E-05** at limit **
  29  norm          3.7672        4.3186       -.28856E-06   -.12477E-04
  30  Prefactor     .10003E-03    38.487       -.20965E-04** at limit **
  31  norm          8.5479        6.9260       -.48451E-06   -.10650E-03
  32  Normalizat    .86872        .28840        .16805E-04   -.32473E-04
  33  Prefactor     .70955        .26301       -.18387E-04   -.35089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000127078
  norm       = 33.1255
  Prefactor  = 7.66027
  Prefactor  = 0.0001
  Prefactor  = 34.8536
  Prefactor  = 3.82479
  Prefactor  = 0.000100002
  norm       = 7.50138
  Prefactor  = 1.54658
  Prefactor  = 4.15112
  Prefactor  = 0.000100217
  Prefactor  = 0.0001
  Prefactor  = 8.43904
  Prefactor  = 16.6179
  Prefactor  = 38.2997
  Prefactor  = 11.8025
  Prefactor  = 0.000108129
  Prefactor  = 0.000100683
  Prefactor  = 4.87154
  Prefactor  = 0.000100095
  Prefactor  = 63.896
  Prefactor  = 0.000100001
  norm       = 0.000100122
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.48963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.76723
  Prefactor  = 0.000100035
  norm       = 8.54791
  Normalizat = 0.868717
  Prefactor  = 0.709551
 **********
 **   18 **HESSE 
 **********

 FCN=   2882.412     FROM HESSE     STATUS=OK           759 CALLS     4056 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12708E-03    193.46        .94101E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          33.126        10.570        .17434E-02   -1.4556    
   3  Prefactor     7.6603        8.5358        .36144E-02   -1.5154    
   4  Prefactor     .10000E-03    4.3521        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.854        51.820        .16537E-02   -1.4527    
   6  Prefactor     3.8248        9.3719        .52664E-02   -1.5317    
   7  Prefactor     .10000E-03    41.465        .91656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.5014        9.7300        .36622E-02   -1.5160    
   9  Prefactor     1.5466        13.847        .86769E-02   -1.5459    
  10  Prefactor     4.1511        4.8596        .49492E-02   -1.5300    
  11  Prefactor     .10022E-03    22.841        .10033E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.4390        22.808        .33668E-02   -1.5127    
  14  Prefactor     16.618        24.513        .24117E-02   -1.4892    
  15  Prefactor     38.300        57.895        .15725E-02   -1.4469    
  16  Prefactor     11.802        26.659        .30006E-02   -1.5021    
  17  Prefactor     .10813E-03    114.76        .98845E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10068E-03    17.951        .10532E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8715        9.9616        .45193E-02   -1.5267    
  20  Prefactor     .10010E-03    21.002        .10680E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     63.896        72.345        .12619E-02   -1.4108    
  22  Prefactor     .10000E-03    12.533        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10012E-03    16.394        .10236E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.7208        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.6612        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.4896        8.5574        .47851E-02   -1.5284    
  27  Prefactor     .10000E-03    7.4501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    16.018        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.7672        4.3288        .51976E-02   -1.5320    
  30  Prefactor     .10003E-03    38.096        .10383E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          8.5479        6.9379        .34216E-02   -1.5123    
  32  Normalizat    .86872        .25035        .44446E-01   -.97568    
  33  Prefactor     .70955        .22546        .42554E-01   -1.0315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26609e-06
Minuit parameter uncertainties:
  1  0.145228
  2  10.5707
  3  8.53717
  4  8.89019e-06
  5  51.8873
  6  9.37552
  7  0.000588146
  8  9.73201
  9  9.25777
  10  4.86003
  11  0.00445088
  12  6.49273e-06
  13  22.832
  14  24.5279
  15  57.9802
  16  26.6863
  17  0.0612029
  18  0.00700407
  19  9.96502
  20  0.00283314
  21  72.4443
  22  0.000244463
  23  0.00282978
  24  4.42326e-06
  25  7.45541e-06
  26  8.55974
  27  7.18545e-06
  28  6.67174e-05
  29  4.32911
  30  0.00230041
  31  6.9385
  32  0.250686
  33  0.22575
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.002e-04  4.451e-03  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:  7.096e-01  2.257e-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.687e-01  2.507e-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: 6.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359003/likelihoodResults_483753601_484012801_4FGL_J2234.2-4156_daily_bin943.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) = 2882.41259797
delta logL = -0.000207772190151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2882.41239087
delta logL = -6.72000624036e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2031       1.0000          .0000       10.000    
     3 'Normalizat'    .86871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70956       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=   2882.412     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      267 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10139E-03    88.906        .18142E-02** at limit **
   2  Index         2.1461        8.7981        .50000        .14976E-04
   3  Normalizat    .86872        .12186E-01    .23442E-03   -.11930E-04
   4  Prefactor     .70955        .11609E-01    .24357E-03   -.47376E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010139
  Index      = 2.14607
  Normalizat = 0.868717
  Prefactor  = 0.709552
 **********
 **   18 **HESSE 
 **********

 FCN=   2882.412     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10139E-03    390.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1461        6.4184        .50000       -.60746    
   3  Normalizat    .86872        .26111E-01    .93768E-05   -.97568    
   4  Prefactor     .70955        .24875E-01    .97427E-05   -1.0315    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.3449e-09
Minuit parameter uncertainties:
  1  0.0468948
  2  358.658
  3  0.0261117
  4  0.0248758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359003': 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) = 2882.41239069
delta logL = -4.84749307361e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.014e-04  4.689e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.146e+00  3.587e+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:  7.096e-01  2.488e-02  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.687e-01  2.611e-02  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/359003/cmap_HighResolution_483753601_484012801_4FGL_J2234.2-4156_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-09-28 14:52:55.483682', job_id='359003', GAL2='0.71', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632865975.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-4.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='943' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:52:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 359003: <4FGL_J2234.2-4156_daily_bin943> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin943> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:49 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:51 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:40:51 2021
Terminated at Tue Sep 28 14:52:56 2021
Results reported at Tue Sep 28 14:52:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin943 338.568 -41.9411 483753601 484012801 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 :                                   565.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            727 sec.

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

