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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1467
RA = 338.568, Dec = -41.9411
tmin = 619574401, tmax = 619833601
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='362905', job_status='RUN', time_executed='2021-09-28 14:56:23.329752', time_epoch_executed='1632866183.33' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362905

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362905/ft1_4FGL_J2234.2-4156_daily_bin1467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362905/ft2_4FGL_J2234.2-4156_daily_bin1467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362905/ft1_4FGL_J2234.2-4156_daily_bin1467.fits outfile=/scratch/kocevski/362905/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1467.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=619574401.0 tmax=619833601.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.68
user 3.26
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362905/ft1_filtered_4FGL_J2234.2-4156_daily_bin1467.fits" evtable="EVENTS" scfile=/scratch/kocevski/362905/ft2_4FGL_J2234.2-4156_daily_bin1467.fits sctable="SC_DATA" outfile=/scratch/kocevski/362905/ltcube_619574401_619833601_4FGL_J2234.2-4156_daily_bin1467.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/362905/ft2_4FGL_J2234.2-4156_daily_bin1467.fits
.....................!
real 12.19
user 11.81
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362905/ft1_filtered_4FGL_J2234.2-4156_daily_bin1467.fits evtable="EVENTS" scfile=/scratch/kocevski/362905/ft2_4FGL_J2234.2-4156_daily_bin1467.fits sctable="SC_DATA" expcube=/scratch/kocevski/362905/ltcube_619574401_619833601_4FGL_J2234.2-4156_daily_bin1467.fits outfile=/scratch/kocevski/362905/expmap_619574401_619833601_4FGL_J2234.2-4156_daily_bin1467.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/362905/ltcube_619574401_619833601_4FGL_J2234.2-4156_daily_bin1467.fits
.....................!
real 192.98
user 187.06
sys 5.50

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362905/ft1_filtered_4FGL_J2234.2-4156_daily_bin1467.fits scfile=/scratch/kocevski/362905/ft2_4FGL_J2234.2-4156_daily_bin1467.fits outfile=/scratch/kocevski/362905/cmap_HighResolution_619574401_619833601_4FGL_J2234.2-4156_daily_bin1467.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.602       1.0000         .10000E-03   10000.    
     2 'norm      '    9.5195       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7612       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.795       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5837       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7866       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17974       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    86.043       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.096       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.797       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0921       1.0000         .10000E-03   10000.    
    23 'norm      '    14.619       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.0387       1.0000         .10000E-03   10000.    
    26 'norm      '    10.496       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    89.183       1.0000         .10000E-03   10000.    
    29 'norm      '    .10839E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    11.237       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .51532       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3182       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=   4874.102     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     5310 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.628        53.122        .12746E-06    .20996E-04
   2  norm          9.5203        5.8759       -.33482E-08   -.18902E-04
   3  Prefactor     .10000E-03    3.5231       -.14939E-06** at limit **
   4  Prefactor     9.7627        8.8041        .17470E-07   -.23703E-04
   5  Prefactor     20.558        50.590        .31494E-06   -.37118E-04
   6  Prefactor     .10000E-03    14.361        .52634E-05** at limit **
   7  Prefactor     26.918        152.03       -.23916E-05   -.61114E-05
   8  norm          1.5849        9.5155        .28106E-05    .39832E-04
   9  Prefactor     5.7907        10.272        .16883E-06   -.25072E-04
  10  Prefactor     .22264        2.7294        .65700E-06   -.65788E-03
  11  Prefactor     .10000E-03    28.050       -.26372E-06** at limit **
  12  Prefactor     .10000E-03    2.1461        .48874E-07** at limit **
  13  Prefactor     86.061        42.560       -.12564E-06    .62409E-05
  14  Prefactor     33.089        29.410        .75569E-07   -.32866E-04
  15  Prefactor     .10000E-03    17.184        .29844E-06** at limit **
  16  Prefactor     19.797        14.107        .10505E-06   -.35576E-04
  17  Prefactor     .10000E-03    156.68       -.31021E-06** at limit **
  18  Prefactor     .10000E-03    16.099       -.10495E-05** at limit **
  19  Prefactor     .10000E-03    2.3283       -.10058E-06** at limit **
  20  Prefactor     .10000E-03    50.032       -.51495E-06** at limit **
  21  Prefactor     .10000E-03    47.049       -.52729E-06** at limit **
  22  Prefactor     8.0934        9.9063        .43998E-07   -.11639E-04
  23  norm          14.622        13.800        .13742E-07   -.42280E-05
  24  norm          .10000E-03    2.7681       -.50813E-07** at limit **
  25  norm          6.0386        5.6908       -.29223E-07   -.82281E-04
  26  norm          10.499        10.257       -.56211E-08   -.28950E-04
  27  Prefactor     .10000E-03    3.6098       -.16440E-06** at limit **
  28  Prefactor     89.224        56.006       -.48378E-06   -.72706E-04
  29  norm          .10000E-03    5.6703        .24189E-05** at limit **
  30  Prefactor     .10000E-03    7.0268       -.11340E-06** at limit **
  31  norm          11.237        8.5316       -.68018E-07   -.14982E-03
  32  Normalizat    .51506        .22955        .14625E-05   -.17805E-03
  33  Prefactor     1.3181        .21062       -.96034E-06   -.16188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.6283
  norm       = 9.52034
  Prefactor  = 0.0001
  Prefactor  = 9.76271
  Prefactor  = 20.5584
  Prefactor  = 0.0001
  Prefactor  = 26.9176
  norm       = 1.58493
  Prefactor  = 5.79069
  Prefactor  = 0.222637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.0613
  Prefactor  = 33.0891
  Prefactor  = 0.0001
  Prefactor  = 19.7974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.09338
  norm       = 14.6224
  norm       = 0.0001
  norm       = 6.0386
  norm       = 10.4986
  Prefactor  = 0.0001
  Prefactor  = 89.2239
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2372
  Normalizat = 0.515056
  Prefactor  = 1.31807
 **********
 **   18 **HESSE 
 **********

 FCN=   4874.102     FROM HESSE     STATUS=OK           691 CALLS     6001 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.628        53.102        .46486E-04   -1.3978    
   2  norm          9.5203        5.8785        .12317E-03   -1.5091    
   3  Prefactor     .10000E-03    3.5282        .12797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7627        8.8107        .12826E-03   -1.5083    
   5  Prefactor     20.558        50.468        .88374E-04   -1.4801    
   6  Prefactor     .10000E-03    14.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.918        151.44        .77391E-04   -1.4670    
   8  norm          1.5849        9.4713        .33739E-03   -1.5456    
   9  Prefactor     5.7907        10.245        .16696E-03   -1.5227    
  10  Prefactor     .22264        19.472        .20508E-02   -1.5614    
  11  Prefactor     .10000E-03    28.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1524        .99843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     86.061        42.511        .43310E-04   -1.3850    
  14  Prefactor     33.089        29.390        .69653E-04   -1.4557    
  15  Prefactor     .10000E-03    17.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.797        14.091        .90019E-04   -1.4818    
  17  Prefactor     .10000E-03    157.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3326        .10403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    47.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.0934        9.9029        .14094E-03   -1.5139    
  23  norm          14.622        13.802        .10475E-03   -1.4943    
  24  norm          .10000E-03    2.7705        .11344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.0386        5.6889        .15513E-03   -1.5216    
  26  norm          10.499        10.257        .12367E-03   -1.5060    
  27  Prefactor     .10000E-03    3.6301        .12952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     89.224        56.055        .42547E-04   -1.3816    
  29  norm          .10000E-03    5.7578        .16189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.0433        .18074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          11.237        8.5340        .11951E-03   -1.5037    
  32  Normalizat    .51506        .25947        .34547E-03   -1.1172    
  33  Prefactor     1.3181        .24280        .22089E-03   -.82771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68597e-09
