/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 234 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin332
RA = 338.568, Dec = -41.9411
tmin = 325382401, tmax = 325641601
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='357220', job_status='RUN', time_executed='2021-09-28 14:39:48.385102', time_epoch_executed='1632865188.39' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357220

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357220/ft1_4FGL_J2234.2-4156_daily_bin332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357220/ft2_4FGL_J2234.2-4156_daily_bin332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357220/ft1_4FGL_J2234.2-4156_daily_bin332.fits outfile=/scratch/kocevski/357220/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin332.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=325382401.0 tmax=325641601.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.66
user 3.49
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357220/ft2_4FGL_J2234.2-4156_daily_bin332.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/357220/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin332.fits evtable="EVENTS" outfile="/scratch/kocevski/357220/ft1_filtered_4FGL_J2234.2-4156_daily_bin332.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.48
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357220/ft1_filtered_4FGL_J2234.2-4156_daily_bin332.fits" evtable="EVENTS" scfile=/scratch/kocevski/357220/ft2_4FGL_J2234.2-4156_daily_bin332.fits sctable="SC_DATA" outfile=/scratch/kocevski/357220/ltcube_325382401_325641601_4FGL_J2234.2-4156_daily_bin332.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/357220/ft2_4FGL_J2234.2-4156_daily_bin332.fits
.....................!
real 11.82
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357220/ft1_filtered_4FGL_J2234.2-4156_daily_bin332.fits evtable="EVENTS" scfile=/scratch/kocevski/357220/ft2_4FGL_J2234.2-4156_daily_bin332.fits sctable="SC_DATA" expcube=/scratch/kocevski/357220/ltcube_325382401_325641601_4FGL_J2234.2-4156_daily_bin332.fits outfile=/scratch/kocevski/357220/expmap_325382401_325641601_4FGL_J2234.2-4156_daily_bin332.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/357220/ltcube_325382401_325641601_4FGL_J2234.2-4156_daily_bin332.fits
.....................!
real 191.53
user 187.38
sys 3.83

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/357220/ft1_filtered_4FGL_J2234.2-4156_daily_bin332.fits scfile=/scratch/kocevski/357220/ft2_4FGL_J2234.2-4156_daily_bin332.fits outfile=/scratch/kocevski/357220/cmap_325382401_325641601_4FGL_J2234.2-4156_daily_bin332.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357220/ft1_filtered_4FGL_J2234.2-4156_daily_bin332.fits scfile=/scratch/kocevski/357220/ft2_4FGL_J2234.2-4156_daily_bin332.fits outfile=/scratch/kocevski/357220/cmap_HighResolution_325382401_325641601_4FGL_J2234.2-4156_daily_bin332.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.56
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357220/ft1_filtered_4FGL_J2234.2-4156_daily_bin332.fits evtable="EVENTS" scfile=/scratch/kocevski/357220/ft2_4FGL_J2234.2-4156_daily_bin332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357220/Model_4FGL_J2234.2-4156_daily_bin332.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/357220/ft1_filtered_4FGL_J2234.2-4156_daily_bin332.fits.....................!
real 43.70
user 42.51
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.131       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7692       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7960       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    64.513       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.182       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.905       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.803       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30927E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.710       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .36707       1.0000         .10000E-03   10000.    
    20 'Prefactor '    76.593       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8704       1.0000         .10000E-03   10000.    
    23 'norm      '    13.548       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    10.064       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.887       1.0000         .10000E-03   10000.    
    31 'norm      '    5.5367       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1565       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .89434       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=   5236.461     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     4623 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.128        26.772        .10074E-06    .10287E-04
   2  norm          .10000E-03    1.1269       -.29618E-07** at limit **
   3  Prefactor     .10000E-03    2.3448       -.59763E-07** at limit **
   4  Prefactor     .10000E-03    2.1275       -.36371E-07** at limit **
   5  Prefactor     3.7750        97.193       -.98771E-05    .96842E-05
   6  Prefactor     1.7967        8.6747        .13493E-04    .78669E-06
   7  Prefactor     .10000E-03    94.031       -.15160E-05** at limit **
   8  norm          .10000E-03    7.9485       -.12837E-06** at limit **
   9  Prefactor     .10000E-03    3.7021       -.17582E-06** at limit **
  10  Prefactor     .10000E-03    1.0562        .30397E-07** at limit **
  11  Prefactor     64.518        45.056        .86643E-07    .40701E-04
  12  Prefactor     23.190        10.058       -.97286E-07    .19470E-03
  13  Prefactor     .10000E-03    11.161       -.18973E-06** at limit **
  14  Prefactor     31.919        23.128        .39518E-06    .62495E-07
  15  Prefactor     21.801        36.184       -.28868E-06   -.13306E-03
  16  Prefactor     .10053E-03    9.1403        .29589E-05** at limit **
  17  Prefactor     .10000E-03    39.004       -.12031E-05** at limit **
  18  Prefactor     22.747        21.730        .91016E-06   -.48145E-04
  19  Prefactor     .38711        8.1466       -.28022E-05    .12678E-03
  20  Prefactor     76.647        58.278       -.20161E-05    .24240E-03
  21  Prefactor     .10000E-03    43.258        .16961E-05** at limit **
  22  Prefactor     7.8822        21.592        .10920E-05   -.11018E-04
  23  norm          13.548        12.254        .52889E-07   -.12668E-04
  24  norm          .10000E-03    2.5921       -.15575E-07** at limit **
  25  norm          .10000E-03    5.2175        .17002E-05** at limit **
  26  norm          .10000E-03    5.2447        .70760E-07** at limit **
  27  Prefactor     .10000E-03    4.0472       -.50623E-07** at limit **
  28  Prefactor     .10002E-03    152.46        .89638E-05** at limit **
  29  norm          10.069        7.4613       -.64695E-06   -.51642E-03
  30  Prefactor     10.893        20.986        .52357E-06   -.22811E-04
  31  norm          5.5361        5.7849       -.27493E-07   -.13269E-03
  32  Normalizat    1.1554        .22897       -.31230E-05   -.21562E-03
  33  Prefactor     .89516        .18749        .17395E-05   -.57849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.1277
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.77504
  Prefactor  = 1.79672
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.5184
  Prefactor  = 23.1898
  Prefactor  = 0.0001
  Prefactor  = 31.9186
  Prefactor  = 21.8013
  Prefactor  = 0.000100535
  Prefactor  = 0.000100001
  Prefactor  = 22.7472
  Prefactor  = 0.387111
  Prefactor  = 76.6468
  Prefactor  = 0.000100003
  Prefactor  = 7.88219
  norm       = 13.5476
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 10.0692
  Prefactor  = 10.893
  norm       = 5.53612
  Normalizat = 1.15537
  Prefactor  = 0.895164
 **********
 **   18 **HESSE 
 **********

 FCN=   5236.461     FROM HESSE     STATUS=OK           693 CALLS     5316 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.128        26.777        .76912E-04   -1.4666    
   2  norm          .10000E-03    1.1302        .75007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3492        .10822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1293        .10308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7750        97.940        .20794E-03   -1.5319    
   6  Prefactor     1.7967        8.8678        .15601E-02   -1.5440    
   7  Prefactor     .10000E-03    94.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.1198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7115        .13597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0584        .72615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     64.518        45.050        .49964E-04   -1.4100    
  12  Prefactor     23.190        10.079        .83195E-04   -1.4744    
  13  Prefactor     .10000E-03    11.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.919        23.188        .70938E-04   -1.4577    
  15  Prefactor     21.801        33.998        .85781E-04   -1.4774    
  16  Prefactor     .10053E-03    111.77        .38451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.747        22.173        .84053E-04   -1.4754    
  19  Prefactor     .38711        37.392        .38212E-02   -1.5584    
  20  Prefactor     76.647        58.248        .22941E-03   -1.3955    
  21  Prefactor     .10000E-03    43.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.8822        21.647        .14293E-03   -1.5146    
  23  norm          13.548        12.254        .10882E-03   -1.4972    
  24  norm          .10000E-03    2.5928        .11378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.3527        .16190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.2508        .16185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.0529        .14186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10002E-03    155.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          10.069        7.4991        .12631E-03   -1.5073    
  30  Prefactor     10.893        20.984        .12143E-03   -1.5048    
  31  norm          5.5361        5.7746        .16676E-03   -1.5237    
  32  Normalizat    1.1554        .27482        .25893E-03   -.87993    
  33  Prefactor     .89516        .22349        .26309E-03   -.96310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40978e-09
