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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin712
RA = 338.568, Dec = -41.9411
tmin = 423878401, tmax = 424137601
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='358664', job_status='RUN', time_executed='2021-09-28 14:41:36.268931', time_epoch_executed='1632865296.27' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358664

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358664/ft1_4FGL_J2234.2-4156_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358664/ft2_4FGL_J2234.2-4156_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358664/ft1_4FGL_J2234.2-4156_daily_bin712.fits outfile=/scratch/kocevski/358664/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin712.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=423878401.0 tmax=424137601.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.33
user 5.03
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358664/ft1_filtered_4FGL_J2234.2-4156_daily_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/358664/ft2_4FGL_J2234.2-4156_daily_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/358664/ltcube_423878401_424137601_4FGL_J2234.2-4156_daily_bin712.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/358664/ft2_4FGL_J2234.2-4156_daily_bin712.fits
.....................!
real 11.86
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358664/ft1_filtered_4FGL_J2234.2-4156_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/358664/ft2_4FGL_J2234.2-4156_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/358664/ltcube_423878401_424137601_4FGL_J2234.2-4156_daily_bin712.fits outfile=/scratch/kocevski/358664/expmap_423878401_424137601_4FGL_J2234.2-4156_daily_bin712.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/358664/ltcube_423878401_424137601_4FGL_J2234.2-4156_daily_bin712.fits
.....................!
real 190.77
user 185.35
sys 5.09

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/358664/ft1_filtered_4FGL_J2234.2-4156_daily_bin712.fits scfile=/scratch/kocevski/358664/ft2_4FGL_J2234.2-4156_daily_bin712.fits outfile=/scratch/kocevski/358664/cmap_423878401_424137601_4FGL_J2234.2-4156_daily_bin712.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.52
user 0.38
sys 0.13

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358664/ft1_filtered_4FGL_J2234.2-4156_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/358664/ft2_4FGL_J2234.2-4156_daily_bin712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358664/Model_4FGL_J2234.2-4156_daily_bin712.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/358664/ft1_filtered_4FGL_J2234.2-4156_daily_bin712.fits.....................!
real 41.60
user 40.35
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.998       1.0000         .10000E-03   10000.    
     2 'norm      '    11.432       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9948       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.692       1.0000         .10000E-03   10000.    
     8 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1772       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.239       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3853       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5106       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.015       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4203       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.768       1.0000         .10000E-03   10000.    
    23 'norm      '    35.702       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.8414       1.0000         .10000E-03   10000.    
    26 'norm      '    1.1696       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11233E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.2229       1.0000         .10000E-03   10000.    
    30 'Prefactor '    45.972       1.0000         .10000E-03   10000.    
    31 'norm      '    12.607       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .49718       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2502       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=   5321.155     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     4585 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.997        37.957        .39162E-06    .12963E-04
   2  norm          11.432        6.2162        .21541E-07    .46265E-04
   3  Prefactor     .10000E-03    14.912        .16064E-06** at limit **
   4  Prefactor     6.9982        9.1314        .95030E-07    .56501E-05
   5  Prefactor     .10000E-03    63.540       -.16066E-05** at limit **
   6  Prefactor     .10000E-03    6.1393       -.29596E-05** at limit **
   7  Prefactor     32.732        87.121        .47535E-05    .53775E-04
   8  norm          .10000E-03    6.2318       -.54880E-06** at limit **
   9  Prefactor     3.1780        7.0710        .19123E-06   -.60722E-05
  10  Prefactor     .10000E-03    2.7621        .65380E-06** at limit **
  11  Prefactor     30.215        41.341        .93357E-06    .70146E-04
  12  Prefactor     7.3841        5.5506        .59877E-07    .52923E-04
  13  Prefactor     4.4917        17.148        .89693E-06   -.69964E-05
  14  Prefactor     .10000E-03    14.767        .70327E-06** at limit **
  15  Prefactor     .10000E-03    24.028       -.73234E-07** at limit **
  16  Prefactor     17.011        11.523        .15989E-06    .50954E-04
  17  Prefactor     .10000E-03    33.478        .31315E-06** at limit **
  18  Prefactor     .10000E-03    3.1201        .32914E-07** at limit **
  19  Prefactor     9.4192        7.9092        .25111E-07   -.56889E-04
  20  Prefactor     .10000E-03    44.896       -.79379E-06** at limit **
  21  Prefactor     .10000E-03    16.276       -.95293E-07** at limit **
  22  Prefactor     16.764        16.803        .70615E-07    .70384E-05
  23  norm          35.700        18.618        .46859E-07    .85592E-05
  24  norm          .10000E-03    3.3038        .95530E-08** at limit **
  25  norm          3.8414        3.8262       -.41293E-07   -.34406E-04
  26  norm          1.1692        11.586        .75435E-05   -.25342E-04
  27  Prefactor     .10000E-03    5.9071        .77978E-07** at limit **
  28  Prefactor     .10000E-03    21.327        .78196E-07** at limit **
  29  norm          2.2217        3.6994       -.33761E-07    .36591E-04
  30  Prefactor     45.969        22.080        .17637E-07    .87594E-05
  31  norm          12.606        6.1606       -.11870E-07   -.12951E-06
  32  Normalizat    .49733        .19556       -.11598E-05    .12984E-03
  33  Prefactor     1.2502        .19158        .10024E-06   -.62772E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.997
  norm       = 11.4319
  Prefactor  = 0.0001
  Prefactor  = 6.99821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7324
  norm       = 0.0001
  Prefactor  = 3.17798
  Prefactor  = 0.0001
  Prefactor  = 30.2151
  Prefactor  = 7.38405
  Prefactor  = 4.49167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.4192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7638
  norm       = 35.7004
  norm       = 0.0001
  norm       = 3.84143
  norm       = 1.16922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.22168
  Prefactor  = 45.9691
  norm       = 12.6058
  Normalizat = 0.49733
  Prefactor  = 1.25018
 **********
 **   18 **HESSE 
 **********

 FCN=   5321.155     FROM HESSE     STATUS=OK           693 CALLS     5278 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.997        37.909        .12081E-03   -1.5045    
   2  norm          11.432        6.2134        .11849E-03   -1.5032    
   3  Prefactor     .10000E-03    15.424        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9982        9.1134        .15169E-03   -1.5179    
   5  Prefactor     .10000E-03    63.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2550        .17720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.732        88.637        .70081E-04   -1.4563    
   8  norm          .10000E-03    6.3451        .17781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1780        7.0579        .22735E-03   -1.5351    
  10  Prefactor     .10000E-03    2.7964        .11777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.215        41.206        .72861E-04   -1.4608    
  12  Prefactor     7.3841        5.5468        .14232E-03   -1.5164    
  13  Prefactor     4.4917        17.117        .94784E-03   -1.5284    
  14  Prefactor     .10000E-03    14.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.011        11.511        .97097E-04   -1.4883    
  17  Prefactor     .10000E-03    33.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1312        .12583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4192        7.9088        .13057E-03   -1.5094    
  20  Prefactor     .10000E-03    45.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.764        16.797        .97809E-04   -1.4889    
  23  norm          35.700        18.615        .67071E-04   -1.4512    
  24  norm          .10000E-03    3.3117        .12948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.8414        3.8319        .13502E-03   -1.5316    
  26  norm          1.1692        11.624        .21225E-02   -1.5492    
  27  Prefactor     .10000E-03    5.9273        .17273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.2217        3.6685        .16307E-03   -1.5410    
  30  Prefactor     45.969        22.031        .59135E-04   -1.4351    
  31  norm          12.606        6.1431        .11282E-03   -1.4998    
  32  Normalizat    .49733        .21679        .31651E-03   -1.1254    
  33  Prefactor     1.2502        .21429        .21013E-03   -.84801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20445e-09