Minuit parameter uncertainties:
  1  53.1354
  2  5.87886
  3  2.08151e-06
  4  8.81191
  5  50.5727
  6  8.14596e-05
  7  128.193
  8  7.75048
  9  10.2486
  10  4.16464
  11  3.06883e-05
  12  2.3347e-06
  13  42.5265
  14  29.4025
  15  2.36509e-05
  16  14.0938
  17  6.93872e-06
  18  5.45588e-05
  19  2.0416e-06
  20  5.01977e-05
  21  8.34985e-05
  22  9.90491
  23  13.8049
  24  5.55344e-07
  25  5.68941
  26  10.2586
  27  2.01632e-06
  28  56.088
  29  3.62314e-05
  30  2.96005e-06
  31  8.53488
  32  0.260081
  33  0.243008
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.069e-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:  1.318e+00  2.430e-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:  5.151e-01  2.601e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362905/likelihoodResults_619574401_619833601_4FGL_J2234.2-4156_daily_bin1467.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) = 4874.10251331
delta logL = -0.000169462362464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4874.10234448
delta logL = -6.29998794466e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2563       1.0000          .0000       10.000    
     3 'Normalizat'    .51506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3181       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=   4874.102     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    128.97        .18142E-02** at limit **
   2  Index         2.1902        5.5708        .50000        .11854E-04
   3  Normalizat    .51506        .11846E-01    .34549E-03   -.30932E-05
   4  Prefactor     1.3181        .11733E-01    .22090E-03   -.13464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101885
  Index      = 2.19015
  Normalizat = 0.515058
  Prefactor  = 1.31807
 **********
 **   18 **HESSE 
 **********

 FCN=   4874.102     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10188E-03    574.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1902        6.0799        .50000       -.59676    
   3  Normalizat    .51506        .25738E-01    .13820E-04   -1.1172    
   4  Prefactor     1.3181        .25490E-01    .44179E-04   -.82771    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94127e-08
Minuit parameter uncertainties:
  1  0.0664336
  2  550.189
  3  0.0257388
  4  0.0254906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362905': 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) = 4874.1023443
delta logL = -4.53613210993e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.019e-04  6.643e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.190e+00  5.502e+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:  1.318e+00  2.549e-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:  5.151e-01  2.574e-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/362905/cmap_HighResolution_619574401_619833601_4FGL_J2234.2-4156_daily_bin1467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-03', job_status='DONE', photon_flux_upper_limit='6.31e-08', time_completed='2021-09-28 15:10:29.840557', job_id='362905', GAL2='1.32', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1632867029.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='-4.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1467' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:10:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 362905: <4FGL_J2234.2-4156_daily_bin1467> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1467 338.568 -41.9411 619574401 619833601 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 :                                   842.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

