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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin795
RA = 338.568, Dec = -41.9411
tmin = 445392001, tmax = 445651201
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='358789', job_status='RUN', time_executed='2021-09-28 14:42:49.338206', time_epoch_executed='1632865369.34' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='795'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358789/ft1_4FGL_J2234.2-4156_daily_bin795.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358789/ft2_4FGL_J2234.2-4156_daily_bin795.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358789/ft1_4FGL_J2234.2-4156_daily_bin795.fits outfile=/scratch/kocevski/358789/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin795.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=445392001.0 tmax=445651201.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.84
user 3.59
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358789/ft2_4FGL_J2234.2-4156_daily_bin795.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/358789/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin795.fits evtable="EVENTS" outfile="/scratch/kocevski/358789/ft1_filtered_4FGL_J2234.2-4156_daily_bin795.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/358789/ft1_filtered_4FGL_J2234.2-4156_daily_bin795.fits" evtable="EVENTS" scfile=/scratch/kocevski/358789/ft2_4FGL_J2234.2-4156_daily_bin795.fits sctable="SC_DATA" outfile=/scratch/kocevski/358789/ltcube_445392001_445651201_4FGL_J2234.2-4156_daily_bin795.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/358789/ft2_4FGL_J2234.2-4156_daily_bin795.fits
.....................!
real 11.94
user 11.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358789/ft1_filtered_4FGL_J2234.2-4156_daily_bin795.fits evtable="EVENTS" scfile=/scratch/kocevski/358789/ft2_4FGL_J2234.2-4156_daily_bin795.fits sctable="SC_DATA" expcube=/scratch/kocevski/358789/ltcube_445392001_445651201_4FGL_J2234.2-4156_daily_bin795.fits outfile=/scratch/kocevski/358789/expmap_445392001_445651201_4FGL_J2234.2-4156_daily_bin795.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/358789/ltcube_445392001_445651201_4FGL_J2234.2-4156_daily_bin795.fits
.....................!
real 191.11
user 186.14
sys 4.58

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/358789/ft1_filtered_4FGL_J2234.2-4156_daily_bin795.fits scfile=/scratch/kocevski/358789/ft2_4FGL_J2234.2-4156_daily_bin795.fits outfile=/scratch/kocevski/358789/cmap_445392001_445651201_4FGL_J2234.2-4156_daily_bin795.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358789/ft1_filtered_4FGL_J2234.2-4156_daily_bin795.fits scfile=/scratch/kocevski/358789/ft2_4FGL_J2234.2-4156_daily_bin795.fits outfile=/scratch/kocevski/358789/cmap_HighResolution_445392001_445651201_4FGL_J2234.2-4156_daily_bin795.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/358789/ft1_filtered_4FGL_J2234.2-4156_daily_bin795.fits evtable="EVENTS" scfile=/scratch/kocevski/358789/ft2_4FGL_J2234.2-4156_daily_bin795.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358789/Model_4FGL_J2234.2-4156_daily_bin795.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/358789/ft1_filtered_4FGL_J2234.2-4156_daily_bin795.fits.....................!
real 39.47
user 38.13
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.2216       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.463       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11309E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2631       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3885       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .92434E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1633       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7639       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3302       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.001       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.373       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.1589       1.0000         .10000E-03   10000.    
    23 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .31883E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4972       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .64443       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=   4296.173     FROM MIGRAD    STATUS=CONVERGED   1576 CALLS     5239 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.486        .18142E-02** at limit **
   2  norm          9.2219        5.7307        .11930E-03    .40596E-04
   3  Prefactor     23.464        14.718        .82695E-04    .62552E-04
   4  Prefactor     .10000E-03    7.9551        .18007E-02** at limit **
   5  Prefactor     .10000E-03    74.894        .18142E-02** at limit **
   6  Prefactor     9.2648        9.4148        .13168E-03    .20470E-03
   7  Prefactor     .10000E-03    47.627        .18142E-02** at limit **
   8  norm          4.3887        5.8006        .17707E-03    .48666E-04
   9  Prefactor     .10001E-03    61.059        .40673E-02** at limit **
  10  Prefactor     .10000E-03    1.5743        .80093E-03** at limit **
  11  Prefactor     .10000E-03    17.064        .18142E-02** at limit **
  12  Prefactor     .10000E-03    6.0137        .15563E-02** at limit **
  13  Prefactor     .10000E-03    13.907        .18142E-02** at limit **
  14  Prefactor     7.1490        32.008        .14987E-03    .51430E-04
  15  Prefactor     7.8016        51.613        .14391E-03    .10570E-03
  16  Prefactor     6.3263        12.891        .15954E-03    .16568E-03
  17  Prefactor     .10000E-03    74.240        .18142E-02** at limit **
  18  Prefactor     .10000E-03    12.037        .18142E-02** at limit **
  19  Prefactor     14.007        10.242        .10704E-03    .95266E-04
  20  Prefactor     58.357        42.734        .52510E-04    .18957E-03
  21  Prefactor     .10000E-03    25.279        .18142E-02** at limit **
  22  Prefactor     8.1733        20.760        .14036E-03    .72087E-05
  23  norm          .10000E-03    6.2028        .15938E-02** at limit **
  24  norm          .10000E-03    4.7764        .13954E-02** at limit **
  25  norm          .10000E-03    2.8665        .10823E-02** at limit **
  26  norm          .10000E-03    7.2967        .17269E-02** at limit **
  27  Prefactor     .10000E-03    9.0327        .36285E-03** at limit **
  28  Prefactor     .10000E-03    66.782        .12975    ** at limit **
  29  norm          .10000E-03    2.9024        .10872E-02** at limit **
  30  Prefactor     .10000E-03    36.966        .18142E-02** at limit **
  31  norm          .10000E-03    5.2267        .14511E-02** at limit **
  32  Normalizat    1.4960        .28538        .22835E-03    .51967E-03
  33  Prefactor     .64503        .24018        .29866E-03    .40289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.22195
  Prefactor  = 23.4644
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.2648
  Prefactor  = 0.000100001
  norm       = 4.38865
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.14904
  Prefactor  = 7.80155
  Prefactor  = 6.32633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0066
  Prefactor  = 58.3574
  Prefactor  = 0.000100001
  Prefactor  = 8.1733
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.49602
  Prefactor  = 0.645029
 **********
 **   18 **HESSE 
 **********

 FCN=   4296.173     FROM HESSE     STATUS=OK           671 CALLS     5910 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.2219        5.7307        .47720E-05   -1.5101    
   3  Prefactor     23.464        14.719        .33078E-05   -1.4739    
   4  Prefactor     .10000E-03    7.9564        .36014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    74.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.2648        9.4145        .52672E-05   -1.5099    
   7  Prefactor     .10000E-03    47.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3887        5.8006        .70829E-05   -1.5289    
   9  Prefactor     .10001E-03    62.168        .81347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.5743        .16019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.064        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.0160        .31126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1490        32.015        .59950E-05   -1.5173    
  15  Prefactor     7.8016        51.568        .57565E-05   -1.5149    
  16  Prefactor     6.3263        12.886        .63815E-05   -1.5205    
  17  Prefactor     .10000E-03    74.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.007        10.242        .42818E-05   -1.4959    
  20  Prefactor     58.357        42.734        .10502E-04   -1.4179    
  21  Prefactor     .10000E-03    25.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.1733        20.762        .56144E-05   -1.5136    
  23  norm          .10000E-03    6.2030        .31876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.7770        .27908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.8666        .21646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.2974        .34538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.0331        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    66.793        .12973       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.9025        .21743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    36.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    5.2283        .29022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4960        .28557        .45670E-04   -.77890    
  33  Prefactor     .64503        .24038        .59732E-04   -1.0572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54556e-10