Minuit parameter uncertainties:
  1  37.9918
  2  6.21376
  3  1.47513e-05
  4  9.11519
  5  0.000124448
  6  2.18813e-06
  7  88.9962
  8  2.77672e-05
  9  7.05979
  10  1.22684e-05
  11  41.2448
  12  5.54718
  13  17.1354
  14  1.23485e-05
  15  3.55765e-05
  16  11.513
  17  9.90791e-05
  18  1.70619e-06
  19  7.90972
  20  0.000258454
  21  2.66679e-05
  22  16.8021
  23  18.6177
  24  1.9162e-07
  25  3.83211
  26  7.37486
  27  3.11831e-06
  28  7.17692e-06
  29  3.66883
  30  22.0347
  31  6.14337
  32  0.21716
  33  0.214438
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.022e+01  4.124e+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.250e+00  2.144e-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:  4.973e-01  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.82
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 7.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358664/likelihoodResults_423878401_424137601_4FGL_J2234.2-4156_daily_bin712.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) = 5320.67445651
delta logL = 0.480694950311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5320.63633336
delta logL = 0.518818096355

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2609       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9415       1.0000          .0000       10.000    
     3 'Normalizat'    .45479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2738       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5320.636     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      302 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2086        288.08        .69742E-03   -.11460E-04
   2  Index         2.9443        6.4625        .43561E-02    .38070E-04
   3  Normalizat    .45468        .21657        .33041E-03   -.11183E-04
   4  Prefactor     1.2738        .20949        .20839E-03   -.30027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.20862
  Index      = 2.94434
  Normalizat = 0.454678
  Prefactor  = 1.27379
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.636     FROM HESSE     STATUS=OK            27 CALLS      329 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2086        20.584        .27897E-04   -1.5135    
   2  Index         2.9443        1.0092        .17424E-03   -.42370    
   3  Normalizat    .45468        .20981        .13216E-04   -1.1456    
   4  Prefactor     1.2738        .21072        .41677E-04   -.84090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35548e-11
Minuit parameter uncertainties:
  1  20.6022
  2  1.01767
  3  0.210179
  4  0.210858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358664': 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) = 5320.63632918
delta logL = 0.51882227269

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  8.209e+00  2.060e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.944e+00  1.018e+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.274e+00  2.109e-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:  4.547e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.94 +/- 1.02
Photon Flux (Free Index): 4.78e-08 +/- 4.44e-08
Energy Flux (Free Index): 9.81e-06 +/- 8.69e-06

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/358664/cmap_HighResolution_423878401_424137601_4FGL_J2234.2-4156_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', comment='SUCCESS', energy_flux2='9.81e-06', dlogl='5.19e-01', photon_flux2='4.78e-08', job_status='DONE', time_completed='2021-09-28 14:55:44.364383', photon_index_error2='1.02', photon_index2='2.94', ts='0.82', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='7.63e-08', energy_flux_error2='8.69e-06', EG='0.50', time_epoch_completed='1632866144.36', return_code='0', job_id='358664', GAL2='1.27', EG2='0.45', return_code2='0', photon_flux_error2='4.44e-08', ts2='1.90', photon_index='1.99' WHERE bin_id='712' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:55:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 358664: <4FGL_J2234.2-4156_daily_bin712> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin712> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:22 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:24 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:40:24 2021
Terminated at Tue Sep 28 14:55:45 2021
Results reported at Tue Sep 28 14:55:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin712 338.568 -41.9411 423878401 424137601 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 :                                   846.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

