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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1412
RA = 338.568, Dec = -41.9411
tmin = 605318401, tmax = 605577601
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='362820', job_status='RUN', time_executed='2021-09-28 14:55:54.677831', time_epoch_executed='1632866154.68' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362820

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362820/ft1_4FGL_J2234.2-4156_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362820/ft2_4FGL_J2234.2-4156_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362820/ft1_4FGL_J2234.2-4156_daily_bin1412.fits outfile=/scratch/kocevski/362820/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1412.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=605318401.0 tmax=605577601.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 5.48
user 5.21
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362820/ft2_4FGL_J2234.2-4156_daily_bin1412.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/362820/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1412.fits evtable="EVENTS" outfile="/scratch/kocevski/362820/ft1_filtered_4FGL_J2234.2-4156_daily_bin1412.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/362820/ft1_filtered_4FGL_J2234.2-4156_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/362820/ft2_4FGL_J2234.2-4156_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/362820/ltcube_605318401_605577601_4FGL_J2234.2-4156_daily_bin1412.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/362820/ft2_4FGL_J2234.2-4156_daily_bin1412.fits
.....................!
real 13.47
user 13.11
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362820/ft1_filtered_4FGL_J2234.2-4156_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/362820/ft2_4FGL_J2234.2-4156_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/362820/ltcube_605318401_605577601_4FGL_J2234.2-4156_daily_bin1412.fits outfile=/scratch/kocevski/362820/expmap_605318401_605577601_4FGL_J2234.2-4156_daily_bin1412.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/362820/ltcube_605318401_605577601_4FGL_J2234.2-4156_daily_bin1412.fits
.....................!
real 191.54
user 186.07
sys 5.06

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362820/ft1_filtered_4FGL_J2234.2-4156_daily_bin1412.fits scfile=/scratch/kocevski/362820/ft2_4FGL_J2234.2-4156_daily_bin1412.fits outfile=/scratch/kocevski/362820/cmap_HighResolution_605318401_605577601_4FGL_J2234.2-4156_daily_bin1412.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362820/ft1_filtered_4FGL_J2234.2-4156_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/362820/ft2_4FGL_J2234.2-4156_daily_bin1412.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362820/Model_4FGL_J2234.2-4156_daily_bin1412.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/362820/ft1_filtered_4FGL_J2234.2-4156_daily_bin1412.fits.....................!
real 38.18
user 36.98
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    111.96       1.0000         .10000E-03   10000.    
     2 'norm      '    18.174       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9590       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29900E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11826E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.008       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4347       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0575       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.421       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26066E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0685       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3807       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.989       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .41538       1.0000         .10000E-03   10000.    
    29 'norm      '    4.0269       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2104       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0326       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=   4394.112     FROM MIGRAD    STATUS=CONVERGED   1659 CALLS     6051 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     111.96        68.467        .38017E-04   -.15251E-04
   2  norm          18.174        8.9824        .93951E-04   -.45620E-04
   3  Prefactor     .10000E-03    7.4780        .17663E-02** at limit **
   4  Prefactor     4.9611        12.283        .90300E-03   -.61766E-04
   5  Prefactor     .10000E-03    308.57        .42782E-03** at limit **
   6  Prefactor     .10000E-03    5.2561        .14815E-02** at limit **
   7  Prefactor     .10000E-03    138.55        .18142E-02** at limit **
   8  norm          .10000E-03    20.735        .33817E-02** at limit **
   9  Prefactor     24.755        14.053        .80505E-04    .19064E-04
  10  Prefactor     .10000E-03    4.5133        .27110E-03** at limit **
  11  Prefactor     32.829        65.121        .69746E-04   -.12913E-03
  12  Prefactor     8.4340        9.3064        .13803E-03    .10048E-04
  13  Prefactor     6.0542        23.990        .16313E-03    .84325E-05
  14  Prefactor     .10000E-03    28.722        .18142E-02** at limit **
  15  Prefactor     56.406        40.279        .53406E-04   -.25119E-04
  16  Prefactor     .10000E-03    7.3822        .17553E-02** at limit **
  17  Prefactor     .10000E-03    79.346        .18142E-02** at limit **
  18  Prefactor     .10000E-03    85.283        .45997E-02** at limit **
  19  Prefactor     6.0707        10.025        .16298E-03    .47153E-04
  20  Prefactor     5.3770        69.175        .17325E-03   -.35436E-05
  21  Prefactor     .10000E-03    51.301        .18142E-02** at limit **
  22  Prefactor     .10000E-03    4.6209        .13915E-02** at limit **
  23  norm          .10000E-03    11.720        .18142E-02** at limit **
  24  norm          .10000E-03    2.3192        .98591E-03** at limit **
  25  norm          .10000E-03    4.0224        .12973E-02** at limit **
  26  norm          .10000E-03    7.3624        .17554E-02** at limit **
  27  Prefactor     15.986        8.1085        .10016E-03   -.44266E-04
  28  Prefactor     .10789E-03    144.75        .12966    ** at limit **
  29  norm          4.0734        11.348        .20095E-03    .56037E-03
  30  Prefactor     .10000E-03    10.896        .18142E-02** at limit **
  31  norm          .10000E-03    4.0755        .13025E-02** at limit **
  32  Normalizat    1.2105        .32911        .27330E-03   -.85859E-04
  33  Prefactor     1.0323        .28785        .27133E-03    .12407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 111.956
  norm       = 18.1744
  Prefactor  = 0.0001
  Prefactor  = 4.96112
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.7552
  Prefactor  = 0.0001
  Prefactor  = 32.8294
  Prefactor  = 8.43403
  Prefactor  = 6.05415
  Prefactor  = 0.000100001
  Prefactor  = 56.4062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 6.07068
  Prefactor  = 5.37701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9858
  Prefactor  = 0.000107893
  norm       = 4.07336
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.21051
  Prefactor  = 1.0323
 **********
 **   18 **HESSE 
 **********

 FCN=   4394.112     FROM HESSE     STATUS=OK           673 CALLS     6724 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     111.96        68.466        .76034E-05   -1.3588    
   2  norm          18.174        8.9822        .37580E-05   -1.4855    
   3  Prefactor     .10000E-03    7.4790        .35326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9611        12.278        .36120E-04   -1.5262    
   5  Prefactor     .10000E-03    308.58        .85565E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2566        .29630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    138.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    20.894        .67634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.755        14.053        .32202E-05   -1.4712    
  10  Prefactor     .10000E-03    4.5134        .54220E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.829        65.116        .13949E-04   -1.4561    
  12  Prefactor     8.4340        9.3051        .55213E-05   -1.5127    
  13  Prefactor     6.0542        23.984        .65253E-05   -1.5216    
  14  Prefactor     .10000E-03    28.726        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.406        40.263        .21362E-05   -1.4204    
  16  Prefactor     .10000E-03    7.3831        .35105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    79.346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    86.516        .91995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.0707        10.024        .65193E-05   -1.5215    
  20  Prefactor     5.3770        69.150        .69298E-05   -1.5244    
  21  Prefactor     .10000E-03    51.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.6209        .27830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    11.723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.3192        .19718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.0225        .25946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.3629        .35108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     15.986        8.1083        .40065E-05   -1.4908    
  28  Prefactor     .10789E-03    135.85        .13325       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.0734        11.250        .80381E-05   -1.5304    
  30  Prefactor     .10000E-03    10.897        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    4.0757        .26050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2105        .32938        .10932E-04   -.86279    
  33  Prefactor     1.0323        .28816        .10853E-04   -.91660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66939e-09