Minuit parameter uncertainties:
  1  3.59814e-06
  2  5.73104
  3  14.7209
  4  1.72393e-05
  5  0.000500548
  6  9.41602
  7  0.000369532
  8  5.80139
  9  0.00158571
  10  2.21812e-06
  11  6.5797e-05
  12  5.81148e-05
  13  1.21344e-05
  14  30.2841
  15  40.1653
  16  12.8912
  17  0.000343144
  18  9.10184e-05
  19  10.2434
  20  42.7563
  21  0.000262925
  22  20.7807
  23  3.31867e-05
  24  8.2525e-06
  25  2.99348e-06
  26  2.75224e-05
  27  7.10775e-05
  28  7.73583e-05
  29  6.39651e-06
  30  0.000117725
  31  6.23741e-06
  32  0.285874
  33  0.240763
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.580e-05  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.450e-01  2.408e-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.496e+00  2.859e-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: 5.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358789/likelihoodResults_445392001_445651201_4FGL_J2234.2-4156_daily_bin795.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) = 4296.17365604
delta logL = -0.000278407246697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4296.17337976
delta logL = -2.12370287045e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5039       1.0000          .0000       10.000    
     3 'Normalizat'    1.4960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64503       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=   4296.173     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      279 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10413E-03    1.3025        .18142E-01** at limit **
   2  Index         2.4028        8.2725        .50000        .22793E-04
   3  Normalizat    1.4960        .19248E-02    .22835E-03   -.15060E-03
   4  Prefactor     .64503        .17369E-02    .29866E-03   -.96992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104132
  Index      = 2.40281
  Normalizat = 1.49602
  Prefactor  = 0.645028
 **********
 **   18 **HESSE 
 **********

 FCN=   4296.173     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10413E-03    72.516        .21499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4028        8.7106        .50000       -.54619    
   3  Normalizat    1.4960        .14450E-01    .45670E-04   -.77890    
   4  Prefactor     .64503        .13039E-01    .11946E-04   -1.0572    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.27242e-08
Minuit parameter uncertainties:
  1  0.0346616
  2  311.96
  3  0.0144502
  4  0.0130393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358789': 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) = 4296.17337931
delta logL = -1.67291909747e-06

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.041e-04  3.466e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.403e+00  3.120e+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:  6.450e-01  1.304e-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:  1.496e+00  1.445e-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/358789/cmap_HighResolution_445392001_445651201_4FGL_J2234.2-4156_daily_bin795.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-09-28 14:55:35.187500', job_id='358789', GAL2='0.65', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1632866135.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='-1.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='795' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:55:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 358789: <4FGL_J2234.2-4156_daily_bin795> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin795> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:32 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:34 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:34 2021
Terminated at Tue Sep 28 14:55:35 2021
Results reported at Tue Sep 28 14:55:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin795 338.568 -41.9411 445392001 445651201 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

