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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1346
RA = 338.568, Dec = -41.9411
tmin = 588211201, tmax = 588470401
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='361674', job_status='RUN', time_executed='2021-09-28 14:51:18.850274', time_epoch_executed='1632865878.85' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361674

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361674/ft1_4FGL_J2234.2-4156_daily_bin1346.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361674/ft2_4FGL_J2234.2-4156_daily_bin1346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361674/ft1_4FGL_J2234.2-4156_daily_bin1346.fits outfile=/scratch/kocevski/361674/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1346.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=588211201.0 tmax=588470401.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.81
user 3.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361674/ft1_filtered_4FGL_J2234.2-4156_daily_bin1346.fits" evtable="EVENTS" scfile=/scratch/kocevski/361674/ft2_4FGL_J2234.2-4156_daily_bin1346.fits sctable="SC_DATA" outfile=/scratch/kocevski/361674/ltcube_588211201_588470401_4FGL_J2234.2-4156_daily_bin1346.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/361674/ft2_4FGL_J2234.2-4156_daily_bin1346.fits
.....................!
real 11.87
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361674/ft1_filtered_4FGL_J2234.2-4156_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/361674/ft2_4FGL_J2234.2-4156_daily_bin1346.fits sctable="SC_DATA" expcube=/scratch/kocevski/361674/ltcube_588211201_588470401_4FGL_J2234.2-4156_daily_bin1346.fits outfile=/scratch/kocevski/361674/expmap_588211201_588470401_4FGL_J2234.2-4156_daily_bin1346.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/361674/ltcube_588211201_588470401_4FGL_J2234.2-4156_daily_bin1346.fits
.....................!
real 191.15
user 185.34
sys 5.45

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/361674/ft1_filtered_4FGL_J2234.2-4156_daily_bin1346.fits scfile=/scratch/kocevski/361674/ft2_4FGL_J2234.2-4156_daily_bin1346.fits outfile=/scratch/kocevski/361674/cmap_588211201_588470401_4FGL_J2234.2-4156_daily_bin1346.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361674/ft1_filtered_4FGL_J2234.2-4156_daily_bin1346.fits scfile=/scratch/kocevski/361674/ft2_4FGL_J2234.2-4156_daily_bin1346.fits outfile=/scratch/kocevski/361674/cmap_HighResolution_588211201_588470401_4FGL_J2234.2-4156_daily_bin1346.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361674/ft1_filtered_4FGL_J2234.2-4156_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/361674/ft2_4FGL_J2234.2-4156_daily_bin1346.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361674/Model_4FGL_J2234.2-4156_daily_bin1346.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/361674/ft1_filtered_4FGL_J2234.2-4156_daily_bin1346.fits.....................!
real 42.83
user 41.42
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5918       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.251       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12126E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7871       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.809       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5960       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4586       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.753       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13238E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.195       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.563       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12775E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    65.142       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.0173       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3918       1.0000         .10000E-03   10000.    
    26 'norm      '    .10969E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .74270E-01   1.0000         .10000E-03   10000.    
    29 'norm      '    .16382E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .97209       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .73368       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=   5654.984     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     4614 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5967        .25118E-06** at limit **
   2  norm          5.5911        4.0629       -.29466E-06   -.18622E-03
   3  Prefactor     13.255        8.1959       -.58449E-06   -.69726E-04
   4  Prefactor     .10000E-03    5.7974        .19495E-06** at limit **
   5  Prefactor     .10000E-03    44.727        .33436E-05** at limit **
   6  Prefactor     6.7861        8.7748       -.96123E-05   -.24467E-03
   7  Prefactor     26.927        70.322        .79006E-04    .10916E-04
   8  norm          .10000E-03    2.2915       -.35235E-07** at limit **
   9  Prefactor     3.6004        6.3293        .64193E-06   -.35936E-03
  10  Prefactor     2.4566        3.2875       -.13678E-06   -.48304E-03
  11  Prefactor     .10000E-03    11.917        .39642E-07** at limit **
  12  Prefactor     .10000E-03    1.4948        .89306E-07** at limit **
  13  Prefactor     32.744        20.351        .17110E-05   -.11180E-04
  14  Prefactor     .10000E-03    9.1028        .25337E-05** at limit **
  15  Prefactor     25.223        23.351       -.19396E-04   -.48692E-05
  16  Prefactor     14.564        11.227        .74494E-05    .51363E-04
  17  Prefactor     .10000E-03    68.312       -.95858E-05** at limit **
  18  Prefactor     .10000E-03    2.8229       -.17076E-07** at limit **
  19  Prefactor     .10000E-03    2.5590       -.16587E-07** at limit **
  20  Prefactor     .10000E-03    8.5784       -.47067E-06** at limit **
  21  Prefactor     65.147        53.537       -.30464E-05    .50050E-05
  22  Prefactor     .10000E-03    6.8391       -.22077E-07** at limit **
  23  norm          .10000E-03    3.8386       -.98756E-08** at limit **
  24  norm          6.0185        4.5154        .22827E-05    .11836E-03
  25  norm          2.3948        3.8458        .10066E-06   -.24272E-03
  26  norm          .10000E-03    9.0380       -.23884E-05** at limit **
  27  Prefactor     .10000E-03    2.0230       -.24337E-07** at limit **
  28  Prefactor     .10068E-03    29.936        .21486E-06** at limit **
  29  norm          .10000E-03    2.2244       -.15355E-06** at limit **
  30  Prefactor     .10000E-03    4.4687        .11617E-07** at limit **
  31  norm          .10000E-03    2.2763       -.36053E-07** at limit **
  32  Normalizat    .97201        .16968        .17515E-05   -.93781E-04
  33  Prefactor     .73392        .15597       -.11393E-05    .92690E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.59112
  Prefactor  = 13.2547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.78611
  Prefactor  = 26.927
  norm       = 0.0001
  Prefactor  = 3.60044
  Prefactor  = 2.45655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7441
  Prefactor  = 0.0001
  Prefactor  = 25.2232
  Prefactor  = 14.564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.1473
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.0185
  norm       = 2.39479
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100679
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.972007
  Prefactor  = 0.73392
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.984     FROM HESSE     STATUS=OK           701 CALLS     5315 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5911        4.0624        .12424E-03   -1.5235    
   3  Prefactor     13.255        8.0767        .11004E-03   -1.4980    
   4  Prefactor     .10000E-03    28.137        .34429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7861        8.7985        .15401E-03   -1.5187    
   7  Prefactor     26.927        70.359        .77371E-04   -1.4670    
   8  norm          .10000E-03    2.2944        .11117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6004        6.3193        .21309E-03   -1.5328    
  10  Prefactor     2.4566        3.2761        .14935E-03   -1.5394    
  11  Prefactor     .10000E-03    11.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.5006        .89768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.744        20.366        .70016E-04   -1.4563    
  14  Prefactor     .10000E-03    9.1223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.223        23.342        .79806E-04   -1.4703    
  16  Prefactor     14.564        11.215        .10496E-03   -1.4945    
  17  Prefactor     .10000E-03    68.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8282        .12339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5736        .11746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     65.147        53.684        .49723E-04   -1.4092    
  22  Prefactor     .10000E-03    6.8642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.8430        .14389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.0185        4.5190        .13523E-03   -1.5217    
  25  norm          2.3948        3.6084        .16884E-03   -1.5398    
  26  norm          .10000E-03    9.2943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.0412        .10445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10068E-03    33.068        .10012       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    18.744        .18780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.4757        .15525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.3234        .11066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .97201        .20279        .21987E-03   -.93974    
  33  Prefactor     .73392        .18538        .23956E-03   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7143e-10
