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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1520
RA = 338.568, Dec = -41.9411
tmin = 633312001, tmax = 633571201
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='362990', job_status='RUN', time_executed='2021-09-28 14:57:02.952221', time_epoch_executed='1632866222.95' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362990

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362990/ft1_4FGL_J2234.2-4156_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362990/ft2_4FGL_J2234.2-4156_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362990/ft1_4FGL_J2234.2-4156_daily_bin1520.fits outfile=/scratch/kocevski/362990/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1520.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=633312001.0 tmax=633571201.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.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362990/ft2_4FGL_J2234.2-4156_daily_bin1520.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/362990/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1520.fits evtable="EVENTS" outfile="/scratch/kocevski/362990/ft1_filtered_4FGL_J2234.2-4156_daily_bin1520.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362990/ft1_filtered_4FGL_J2234.2-4156_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/362990/ft2_4FGL_J2234.2-4156_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/362990/ltcube_633312001_633571201_4FGL_J2234.2-4156_daily_bin1520.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/362990/ft2_4FGL_J2234.2-4156_daily_bin1520.fits
.....................!
real 11.82
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362990/ft1_filtered_4FGL_J2234.2-4156_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/362990/ft2_4FGL_J2234.2-4156_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/362990/ltcube_633312001_633571201_4FGL_J2234.2-4156_daily_bin1520.fits outfile=/scratch/kocevski/362990/expmap_633312001_633571201_4FGL_J2234.2-4156_daily_bin1520.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/362990/ltcube_633312001_633571201_4FGL_J2234.2-4156_daily_bin1520.fits
.....................!
real 190.88
user 185.34
sys 5.18

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/362990/ft1_filtered_4FGL_J2234.2-4156_daily_bin1520.fits scfile=/scratch/kocevski/362990/ft2_4FGL_J2234.2-4156_daily_bin1520.fits outfile=/scratch/kocevski/362990/cmap_633312001_633571201_4FGL_J2234.2-4156_daily_bin1520.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362990/ft1_filtered_4FGL_J2234.2-4156_daily_bin1520.fits scfile=/scratch/kocevski/362990/ft2_4FGL_J2234.2-4156_daily_bin1520.fits outfile=/scratch/kocevski/362990/cmap_HighResolution_633312001_633571201_4FGL_J2234.2-4156_daily_bin1520.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/362990/ft1_filtered_4FGL_J2234.2-4156_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/362990/ft2_4FGL_J2234.2-4156_daily_bin1520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362990/Model_4FGL_J2234.2-4156_daily_bin1520.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/362990/ft1_filtered_4FGL_J2234.2-4156_daily_bin1520.fits.....................!
real 40.81
user 39.42
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5899       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.443       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4606       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6115       1.0000         .10000E-03   10000.    
     7 'Prefactor '    247.11       1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.291       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2989       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9612       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.750       1.0000         .10000E-03   10000.    
    15 'Prefactor '    78.366       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2667       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.279       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.227       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34968E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    139.15       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    40.486       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.5955       1.0000         .10000E-03   10000.    
    26 'norm      '    12.369       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.5820       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.5474       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .76439       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0848       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=   5075.811     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     4709 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.419       -.85096E-06** at limit **
   2  norm          3.5897        3.4531       -.42876E-07    .65931E-05
   3  Prefactor     15.443        11.893        .48765E-07   -.12397E-04
   4  Prefactor     6.4596        9.4388        .16882E-06   -.12163E-04
   5  Prefactor     .10000E-03    15.012        .11186E-06** at limit **
   6  Prefactor     4.6142        7.3986        .49616E-05   -.24748E-03
   7  Prefactor     247.02        123.50       -.62320E-05   -.49140E-03
   8  norm          .10000E-03    3.5792       -.86455E-07** at limit **
   9  Prefactor     16.292        11.905        .38153E-08   -.24111E-04
  10  Prefactor     4.2991        3.8560        .12867E-06    .13712E-03
  11  Prefactor     .10000E-03    13.064       -.11447E-06** at limit **
  12  Prefactor     .10000E-03    6.4594        .96815E-07** at limit **
  13  Prefactor     1.9605        122.63        .23600E-05   -.33810E-05
  14  Prefactor     23.751        23.391       -.89875E-08    .26419E-04
  15  Prefactor     78.372        42.840       -.77420E-06   -.29924E-04
  16  Prefactor     1.2684        30.418        .48557E-05   -.92614E-05
  17  Prefactor     35.275        95.110       -.20193E-05   -.22461E-04
  18  Prefactor     19.228        16.924        .87147E-07   -.93977E-05
  19  Prefactor     .10722E-03    4.6027       -.19256E-05** at limit **
  20  Prefactor     .10000E-03    21.806       -.27586E-06** at limit **
  21  Prefactor     139.15        83.633        .28182E-06    .39781E-04
  22  Prefactor     .10000E-03    4.7553       -.10938E-06** at limit **
  23  norm          40.487        19.136        .70322E-07    .17107E-04
  24  norm          .10000E-03    1.9924        .57264E-08** at limit **
  25  norm          2.5953        5.3340        .40355E-06    .31363E-04
  26  norm          12.370        10.809        .33532E-06   -.21913E-04
  27  Prefactor     8.5821        5.8052        .26195E-07    .22501E-04
  28  Prefactor     .10000E-03    43.262        .15119E-05** at limit **
  29  norm          4.5484        5.2933        .37743E-06    .80530E-04
  30  Prefactor     .10000E-03    4.8088        .14555E-06** at limit **
  31  norm          .10000E-03    4.4592        .10750E-06** at limit **
  32  Normalizat    .76427        .21838       -.65688E-06    .15829E-04
  33  Prefactor     1.0849        .19619       -.33148E-06    .34476E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 3.58967
  Prefactor  = 15.4431
  Prefactor  = 6.45956
  Prefactor  = 0.0001
  Prefactor  = 4.61418
  Prefactor  = 247.022
  norm       = 0.0001
  Prefactor  = 16.2925
  Prefactor  = 4.29911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9605
  Prefactor  = 23.7511
  Prefactor  = 78.3717
  Prefactor  = 1.26845
  Prefactor  = 35.2754
  Prefactor  = 19.2277
  Prefactor  = 0.000107225
  Prefactor  = 0.0001
  Prefactor  = 139.152
  Prefactor  = 0.0001
  norm       = 40.4871
  norm       = 0.0001
  norm       = 2.59527
  norm       = 12.3697
  Prefactor  = 8.58211
  Prefactor  = 0.000100003
  norm       = 4.54835
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.76427
  Prefactor  = 1.08492
 **********
 **   18 **HESSE 
 **********

 FCN=   5075.811     FROM HESSE     STATUS=OK           703 CALLS     5412 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5897        3.4585        .12611E-03   -1.5329    
   3  Prefactor     15.443        11.887        .10192E-03   -1.4922    
   4  Prefactor     6.4596        9.4285        .15790E-03   -1.5200    
   5  Prefactor     .10000E-03    15.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6142        7.4057        .93716E-03   -1.5278    
   7  Prefactor     247.02        128.56        .12883E-03   -1.2551    
   8  norm          .10000E-03    3.5992        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.292        11.877        .99230E-04   -1.4900    
  10  Prefactor     4.2991        3.8571        .12640E-03   -1.5293    
  11  Prefactor     .10000E-03    13.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5710        .17644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9605        120.23        .29620E-03   -1.5428    
  14  Prefactor     23.751        23.306        .82194E-04   -1.4733    
  15  Prefactor     78.372        42.014        .45364E-04   -1.3935    
  16  Prefactor     1.2684        28.903        .39571E-03   -1.5483    
  17  Prefactor     35.275        94.518        .67471E-04   -1.4519    
  18  Prefactor     19.228        16.970        .91343E-04   -1.4831    
  19  Prefactor     .10722E-03    3.9282        .48391E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     139.15        83.702        .34148E-04   -1.3343    
  22  Prefactor     .10000E-03    4.7640        .15178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          40.487        19.136        .62997E-04   -1.4435    
  24  norm          .10000E-03    1.9929        .98213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.5953        5.3038        .22071E-03   -1.5386    
  26  norm          12.370        10.812        .56949E-03   -1.5004    
  27  Prefactor     8.5821        5.8075        .13683E-03   -1.5122    
  28  Prefactor     .10000E-03    43.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.5484        5.2622        .16128E-03   -1.5281    
  30  Prefactor     .10000E-03    4.8146        .15261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    4.5014        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .76427        .26002        .29768E-03   -1.0141    
  33  Prefactor     1.0849        .23409        .24240E-03   -.89950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49681e-09
