/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 9 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 = 7494
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin38
RA = 338.568, Dec = -41.9411
tmin = 249177601, tmax = 249436801
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='355672', job_status='RUN', time_executed='2021-09-28 14:30:57.205938', time_epoch_executed='1632864657.21' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355672

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355672/ft1_4FGL_J2234.2-4156_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355672/ft2_4FGL_J2234.2-4156_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355672/ft1_4FGL_J2234.2-4156_daily_bin38.fits outfile=/scratch/kocevski/355672/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin38.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=249177601.0 tmax=249436801.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 1.42
user 1.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355672/ft1_filtered_4FGL_J2234.2-4156_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/355672/ft2_4FGL_J2234.2-4156_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/355672/ltcube_249177601_249436801_4FGL_J2234.2-4156_daily_bin38.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/355672/ft2_4FGL_J2234.2-4156_daily_bin38.fits
.....................!
real 12.91
user 12.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355672/ft1_filtered_4FGL_J2234.2-4156_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/355672/ft2_4FGL_J2234.2-4156_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/355672/ltcube_249177601_249436801_4FGL_J2234.2-4156_daily_bin38.fits outfile=/scratch/kocevski/355672/expmap_249177601_249436801_4FGL_J2234.2-4156_daily_bin38.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/355672/ltcube_249177601_249436801_4FGL_J2234.2-4156_daily_bin38.fits
.....................!
real 190.54
user 185.06
sys 5.17

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/355672/ft1_filtered_4FGL_J2234.2-4156_daily_bin38.fits scfile=/scratch/kocevski/355672/ft2_4FGL_J2234.2-4156_daily_bin38.fits outfile=/scratch/kocevski/355672/cmap_249177601_249436801_4FGL_J2234.2-4156_daily_bin38.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355672/ft1_filtered_4FGL_J2234.2-4156_daily_bin38.fits scfile=/scratch/kocevski/355672/ft2_4FGL_J2234.2-4156_daily_bin38.fits outfile=/scratch/kocevski/355672/cmap_HighResolution_249177601_249436801_4FGL_J2234.2-4156_daily_bin38.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/355672/ft1_filtered_4FGL_J2234.2-4156_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/355672/ft2_4FGL_J2234.2-4156_daily_bin38.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/355672/Model_4FGL_J2234.2-4156_daily_bin38.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/355672/ft1_filtered_4FGL_J2234.2-4156_daily_bin38.fits.....................!
real 47.18
user 45.85
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3897       1.0000         .10000E-03   10000.    
     2 'norm      '    16.620       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8903       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28627E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.871       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.939       1.0000         .10000E-03   10000.    
     8 'norm      '    .11448       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19490E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.414       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11074E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.019       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.583       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.5229       1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    13.245       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.079       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    5.4438       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .77587       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0163       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=   6235.870     FROM MIGRAD    STATUS=CONVERGED    906 CALLS     3959 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3885        30.289        .34196E-06   -.75650E-05
   2  norm          16.620        6.2573        .75685E-08    .50921E-04
   3  Prefactor     3.8894        4.8222       -.55016E-06   -.14005E-03
   4  Prefactor     9.5391        7.7526       -.24304E-06   -.62634E-04
   5  Prefactor     .10000E-03    330.09       -.38554E-04** at limit **
   6  Prefactor     21.876        11.936        .63982E-06    .36110E-03
   7  Prefactor     21.930        79.977       -.14579E-04   -.73150E-05
   8  norm          .13689        5.5263       -.24126E-05    .43543E-03
   9  Prefactor     .10000E-03    4.5213        .14333E-05** at limit **
  10  Prefactor     .10000E-03    2.0339       -.31087E-07** at limit **
  11  Prefactor     .10000E-03    12.127       -.25269E-05** at limit **
  12  Prefactor     .10000E-03    10.343        .49109E-05** at limit **
  13  Prefactor     12.424        20.187       -.62074E-05   -.15452E-03
  14  Prefactor     .10000E-03    35.944       -.12815E-04** at limit **
  15  Prefactor     9.9997        26.591        .14883E-04    .45009E-04
  16  Prefactor     .10000E-03    7.2440        .19276E-05** at limit **
  17  Prefactor     .10000E-03    31.223        .13120E-04** at limit **
  18  Prefactor     .10000E-03    6.3674        .62343E-06** at limit **
  19  Prefactor     .10003E-03    3.8642       -.21097E-05** at limit **
  20  Prefactor     .10000E-03    25.089       -.26028E-05** at limit **
  21  Prefactor     11.581        20.405        .11248E-05    .15533E-04
  22  Prefactor     .10000E-03    7.7009        .33000E-06** at limit **
  23  norm          .10000E-03    3.3935       -.10351E-06** at limit **
  24  norm          7.5230        7.1806       -.97060E-07   -.51071E-04
  25  norm          .10000E-03    2.1050        .30336E-07** at limit **
  26  norm          13.244        7.8607       -.14494E-06   -.16810E-04
  27  Prefactor     .10000E-03    2.3101       -.29886E-07** at limit **
  28  Prefactor     17.078        21.333       -.60300E-06   -.88441E-05
  29  norm          .10000E-03    2.1117        .36583E-07** at limit **
  30  Prefactor     .10000E-03    6.9379       -.29217E-05** at limit **
  31  norm          5.4432        4.4267       -.14103E-07   -.13756E-03
  32  Normalizat    .77599        .16906       -.11718E-05    .25054E-03
  33  Prefactor     1.0162        .16196        .10812E-05    .24599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.3885
  norm       = 16.6196
  Prefactor  = 3.8894
  Prefactor  = 9.53913
  Prefactor  = 0.000100003
  Prefactor  = 21.876
  Prefactor  = 21.9302
  norm       = 0.136894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.4241
  Prefactor  = 0.0001
  Prefactor  = 9.99968
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 11.5809
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.52304
  norm       = 0.0001
  norm       = 13.2441
  Prefactor  = 0.0001
  Prefactor  = 17.0777
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.44323
  Normalizat = 0.775987
  Prefactor  = 1.01624
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.870     FROM HESSE     STATUS=OK           699 CALLS     4658 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3885        30.135        .15878E-03   -1.5202    
   2  norm          16.620        6.2494        .98245E-04   -1.4892    
   3  Prefactor     3.8894        4.8172        .18652E-03   -1.5314    
   4  Prefactor     9.5391        7.7495        .12974E-03   -1.5090    
   5  Prefactor     .10000E-03    341.02        .39757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.876        11.915        .85647E-04   -1.4772    
   7  Prefactor     21.930        80.146        .85514E-04   -1.4771    
   8  norm          .13689        58.032        .35623E-02   -1.5634    
   9  Prefactor     .10000E-03    11.912        .31804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0815        .21973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.424        20.202        .11369E-03   -1.5003    
  14  Prefactor     .10000E-03    36.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.9997        26.311        .12659E-03   -1.5075    
  16  Prefactor     .10000E-03    7.2720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    9.8032        .29483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.581        20.401        .11771E-03   -1.5027    
  22  Prefactor     .10000E-03    7.7179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.3951        .14207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.5230        7.1785        .14622E-03   -1.5159    
  25  norm          .10000E-03    2.1115        .11174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.244        7.8600        .11006E-03   -1.4980    
  27  Prefactor     .10000E-03    2.3160        .11720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     17.078        21.256        .96915E-04   -1.4881    
  29  norm          .10000E-03    2.1730        .22334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.9799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          5.4432        4.4185        .14262E-03   -1.5241    
  32  Normalizat    .77599        .19634        .25631E-03   -1.0097    
  33  Prefactor     1.0162        .19078        .22273E-03   -.92190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05023e-09