Minuit parameter uncertainties:
  1  26.7888
  2  2.13966e-06
  3  5.75346e-06
  4  4.70404e-06
  5  38.5265
  6  7.98489
  7  0.000803191
  8  3.0496e-05
  9  1.65658e-05
  10  2.71569e-06
  11  45.0742
  12  10.08
  13  2.70528e-05
  14  23.1944
  15  34.0282
  16  0.0154895
  17  0.000474371
  18  22.1814
  19  7.61307
  20  58.2914
  21  0.000717119
  22  21.6685
  23  12.2563
  24  1.78066e-06
  25  0.000235037
  26  3.05462e-06
  27  5.22071e-06
  28  0.00334347
  29  7.49984
  30  20.9982
  31  5.77521
  32  0.275166
  33  0.223721
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  6.452e+01  4.507e+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:  8.952e-01  2.237e-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.155e+00  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.81
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.59e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.77e-05

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) = 5235.91857442
delta logL = 0.542597096768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5235.76423085
delta logL = 0.696940668511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    104.55       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5186       1.0000          .0000       10.000    
     3 'Normalizat'    1.1685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88733       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=   5235.764     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      291 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     104.56        71.870        .19663E-03   -.23127E-06
   2  Index         1.5186        .37361        .64760E-02    .12995E-03
   3  Normalizat    1.1685        .23592        .25759E-03   -.11387E-04
   4  Prefactor     .88731        .21525        .26400E-03    .60290E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 104.558
  Index      = 1.51861
  Normalizat = 1.16852
  Prefactor  = 0.887309
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.764     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     104.56        71.606        .78653E-05   -1.3659    
   2  Index         1.5186        .37227        .12952E-02   -.77020    
   3  Normalizat    1.1685        .23611        .10303E-04   -.87581    
   4  Prefactor     .88731        .21544        .10560E-04   -.96586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94543e-13
