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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1150
RA = 338.568, Dec = -41.9411
tmin = 537408001, tmax = 537667201
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='360329', job_status='RUN', time_executed='2021-09-28 14:45:56.537099', time_epoch_executed='1632865556.54' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360329

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360329/ft1_4FGL_J2234.2-4156_daily_bin1150.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360329/ft2_4FGL_J2234.2-4156_daily_bin1150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360329/ft1_4FGL_J2234.2-4156_daily_bin1150.fits outfile=/scratch/kocevski/360329/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1150.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=537408001.0 tmax=537667201.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 4.55
user 4.29
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360329/ft2_4FGL_J2234.2-4156_daily_bin1150.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/360329/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1150.fits evtable="EVENTS" outfile="/scratch/kocevski/360329/ft1_filtered_4FGL_J2234.2-4156_daily_bin1150.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/360329/ft1_filtered_4FGL_J2234.2-4156_daily_bin1150.fits" evtable="EVENTS" scfile=/scratch/kocevski/360329/ft2_4FGL_J2234.2-4156_daily_bin1150.fits sctable="SC_DATA" outfile=/scratch/kocevski/360329/ltcube_537408001_537667201_4FGL_J2234.2-4156_daily_bin1150.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/360329/ft2_4FGL_J2234.2-4156_daily_bin1150.fits
.....................!
real 11.85
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360329/ft1_filtered_4FGL_J2234.2-4156_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/360329/ft2_4FGL_J2234.2-4156_daily_bin1150.fits sctable="SC_DATA" expcube=/scratch/kocevski/360329/ltcube_537408001_537667201_4FGL_J2234.2-4156_daily_bin1150.fits outfile=/scratch/kocevski/360329/expmap_537408001_537667201_4FGL_J2234.2-4156_daily_bin1150.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/360329/ltcube_537408001_537667201_4FGL_J2234.2-4156_daily_bin1150.fits
.....................!
real 189.52
user 185.18
sys 3.99

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/360329/ft1_filtered_4FGL_J2234.2-4156_daily_bin1150.fits scfile=/scratch/kocevski/360329/ft2_4FGL_J2234.2-4156_daily_bin1150.fits outfile=/scratch/kocevski/360329/cmap_537408001_537667201_4FGL_J2234.2-4156_daily_bin1150.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360329/ft1_filtered_4FGL_J2234.2-4156_daily_bin1150.fits scfile=/scratch/kocevski/360329/ft2_4FGL_J2234.2-4156_daily_bin1150.fits outfile=/scratch/kocevski/360329/cmap_HighResolution_537408001_537667201_4FGL_J2234.2-4156_daily_bin1150.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360329/ft1_filtered_4FGL_J2234.2-4156_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/360329/ft2_4FGL_J2234.2-4156_daily_bin1150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360329/Model_4FGL_J2234.2-4156_daily_bin1150.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/360329/ft1_filtered_4FGL_J2234.2-4156_daily_bin1150.fits.....................!
real 41.57
user 40.20
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.9281       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.867       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.652       1.0000         .10000E-03   10000.    
     8 'norm      '    14.492       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81282       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0640       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4352       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9338       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.773       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1428       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0556       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.401       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5988       1.0000         .10000E-03   10000.    
    26 'norm      '    .98515       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.8007       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    6.1096       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    5.2187       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .73451       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4918       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=   5220.140     FROM MIGRAD    STATUS=CONVERGED    950 CALLS     4600 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.029       -.35437E-04** at limit **
   2  norm          9.9271        5.7866       -.12647E-05    .23679E-03
   3  Prefactor     .10000E-03    9.9743        .19852E-06** at limit **
   4  Prefactor     .10000E-03    5.4298        .64210E-07** at limit **
   5  Prefactor     .10000E-03    47.824        .30307E-04** at limit **
   6  Prefactor     10.882        9.9454        .27120E-05   -.14656E-03
   7  Prefactor     19.006        205.60       -.50035E-04   -.13156E-04
   8  norm          14.496        11.741        .97890E-06   -.47537E-05
   9  Prefactor     .80584        6.4987        .12493E-06   -.17922E-03
  10  Prefactor     1.0631        2.8019       -.24811E-05   -.14991E-02
  11  Prefactor     4.4134        136.40        .13392E-03    .18390E-04
  12  Prefactor     6.9335        6.1156        .92230E-06   -.12083E-03
  13  Prefactor     .10000E-03    15.829        .28289E-05** at limit **
  14  Prefactor     21.755        29.061       -.65714E-05   -.10740E-03
  15  Prefactor     .10000E-03    25.361       -.99495E-06** at limit **
  16  Prefactor     .10000E-03    4.3286        .72716E-07** at limit **
  17  Prefactor     .10000E-03    77.126       -.40959E-05** at limit **
  18  Prefactor     9.1414        14.312       -.14004E-06   -.54473E-04
  19  Prefactor     3.0539        6.2927       -.32130E-05   -.45904E-03
  20  Prefactor     .10000E-03    13.377        .55232E-05** at limit **
  21  Prefactor     46.353        81.452        .35215E-04    .15619E-05
  22  Prefactor     .10000E-03    4.6750        .45905E-08** at limit **
  23  norm          .10000E-03    14.611       -.51047E-05** at limit **
  24  norm          .10000E-03    2.1331        .38373E-08** at limit **
  25  norm          1.5982        4.3356       -.11237E-05   -.59082E-03
  26  norm          .98344        11.018       -.17578E-05   -.15890E-03
  27  Prefactor     5.8014        5.9169        .76746E-08    .34947E-04
  28  Prefactor     .10000E-03    36.567        .97244E-05** at limit **
  29  norm          6.1083        5.1069        .82631E-06   -.15398E-03
  30  Prefactor     .10000E-03    12.763       -.27308E-05** at limit **
  31  norm          5.2181        5.0246       -.44532E-06   -.46889E-04
  32  Normalizat    .73495        .23364       -.39095E-05   -.28160E-04
  33  Prefactor     1.4916        .21755       -.57645E-06   -.43451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 9.92712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8824
  Prefactor  = 19.0056
  norm       = 14.496
  Prefactor  = 0.805837
  Prefactor  = 1.06309
  Prefactor  = 4.41345
  Prefactor  = 6.93352
  Prefactor  = 0.0001
  Prefactor  = 21.7548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.14143
  Prefactor  = 3.05394
  Prefactor  = 0.0001
  Prefactor  = 46.3528
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.59818
  norm       = 0.983445
  Prefactor  = 5.80138
  Prefactor  = 0.0001
  norm       = 6.10832
  Prefactor  = 0.0001
  norm       = 5.21806
  Normalizat = 0.734952
  Prefactor  = 1.49163
 **********
 **   18 **HESSE 
 **********

 FCN=   5220.140     FROM HESSE     STATUS=OK           695 CALLS     5295 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.9271        5.7905        .12717E-03   -1.5078    
   3  Prefactor     .10000E-03    10.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5099        .16441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    47.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.882        9.9123        .12153E-03   -1.5048    
   7  Prefactor     19.006        204.86        .90350E-04   -1.4836    
   8  norm          14.496        11.755        .10521E-03   -1.4946    
   9  Prefactor     .80584        31.259        .34210E-02   -1.5528    
  10  Prefactor     1.0631        2.7441        .18879E-03   -1.5502    
  11  Prefactor     4.4134        135.34        .19121E-03   -1.5288    
  12  Prefactor     6.9335        6.1195        .15236E-03   -1.5181    
  13  Prefactor     .10000E-03    15.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.755        29.087        .85840E-04   -1.4775    
  15  Prefactor     .10000E-03    25.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3419        .14680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    77.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.1414        14.308        .13255E-03   -1.5103    
  19  Prefactor     3.0539        6.2908        .23208E-03   -1.5358    
  20  Prefactor     .10000E-03    13.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.353        81.433        .58861E-04   -1.4345    
  22  Prefactor     .10000E-03    4.6795        .15257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    14.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.1339        .10306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5982        4.2921        .23241E-03   -1.5455    
  26  norm          .98344        35.197        .45790E-02   -1.5510    
  27  Prefactor     5.8014        5.9135        .16676E-03   -1.5226    
  28  Prefactor     .10000E-03    36.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.1083        5.0980        .13533E-03   -1.5214    
  30  Prefactor     .10000E-03    12.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          5.2181        5.0227        .15114E-03   -1.5251    
  32  Normalizat    .73495        .28009        .32121E-03   -1.0253    
  33  Prefactor     1.4916        .26347        .23156E-03   -.77774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87336e-09
