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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1483
RA = 338.568, Dec = -41.9411
tmin = 623721601, tmax = 623980801
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='362930', job_status='RUN', time_executed='2021-09-28 14:56:29.748431', time_epoch_executed='1632866189.75' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362930

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362930/ft1_4FGL_J2234.2-4156_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362930/ft2_4FGL_J2234.2-4156_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362930/ft1_4FGL_J2234.2-4156_daily_bin1483.fits outfile=/scratch/kocevski/362930/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1483.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=623721601.0 tmax=623980801.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.20
user 4.94
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362930/ft1_filtered_4FGL_J2234.2-4156_daily_bin1483.fits" evtable="EVENTS" scfile=/scratch/kocevski/362930/ft2_4FGL_J2234.2-4156_daily_bin1483.fits sctable="SC_DATA" outfile=/scratch/kocevski/362930/ltcube_623721601_623980801_4FGL_J2234.2-4156_daily_bin1483.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/362930/ft2_4FGL_J2234.2-4156_daily_bin1483.fits
.....................!
real 11.58
user 11.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362930/ft1_filtered_4FGL_J2234.2-4156_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/362930/ft2_4FGL_J2234.2-4156_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/362930/ltcube_623721601_623980801_4FGL_J2234.2-4156_daily_bin1483.fits outfile=/scratch/kocevski/362930/expmap_623721601_623980801_4FGL_J2234.2-4156_daily_bin1483.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/362930/ltcube_623721601_623980801_4FGL_J2234.2-4156_daily_bin1483.fits
.....................!
real 190.81
user 185.55
sys 4.89

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/362930/ft1_filtered_4FGL_J2234.2-4156_daily_bin1483.fits scfile=/scratch/kocevski/362930/ft2_4FGL_J2234.2-4156_daily_bin1483.fits outfile=/scratch/kocevski/362930/cmap_623721601_623980801_4FGL_J2234.2-4156_daily_bin1483.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/362930/ft1_filtered_4FGL_J2234.2-4156_daily_bin1483.fits scfile=/scratch/kocevski/362930/ft2_4FGL_J2234.2-4156_daily_bin1483.fits outfile=/scratch/kocevski/362930/cmap_HighResolution_623721601_623980801_4FGL_J2234.2-4156_daily_bin1483.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362930/ft1_filtered_4FGL_J2234.2-4156_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/362930/ft2_4FGL_J2234.2-4156_daily_bin1483.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362930/Model_4FGL_J2234.2-4156_daily_bin1483.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/362930/ft1_filtered_4FGL_J2234.2-4156_daily_bin1483.fits......................!
real 37.46
user 36.06
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11183E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.137       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .88146       1.0000         .10000E-03   10000.    
     7 'Prefactor '    69.483       1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7736       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.348       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5674       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.539       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.148       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.649       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3117       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4071       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25389E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.2677       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.7233       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.756       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.8324       1.0000         .10000E-03   10000.    
    31 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0968       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0393       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=   4044.449     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     4669 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    136.90       -.46301E-05** at limit **
   2  norm          .10000E-03    2.2353       -.42585E-06** at limit **
   3  Prefactor     .10000E-03    4.9521       -.32315E-06** at limit **
   4  Prefactor     .10000E-03    5.8376       -.51212E-06** at limit **
   5  Prefactor     12.174        79.140        .35921E-05    .48093E-04
   6  Prefactor     .94270        84.222        .10516E-04    .17413E-03
   7  Prefactor     69.030        210.40       -.18784E-04    .11205E-03
   8  norm          .10000E-03    2.6765        .18890E-06** at limit **
   9  Prefactor     .10000E-03    22.301       -.21528E-05** at limit **
  10  Prefactor     8.7760        7.6416       -.19622E-05    .33029E-04
  11  Prefactor     45.351        67.088        .20593E-05    .16764E-04
  12  Prefactor     2.5657        7.3975       -.14279E-05    .36696E-04
  13  Prefactor     .10000E-03    40.623       -.84944E-06** at limit **
  14  Prefactor     49.542        44.803        .28645E-06    .77089E-04
  15  Prefactor     13.184        32.877        .16993E-05    .66666E-04
  16  Prefactor     .10000E-03    8.8284       -.20641E-05** at limit **
  17  Prefactor     .10000E-03    37.506       -.10212E-05** at limit **
  18  Prefactor     25.650        27.209       -.58383E-06    .10162E-03
  19  Prefactor     4.3128        8.2255       -.46468E-05   -.78822E-04
  20  Prefactor     3.4092        47.101       -.15545E-05    .27449E-05
  21  Prefactor     .10561E-03    93.362       -.11282E-04** at limit **
  22  Prefactor     .10000E-03    5.8974       -.95298E-07** at limit **
  23  norm          .10000E-03    4.6689       -.77599E-07** at limit **
  24  norm          9.2685        7.9367       -.97578E-07    .69992E-05
  25  norm          .10000E-03    2.0750       -.71829E-07** at limit **
  26  norm          8.7244        13.240       -.29782E-06    .31773E-04
  27  Prefactor     17.755        19.255        .96315E-06    .39414E-04
  28  Prefactor     .10000E-03    12.651       -.25856E-06** at limit **
  29  norm          .10000E-03    2.1201       -.26614E-06** at limit **
  30  Prefactor     3.8275        86.003       -.10789E-04   -.19505E-04
  31  norm          .10000E-03    3.7484       -.36301E-06** at limit **
  32  Normalizat    1.0966        .27927        .36884E-05    .26822E-03
  33  Prefactor     1.0393        .22922       -.16311E-06    .40775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1736
  Prefactor  = 0.9427
  Prefactor  = 69.03
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.77599
  Prefactor  = 45.3507
  Prefactor  = 2.5657
  Prefactor  = 0.0001
  Prefactor  = 49.5424
  Prefactor  = 13.1837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6504
  Prefactor  = 4.31283
  Prefactor  = 3.40924
  Prefactor  = 0.000105605
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.26848
  norm       = 0.0001
  norm       = 8.72439
  Prefactor  = 17.7552
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.82755
  norm       = 0.0001
  Normalizat = 1.09656
  Prefactor  = 1.03928
 **********
 **   18 **HESSE 
 **********

 FCN=   4044.449     FROM HESSE     STATUS=OK           697 CALLS     5366 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    138.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.2418        .92891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.9580        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8557        .15010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.174        82.291        .11498E-03   -1.5010    
   6  Prefactor     .94270        106.85        .34983E-02   -1.5514    
   7  Prefactor     69.030        224.23        .24078E-03   -1.4044    
   8  norm          .10000E-03    2.6769        .10161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.7760        7.6407        .67662E-03   -1.5115    
  11  Prefactor     45.351        67.051        .59538E-04   -1.4360    
  12  Prefactor     2.5657        7.3391        .25476E-03   -1.5388    
  13  Prefactor     .10000E-03    40.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.542        45.012        .56976E-04   -1.4299    
  15  Prefactor     13.184        32.920        .11047E-03   -1.4982    
  16  Prefactor     .10000E-03    8.9050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.650        27.543        .79097E-04   -1.4695    
  19  Prefactor     4.3128        8.1861        .97003E-03   -1.5293    
  20  Prefactor     3.4092        47.170        .21917E-03   -1.5339    
  21  Prefactor     .10561E-03    66.248        .16934       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9007        .15084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.6694        .13421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.2685        7.9360        .13165E-03   -1.5099    
  25  norm          .10000E-03    2.0763        .89472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.7244        13.252        .13572E-03   -1.5117    
  27  Prefactor     17.755        18.568        .95049E-04   -1.4865    
  28  Prefactor     .10000E-03    12.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.1343        .90440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.8275        80.607        .10308E-02   -1.5317    
  31  norm          .10000E-03    3.8256        .12026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0966        .33853        .27396E-03   -.89862    
  33  Prefactor     1.0393        .27673        .25476E-03   -.91431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59589e-09