Minuit parameter uncertainties:
  1  71.6652
  2  0.372941
  3  0.236328
  4  0.215643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357220': 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): 0
logL (Free Index) = 5235.76423084
delta logL = 0.696940681713

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.046e+02  7.167e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.519e+00  3.729e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.873e-01  2.156e-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.169e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.21
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 1.52 +/- 0.37
Photon Flux (Free Index): 2.41e-08 +/- 1.93e-08
Energy Flux (Free Index): 7.17e-05 +/- 7.66e-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/357220/cmap_HighResolution_325382401_325641601_4FGL_J2234.2-4156_daily_bin332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.59e-08', energy_flux2='7.17e-05', photon_flux_error='2.51e-08', dlogl='6.97e-01', energy_flux='2.53e-05', photon_flux2='2.41e-08', job_status='DONE', time_completed='2021-09-28 14:52:04.804830', photon_index_error2='0.37', photon_index2='1.52', ts='4.81', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='7.66e-05', EG='1.16', time_epoch_completed='1632865924.8', return_code='0', job_id='357220', GAL2='0.89', EG2='1.17', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='1.93e-08', ts2='6.21', photon_index='1.99' WHERE bin_id='332' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:52:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 357220: <4FGL_J2234.2-4156_daily_bin332> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin332> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:35:44 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:35:45 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:35:45 2021
Terminated at Tue Sep 28 14:52:05 2021
Results reported at Tue Sep 28 14:52:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin332 338.568 -41.9411 325382401 325641601 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 :                                   737.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