Minuit parameter uncertainties:
  1  27.7727
  2  6.2496
  3  4.81767
  4  7.75029
  5  0.00212399
  6  11.9167
  7  80.5437
  8  5.64053
  9  1.79855e-06
  10  1.57898e-06
  11  4.02481e-05
  12  0.000322569
  13  20.2127
  14  1.65396e-05
  15  26.3416
  16  0.000104835
  17  0.000352336
  18  2.45199e-05
  19  0.0010662
  20  0.000141628
  21  20.413
  22  6.42876e-06
  23  1.01091e-06
  24  7.17934
  25  2.63138e-06
  26  7.86062
  27  3.67921e-07
  28  21.2654
  29  4.49922e-06
  30  4.19246e-05
  31  4.41875
  32  0.196521
  33  0.190908
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.025e-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.016e+00  1.909e-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.760e-01  1.965e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/355672/likelihoodResults_249177601_249436801_4FGL_J2234.2-4156_daily_bin38.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) = 6235.86998751
delta logL = -0.000392315139834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6235.86959526
delta logL = -6.34572643321e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9755       1.0000          .0000       10.000    
     3 'Normalizat'    .77602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0162       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=   6235.870     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.065        .90712E-02** at limit **
   2  Index         1.9594        5.6971        .50000        .10201E-04
   3  Normalizat    .77599        .16054        .43297E-01    .49092E-05
   4  Prefactor     1.0162        .15862        .42540E-01   -.85814E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9594
  Normalizat = 0.775986
  Prefactor  = 1.01624
 **********
 **   18 **HESSE 
 **********

 FCN=   6235.870     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1493.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9594        7.9661        .50000       -.65369    
   3  Normalizat    .77599        .54099E-01    .25631E-03   -1.0097    
   4  Prefactor     1.0162        .53460E-01    .22273E-03   -.92190    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2667e-08
Minuit parameter uncertainties:
  1  6.66584e-05
  2  44.8363
  3  0.0541029
  4  0.0534628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355672': 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) = 6235.86959511
delta logL = 8.70722942636e-08

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.666e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.959e+00  4.484e+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:  1.016e+00  5.346e-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.760e-01  5.410e-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/355672/cmap_HighResolution_249177601_249436801_4FGL_J2234.2-4156_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-03', job_status='DONE', photon_flux_upper_limit='3.48e-08', time_completed='2021-09-28 14:45:12.010778', job_id='355672', GAL2='1.02', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632865512.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='8.71e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='38' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:45:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 355672: <4FGL_J2234.2-4156_daily_bin38> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin38> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 14:30:36 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:30:38 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:30:38 2021
Terminated at Tue Sep 28 14:45:12 2021
Results reported at Tue Sep 28 14:45:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin38 338.568 -41.9411 249177601 249436801 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 :                                   855.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

