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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1572
RA = 338.568, Dec = -41.9411
tmin = 646790401, tmax = 647049601
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='363070', job_status='RUN', time_executed='2021-09-28 14:57:11.211701', time_epoch_executed='1632866231.21' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363070

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363070/ft1_4FGL_J2234.2-4156_daily_bin1572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363070/ft2_4FGL_J2234.2-4156_daily_bin1572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363070/ft1_4FGL_J2234.2-4156_daily_bin1572.fits outfile=/scratch/kocevski/363070/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1572.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=646790401.0 tmax=647049601.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.63
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363070/ft2_4FGL_J2234.2-4156_daily_bin1572.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/363070/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1572.fits evtable="EVENTS" outfile="/scratch/kocevski/363070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1572.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1572.fits" evtable="EVENTS" scfile=/scratch/kocevski/363070/ft2_4FGL_J2234.2-4156_daily_bin1572.fits sctable="SC_DATA" outfile=/scratch/kocevski/363070/ltcube_646790401_647049601_4FGL_J2234.2-4156_daily_bin1572.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/363070/ft2_4FGL_J2234.2-4156_daily_bin1572.fits
.....................!
real 12.05
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1572.fits evtable="EVENTS" scfile=/scratch/kocevski/363070/ft2_4FGL_J2234.2-4156_daily_bin1572.fits sctable="SC_DATA" expcube=/scratch/kocevski/363070/ltcube_646790401_647049601_4FGL_J2234.2-4156_daily_bin1572.fits outfile=/scratch/kocevski/363070/expmap_646790401_647049601_4FGL_J2234.2-4156_daily_bin1572.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/363070/ltcube_646790401_647049601_4FGL_J2234.2-4156_daily_bin1572.fits
.....................!
real 190.99
user 185.77
sys 4.86

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/363070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1572.fits scfile=/scratch/kocevski/363070/ft2_4FGL_J2234.2-4156_daily_bin1572.fits outfile=/scratch/kocevski/363070/cmap_646790401_647049601_4FGL_J2234.2-4156_daily_bin1572.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1572.fits scfile=/scratch/kocevski/363070/ft2_4FGL_J2234.2-4156_daily_bin1572.fits outfile=/scratch/kocevski/363070/cmap_HighResolution_646790401_647049601_4FGL_J2234.2-4156_daily_bin1572.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/363070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1572.fits evtable="EVENTS" scfile=/scratch/kocevski/363070/ft2_4FGL_J2234.2-4156_daily_bin1572.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363070/Model_4FGL_J2234.2-4156_daily_bin1572.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/363070/ft1_filtered_4FGL_J2234.2-4156_daily_bin1572.fits.....................!
real 40.67
user 39.28
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0635       1.0000         .10000E-03   10000.    
     2 'norm      '    10.688       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.059       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.647       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8376       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0831       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14326E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11583E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1352       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.093       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.007       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.140       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5451       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    23.758       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.9477       1.0000         .10000E-03   10000.    
    28 'Prefactor '    59.042       1.0000         .10000E-03   10000.    
    29 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.0358       1.0000         .10000E-03   10000.    
    31 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .81507       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93941       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=   4865.683     FROM MIGRAD    STATUS=CONVERGED    885 CALLS     4713 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0719        105.16        .27392E-05    .35686E-05
   2  norm          10.688        5.8927       -.20489E-06   -.13900E-04
   3  Prefactor     32.708        13.727        .51190E-08   -.12600E-04
   4  Prefactor     .10000E-03    14.401        .37104E-06** at limit **
   5  Prefactor     40.085        40.678        .24994E-06    .58079E-04
   6  Prefactor     .50063        65.792       -.28373E-05   -.12277E-05
   7  Prefactor     54.760        117.11        .44617E-05    .37706E-04
   8  norm          .10000E-03    4.3831        .12728E-06** at limit **
   9  Prefactor     3.8393        7.7533       -.10773E-06    .10800E-04
  10  Prefactor     3.0828        4.5254        .17180E-06   -.13071E-05
  11  Prefactor     .10000E-03    68.592        .10413E-05** at limit **
  12  Prefactor     .10001E-03    4.9266       -.23654E-06** at limit **
  13  Prefactor     .10000E-03    44.337       -.57601E-06** at limit **
  14  Prefactor     27.736        26.143        .40902E-06   -.85579E-06
  15  Prefactor     3.1233        147.69       -.19478E-05    .52495E-05
  16  Prefactor     31.096        20.514        .25067E-06    .80997E-04
  17  Prefactor     .10000E-03    71.841        .91115E-06** at limit **
  18  Prefactor     23.008        16.781        .43409E-06    .43072E-05
  19  Prefactor     .10000E-03    4.0202        .90729E-07** at limit **
  20  Prefactor     .10000E-03    23.791        .13726E-06** at limit **
  21  Prefactor     .10000E-03    21.527        .21154E-06** at limit **
  22  Prefactor     15.139        15.251        .19099E-06    .19143E-05
  23  norm          .10000E-03    5.6299        .55615E-07** at limit **
  24  norm          1.5452        4.4792       -.16819E-07   -.33753E-05
  25  norm          .10000E-03    1.9622        .30839E-07** at limit **
  26  norm          23.757        13.215        .22372E-06   -.18816E-04
  27  Prefactor     3.9476        5.2623        .45190E-08    .17124E-04
  28  Prefactor     58.975        41.285       -.13821E-05   -.39477E-04
  29  norm          .10009E-03    4.2627        .48702E-07** at limit **
  30  Prefactor     4.0361        10.062        .58160E-06   -.45027E-04
  31  norm          .10000E-03    3.2147        .11597E-07** at limit **
  32  Normalizat    .81513        .26803       -.45230E-05    .59639E-04
  33  Prefactor     .93929        .22529        .30131E-05    .23380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.0719
  norm       = 10.6881
  Prefactor  = 32.708
  Prefactor  = 0.0001
  Prefactor  = 40.0853
  Prefactor  = 0.500631
  Prefactor  = 54.7597
  norm       = 0.0001
  Prefactor  = 3.83926
  Prefactor  = 3.08282
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 27.7363
  Prefactor  = 3.12326
  Prefactor  = 31.0959
  Prefactor  = 0.0001
  Prefactor  = 23.0085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1394
  norm       = 0.0001
  norm       = 1.54517
  norm       = 0.0001
  norm       = 23.7567
  Prefactor  = 3.94763
  Prefactor  = 58.9748
  norm       = 0.000100087
  Prefactor  = 4.03606
  norm       = 0.0001
  Normalizat = 0.815126
  Prefactor  = 0.939287
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.683     FROM HESSE     STATUS=OK           705 CALLS     5418 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0719        103.90        .16305E-03   -1.5215    
   2  norm          10.688        5.8661        .11418E-03   -1.5054    
   3  Prefactor     32.708        13.719        .70063E-04   -1.4564    
   4  Prefactor     .10000E-03    14.824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.085        41.177        .63331E-04   -1.4441    
   6  Prefactor     .50063        77.103        .32262E-02   -1.5566    
   7  Prefactor     54.760        124.70        .27130E-03   -1.4227    
   8  norm          .10000E-03    4.3999        .14263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8393        7.7449        .20602E-03   -1.5316    
  10  Prefactor     3.0828        4.5156        .16702E-03   -1.5357    
  11  Prefactor     .10000E-03    68.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    20.420        .28955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    44.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.736        26.144        .76073E-04   -1.4654    
  15  Prefactor     3.1233        135.78        .22895E-03   -1.5354    
  16  Prefactor     31.096        19.760        .71856E-04   -1.4592    
  17  Prefactor     .10000E-03    71.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.008        16.802        .83509E-04   -1.4748    
  19  Prefactor     .10000E-03    4.0453        .13659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.139        15.247        .10294E-03   -1.4930    
  23  norm          .10000E-03    5.6381        .16165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5452        4.4254        .24350E-03   -1.5459    
  25  norm          .10000E-03    1.9645        .95425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          23.757        13.199        .82181E-04   -1.4733    
  27  Prefactor     3.9476        5.2638        .16677E-03   -1.5311    
  28  Prefactor     58.975        42.347        .52213E-04   -1.4171    
  29  norm          .10009E-03    50.018        .22627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.0361        10.181        .10036E-02   -1.5306    
  31  norm          .10000E-03    3.2479        .12219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .81513        .27602        .27342E-03   -.99510    
  33  Prefactor     .93929        .23256        .24061E-03   -.94781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45642e-08