Minuit parameter uncertainties:
  1  0.000350463
  2  5.79079
  3  4.46026e-05
  4  1.98075e-05
  5  0.000112066
  6  9.91378
  7  125.348
  8  11.7567
  9  10.0428
  10  2.74442
  11  49.001
  12  6.12004
  13  5.59588e-06
  14  29.1061
  15  0.000105458
  16  8.39248e-06
  17  6.16895e-05
  18  14.3134
  19  6.29217
  20  6.88425e-06
  21  81.629
  22  5.03127e-06
  23  4.81994e-05
  24  8.05152e-07
  25  4.29293
  26  11.7736
  27  5.9141
  28  1.20964e-05
  29  5.09839
  30  4.01202e-05
  31  5.02311
  32  0.280642
  33  0.26371
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.413e+00  4.900e+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.492e+00  2.637e-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.350e-01  2.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/360329/likelihoodResults_537408001_537667201_4FGL_J2234.2-4156_daily_bin1150.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) = 5220.10079217
delta logL = 0.0395176915554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5220.09788543
delta logL = 0.0424244320857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4454       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5009       1.0000          .0000       10.000    
     3 'Normalizat'    .72762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4925       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=   5220.098     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      267 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4227        41.873        .15809E-03    .30060E-04
   2  Index         2.4995        1.7175        .80445E-02    .13452E-04
   3  Normalizat    .72793        .26177        .32266E-03    .28177E-03
   4  Prefactor     1.4923        .25838        .23150E-03    .29662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.42272
  Index      = 2.4995
  Normalizat = 0.727928
  Prefactor  = 1.49228
 **********
 **   18 **HESSE 
 **********

 FCN=   5220.098     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4227        32.156        .63235E-05   -1.5201    
   2  Index         2.4995        1.5143        .32178E-03   -.52372    
   3  Normalizat    .72793        .26195        .12906E-04   -1.0280    
   4  Prefactor     1.4923        .25848        .46300E-04   -.77756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80126e-10
Minuit parameter uncertainties:
  1  28.7666
  2  1.54699
  3  0.262399
  4  0.258706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360329': 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) = 5220.09788297
delta logL = 0.042426891845

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  6.423e+00  2.877e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.499e+00  1.547e+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.492e+00  2.587e-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.279e-01  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/360329/cmap_HighResolution_537408001_537667201_4FGL_J2234.2-4156_daily_bin1150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='8.01e-08', time_completed='2021-09-28 14:59:42.354569', job_id='360329', GAL2='1.49', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632866382.35', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='4.24e-02', ts2='0.10', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1150' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:59:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 360329: <4FGL_J2234.2-4156_daily_bin1150> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1150> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:38 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:39 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:45:39 2021
Terminated at Tue Sep 28 14:59:43 2021
Results reported at Tue Sep 28 14:59:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1150 338.568 -41.9411 537408001 537667201 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 :                                   823.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