Minuit parameter uncertainties:
  1  0.000724227
  2  7.90496e-06
  3  1.21031e-05
  4  1.33876e-05
  5  63.4276
  6  20.1088
  7  227.062
  8  2.2039e-06
  9  0.000153914
  10  7.64155
  11  67.1629
  12  7.34164
  13  0.000181624
  14  45.0431
  15  32.9652
  16  5.92816e-05
  17  4.60114e-05
  18  27.5569
  19  8.18825
  20  25.3865
  21  0.0385835
  22  5.77283e-06
  23  4.11414e-07
  24  7.93689
  25  1.39425e-06
  26  13.2566
  27  18.5742
  28  8.97207e-06
  29  5.75714e-06
  30  35.1835
  31  1.02979e-05
  32  0.339197
  33  0.277113
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.535e+01  6.716e+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:  1.039e+00  2.771e-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.097e+00  3.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.83
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362930/likelihoodResults_623721601_623980801_4FGL_J2234.2-4156_daily_bin1483.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) = 4043.49787395
delta logL = 0.950940176635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4043.4863458
delta logL = 0.962468323892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2917       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3714       1.0000          .0000       10.000    
     3 'Normalizat'    .97576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1066       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4043.486     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      264 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2073        107.77        .37134E-02    .21155E-03
   2  Index         3.3762        2.4603        .78100E-01    .15776E-03
   3  Normalizat    .97580        .96064E-01    .45862E-01    .20713E-04
   4  Prefactor     1.1064        .79880E-01    .56023E-01    .84161E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.20729
  Index      = 3.37625
  Normalizat = 0.975801
  Prefactor  = 1.10642
 **********
 **   18 **HESSE 
 **********

 FCN=   4043.486     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2073        167.19        .11407E-03   -1.5171    
   2  Index         3.3762        3.4040        .29878E-02   -.33075    
   3  Normalizat    .97580        .32568        .28742E-03   -.93846    
   4  Prefactor     1.1064        .28435        .24771E-03   -.89262    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.57183e-10
Minuit parameter uncertainties:
  1  69.6457
  2  3.79996
  3  0.326343
  4  0.284738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362930': 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) = 4043.48633415
delta logL = 0.962479983015

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  7.207e+00  6.965e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  3.376e+00  3.800e+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:  1.106e+00  2.847e-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:  9.758e-01  3.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 3.38 +/- 3.80
Photon Flux (Free Index): 1.35e-07 +/- 1.46e-07
Energy Flux (Free Index): 2.33e-05 +/- 1.86e-05

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/362930/cmap_HighResolution_623721601_623980801_4FGL_J2234.2-4156_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', comment='SUCCESS', energy_flux2='2.33e-05', dlogl='9.62e-01', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-28 15:08:45.603156', photon_index_error2='3.80', photon_index2='3.38', ts='0.83', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.86e-05', EG='1.10', time_epoch_completed='1632866925.6', return_code='0', job_id='362930', GAL2='1.11', EG2='0.98', return_code2='102', photon_flux_error2='1.46e-07', ts2='2.89', photon_index='1.99' WHERE bin_id='1483' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:08:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 362930: <4FGL_J2234.2-4156_daily_bin1483> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1483 338.568 -41.9411 623721601 623980801 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 :                                   733.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            801 sec.

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