Minuit parameter uncertainties:
  1  50.3361
  2  5.86643
  3  13.7204
  4  1.52333e-05
  5  41.2059
  6  12.4409
  7  125.303
  8  1.5678e-06
  9  7.74691
  10  4.51605
  11  6.75624e-06
  12  0.000781643
  13  0.000153692
  14  26.1543
  15  41.2855
  16  19.7642
  17  4.57725e-05
  18  16.805
  19  4.02327e-06
  20  2.52792e-05
  21  4.67017e-06
  22  15.2507
  23  9.05264e-07
  24  4.42638
  25  1.77863e-06
  26  13.2003
  27  5.26437
  28  42.3687
  29  0.00416492
  30  10.1858
  31  1.0074e-05
  32  0.276501
  33  0.232811
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.756e-06  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.393e-01  2.328e-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.151e-01  2.765e-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: 7.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363070/likelihoodResults_646790401_647049601_4FGL_J2234.2-4156_daily_bin1572.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) = 4865.68327581
delta logL = -6.91578943588e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4865.6832068
delta logL = -1.53385371959e-07

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 'Index     '    1.9446       1.0000          .0000       10.000    
     3 'Normalizat'    .81513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93929       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=   4865.683     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      276 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    6953.1        .18142E-02** at limit **
   2  Index         2.0304        5.9363        .50000       -.14848E-04
   3  Normalizat    .81513        .38827E-01    .27341E-03    .45740E-05
   4  Prefactor     .93929        .36668E-01    .24062E-03   -.30948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.03043
  Normalizat = 0.815126
  Prefactor  = 0.939287
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.683     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    9467.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0304        5.9665        .50000       -.63592    
   3  Normalizat    .81513        .99579E-01    .10936E-04   -.99510    
   4  Prefactor     .93929        .94045E-01    .96246E-05   -.94781    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33328e-10
Minuit parameter uncertainties:
  1  0.0343402
  2  55.1063
  3  0.099601
  4  0.0940613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363070': 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) = 4865.68320651
delta logL = 1.33020876092e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.434e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.030e+00  5.511e+01  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.393e-01  9.406e-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.151e-01  9.960e-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/363070/cmap_HighResolution_646790401_647049601_4FGL_J2234.2-4156_daily_bin1572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-03', job_status='DONE', photon_flux_upper_limit='7.20e-08', time_completed='2021-09-28 15:10:33.615649', job_id='363070', GAL2='0.94', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632867033.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1572' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:10:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 363070: <4FGL_J2234.2-4156_daily_bin1572> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1572> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:55:37 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:55:39 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:55:39 2021
Terminated at Tue Sep 28 15:10:34 2021
Results reported at Tue Sep 28 15:10:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1572 338.568 -41.9411 646790401 647049601 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 :                                   799.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            897 sec.

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