Minuit parameter uncertainties:
  1  0.000585614
  2  3.45872
  3  11.8891
  4  9.43071
  5  0.000107264
  6  7.4072
  7  128.706
  8  1.05882e-06
  9  11.8792
  10  3.85734
  11  4.45255e-05
  12  1.4804e-05
  13  30.7703
  14  23.3152
  15  42.0298
  16  12.1159
  17  94.9233
  18  16.9744
  19  0.0106553
  20  0.000159975
  21  83.7734
  22  2.84138e-05
  23  19.139
  24  3.46682e-07
  25  5.30476
  26  10.8136
  27  5.80785
  28  0.000765181
  29  5.2627
  30  2.69073e-05
  31  6.78465e-06
  32  0.260443
  33  0.234315
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.453e-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.085e+00  2.343e-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:  7.643e-01  2.604e-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: 3.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362990/likelihoodResults_633312001_633571201_4FGL_J2234.2-4156_daily_bin1520.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) = 5075.81088531
delta logL = -0.000361064767276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5075.81052423
delta logL = 2.12194208871e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9683       1.0000          .0000       10.000    
     3 'Normalizat'    .76422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0850       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=   5075.811     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      250 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10268E-03    6.2152        .18142E-01** at limit **
   2  Index         1.8834        5.1521        .50000        .11940E-04
   3  Normalizat    .76427        .33048E-02    .29768E-03    .23678E-05
   4  Prefactor     1.0849        .31745E-02    .24240E-03    .36583E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102679
  Index      = 1.88338
  Normalizat = 0.764271
  Prefactor  = 1.08492
 **********
 **   18 **HESSE 
 **********

 FCN=   5075.811     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10268E-03    105.45        .26448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8834        8.6482        .50000       -.67299    
   3  Normalizat    .76427        .13726E-01    .11907E-04   -1.0141    
   4  Prefactor     1.0849        .13185E-01    .96959E-05   -.89950    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.90324e-09
Minuit parameter uncertainties:
  1  0.0336736
  2  406.58
  3  0.0137262
  4  0.013185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362990': 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) = 5075.81052397
delta logL = 2.73319528787e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.027e-04  3.367e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.883e+00  4.066e+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.085e+00  1.318e-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:  7.643e-01  1.373e-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/362990/cmap_HighResolution_633312001_633571201_4FGL_J2234.2-4156_daily_bin1520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-03', job_status='DONE', photon_flux_upper_limit='3.89e-08', time_completed='2021-09-28 15:10:45.154319', job_id='362990', GAL2='1.08', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632867045.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1520' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:10:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 362990: <4FGL_J2234.2-4156_daily_bin1520> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1520 338.568 -41.9411 633312001 633571201 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 :                                   820.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