Minuit parameter uncertainties:
  1  3.7948e-06
  2  4.06256
  3  8.07733
  4  0.000122927
  5  0.000273085
  6  8.8002
  7  70.5772
  8  2.40345e-06
  9  6.32042
  10  3.27634
  11  1.9185e-06
  12  1.11196e-05
  13  20.3704
  14  1.70266e-05
  15  23.3509
  16  11.2169
  17  4.84737e-05
  18  2.12756e-06
  19  1.00535e-06
  20  9.28501e-06
  21  53.7242
  22  1.10323e-06
  23  1.07404e-06
  24  4.5193
  25  3.60872
  26  1.27385e-05
  27  3.00066e-06
  28  0.00948203
  29  0.000112042
  30  1.88805e-06
  31  1.59771e-06
  32  0.20295
  33  0.185535
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.919e-06  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:  7.339e-01  1.855e-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.720e-01  2.030e-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.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361674/likelihoodResults_588211201_588470401_4FGL_J2234.2-4156_daily_bin1346.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) = 5654.98402219
delta logL = -0.000399115318032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5654.98362324
delta logL = -1.61205207405e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9721       1.0000          .0000       10.000    
     3 'Normalizat'    .97211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73382       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=   5654.984     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      197 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    951.91        .90712E-02** at limit **
   2  Index         1.9527        7.0125        .50000        .12372E-04
   3  Normalizat    .97201        .39066E-01    .45817E-01    .21675E-04
   4  Prefactor     .73392        .37659E-01    .42850E-01    .22836E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95269
  Normalizat = 0.972009
  Prefactor  = 0.733917
 **********
 **   18 **HESSE 
 **********

 FCN=   5654.984     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      228 TOTAL
                     EDM=   .91E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    714.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9527        5.4427        .20000       -.65538    
   3  Normalizat    .97201        .32624E-01    .21987E-03   -.93974    
   4  Prefactor     .73392        .31452E-01    .23956E-03   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.06438e-05
Minuit parameter uncertainties:
  1  0.000561955
  2  3046.74
  3  0.0326249
  4  0.0314532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361674': 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) = 5654.98362295
delta logL = 1.27938619698e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.620e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.953e+00  3.047e+03  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:  7.339e-01  3.145e-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:  9.720e-01  3.262e-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/361674/cmap_HighResolution_588211201_588470401_4FGL_J2234.2-4156_daily_bin1346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-03', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2021-09-28 15:05:47.266395', job_id='361674', GAL2='0.73', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632866747.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1346' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:05:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 361674: <4FGL_J2234.2-4156_daily_bin1346> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1346> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:34 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:35 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:50:35 2021
Terminated at Tue Sep 28 15:05:48 2021
Results reported at Tue Sep 28 15:05:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1346 338.568 -41.9411 588211201 588470401 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 :                                   867.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.21 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.