Minuit parameter uncertainties:
  1  68.5145
  2  8.98283
  3  2.69256e-05
  4  12.2845
  5  0.00173313
  6  2.52476e-06
  7  0.000181752
  8  0.000108591
  9  14.0544
  10  5.88369e-05
  11  65.2573
  12  9.30672
  13  24.0222
  14  0.000248852
  15  40.2829
  16  9.71638e-06
  17  9.00267e-06
  18  0.00121913
  19  10.0266
  20  38.6201
  21  7.69061e-06
  22  2.68287e-07
  23  1.09797e-06
  24  7.48027e-07
  25  2.78296e-06
  26  6.17198e-07
  27  8.10889
  28  0.0656393
  29  11.2555
  30  2.48986e-05
  31  3.46407e-06
  32  0.329949
  33  0.288589
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.283e+01  6.526e+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:  1.032e+00  2.886e-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.211e+00  3.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362820/likelihoodResults_605318401_605577601_4FGL_J2234.2-4156_daily_bin1412.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): 0
logL (Free Index) = 4393.7207204
delta logL = 0.390863078105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4393.71962027
delta logL = 0.391963206755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8130       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3041       1.0000          .0000       10.000    
     3 'Normalizat'    1.1489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0718       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=   4393.720     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      372 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8040        223.41        .13538E-03    .31911E-05
   2  Index         3.3053        6.6518        .46150E-02    .25612E-04
   3  Normalizat    1.1487        .27433        .27950E-03    .14739E-03
   4  Prefactor     1.0717        .25078        .26686E-03   -.20556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.80402
  Index      = 3.3053
  Normalizat = 1.14873
  Prefactor  = 1.07172
 **********
 **   18 **HESSE 
 **********

 FCN=   4393.720     FROM HESSE     STATUS=OK            25 CALLS      397 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8040        21.754        .54152E-05   -1.5318    
   2  Index         3.3053        1.7851        .18460E-03   -.34579    
   3  Normalizat    1.1487        .31083        .55901E-04   -.88202    
   4  Prefactor     1.0717        .28393        .53372E-04   -.90375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04417e-09
Minuit parameter uncertainties:
  1  18.2034
  2  1.83094
  3  0.311332
  4  0.284335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362820': 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) = 4393.71961875
delta logL = 0.391964724045

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.804e+00  1.820e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  3.305e+00  1.831e+00  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.072e+00  2.843e-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.149e+00  3.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 3.31 +/- 1.83
Photon Flux (Free Index): 5.87e-08 +/- 6.84e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.18e-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/362820/cmap_HighResolution_605318401_605577601_4FGL_J2234.2-4156_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='3.92e-01', photon_flux2='5.87e-08', job_status='DONE', time_completed='2021-09-28 15:10:06.331302', photon_index_error2='1.83', photon_index2='3.31', ts='0.32', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.18e-05', EG='1.21', time_epoch_completed='1632867006.33', return_code='0', job_id='362820', GAL2='1.07', EG2='1.15', return_code2='0', photon_flux_error2='6.84e-08', ts2='1.19', photon_index='1.99' WHERE bin_id='1412' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:10:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 362820: <4FGL_J2234.2-4156_daily_bin1412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1412 338.568 -41.9411 605318401 605577601 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 :                                   847.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

