/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 41 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 = 7412
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin280
RA = 338.568, Dec = -41.9411
tmin = 311904001, tmax = 312163201
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='357138', job_status='RUN', time_executed='2021-09-28 14:36:29.285087', time_epoch_executed='1632864989.29' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357138

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357138/ft1_4FGL_J2234.2-4156_daily_bin280.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357138/ft2_4FGL_J2234.2-4156_daily_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357138/ft1_4FGL_J2234.2-4156_daily_bin280.fits outfile=/scratch/kocevski/357138/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin280.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=311904001.0 tmax=312163201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.45
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357138/ft2_4FGL_J2234.2-4156_daily_bin280.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/357138/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin280.fits evtable="EVENTS" outfile="/scratch/kocevski/357138/ft1_filtered_4FGL_J2234.2-4156_daily_bin280.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/357138/ft1_filtered_4FGL_J2234.2-4156_daily_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/357138/ft2_4FGL_J2234.2-4156_daily_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/357138/ltcube_311904001_312163201_4FGL_J2234.2-4156_daily_bin280.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/357138/ft2_4FGL_J2234.2-4156_daily_bin280.fits
.....................!
real 11.80
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357138/ft1_filtered_4FGL_J2234.2-4156_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/357138/ft2_4FGL_J2234.2-4156_daily_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/357138/ltcube_311904001_312163201_4FGL_J2234.2-4156_daily_bin280.fits outfile=/scratch/kocevski/357138/expmap_311904001_312163201_4FGL_J2234.2-4156_daily_bin280.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/357138/ltcube_311904001_312163201_4FGL_J2234.2-4156_daily_bin280.fits
.....................!
real 190.33
user 185.08
sys 4.92

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/357138/ft1_filtered_4FGL_J2234.2-4156_daily_bin280.fits scfile=/scratch/kocevski/357138/ft2_4FGL_J2234.2-4156_daily_bin280.fits outfile=/scratch/kocevski/357138/cmap_311904001_312163201_4FGL_J2234.2-4156_daily_bin280.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.62
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357138/ft1_filtered_4FGL_J2234.2-4156_daily_bin280.fits scfile=/scratch/kocevski/357138/ft2_4FGL_J2234.2-4156_daily_bin280.fits outfile=/scratch/kocevski/357138/cmap_HighResolution_311904001_312163201_4FGL_J2234.2-4156_daily_bin280.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357138/ft1_filtered_4FGL_J2234.2-4156_daily_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/357138/ft2_4FGL_J2234.2-4156_daily_bin280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357138/Model_4FGL_J2234.2-4156_daily_bin280.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/357138/ft1_filtered_4FGL_J2234.2-4156_daily_bin280.fits.....................!
real 45.00
user 43.70
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    159.95       1.0000         .10000E-03   10000.    
     2 'norm      '    7.4781       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.693       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3211       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.539       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6762       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.258       1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.662       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.626       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.952       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    82.492       1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.287       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.074       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10364E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    187.14       1.0000         .10000E-03   10000.    
    29 'norm      '    .13466E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    56.895       1.0000         .10000E-03   10000.    
    31 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4874       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .56355       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=   5431.555     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     4581 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     159.94        62.452        .21890E-06   -.33429E-05
   2  norm          7.4793        6.6712        .39450E-06   -.12489E-04
   3  Prefactor     .10000E-03    6.5152       -.11208E-06** at limit **
   4  Prefactor     21.697        11.227        .20838E-07    .13927E-05
   5  Prefactor     19.685        29.108        .28861E-06   -.52429E-05
   6  Prefactor     .10000E-03    6.1245       -.30812E-06** at limit **
   7  Prefactor     3.2893        679.38        .12459E-04   -.14321E-05
   8  norm          .10000E-03    2.6360       -.27197E-07** at limit **
   9  Prefactor     .10000E-03    5.5917        .20308E-06** at limit **
  10  Prefactor     .10000E-03    1.8404        .95834E-08** at limit **
  11  Prefactor     11.523        39.862        .13638E-05   -.21650E-05
  12  Prefactor     3.6716        6.3093        .17619E-05   -.37362E-04
  13  Prefactor     12.252        20.891       -.49999E-06    .16584E-06
  14  Prefactor     48.637        30.167        .59075E-07   -.41199E-05
  15  Prefactor     26.605        28.158       -.50106E-06   -.81989E-05
  16  Prefactor     .10000E-03    5.7005        .16267E-06** at limit **
  17  Prefactor     .10000E-03    25.926        .94741E-07** at limit **
  18  Prefactor     14.939        16.167       -.97779E-06    .36917E-05
  19  Prefactor     .10000E-03    7.6486        .44446E-08** at limit **
  20  Prefactor     82.488        49.575       -.40269E-07   -.21311E-05
  21  Prefactor     34.226        51.617        .49896E-05   -.87838E-05
  22  Prefactor     37.052        29.223       -.48232E-06    .16608E-05
  23  norm          .10000E-03    6.2351       -.55809E-07** at limit **
  24  norm          .10000E-03    12.227        .10153E-06** at limit **
  25  norm          .10000E-03    4.4101       -.17685E-06** at limit **
  26  norm          .10000E-03    5.3898       -.99531E-07** at limit **
  27  Prefactor     .10000E-03    7.1774        .86153E-07** at limit **
  28  Prefactor     187.11        60.015        .13942E-05    .25489E-04
  29  norm          .10000E-03    5.2613       -.75789E-06** at limit **
  30  Prefactor     56.865        31.638        .22688E-08    .40897E-06
  31  norm          .10000E-03    3.8406       -.21951E-06** at limit **
  32  Normalizat    1.4889        .23761       -.18651E-06    .78082E-05
  33  Prefactor     .56237        .20458       -.96400E-06   -.15297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 159.937
  norm       = 7.47931
  Prefactor  = 0.0001
  Prefactor  = 21.6973
  Prefactor  = 19.685
  Prefactor  = 0.0001
  Prefactor  = 3.28929
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5227
  Prefactor  = 3.67159
  Prefactor  = 12.2517
  Prefactor  = 48.6366
  Prefactor  = 26.6053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9389
  Prefactor  = 0.0001
  Prefactor  = 82.4879
  Prefactor  = 34.2263
  Prefactor  = 37.0519
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 187.114
  norm       = 0.0001
  Prefactor  = 56.8648
  norm       = 0.0001
  Normalizat = 1.48889
  Prefactor  = 0.562373
 **********
 **   18 **HESSE 
 **********

 FCN=   5431.555     FROM HESSE     STATUS=OK           691 CALLS     5272 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     159.94        62.437        .15942E-03   -1.3172    
   2  norm          7.4793        6.6673        .73329E-03   -1.5161    
   3  Prefactor     .10000E-03    6.5435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.697        11.226        .85992E-04   -1.4776    
   5  Prefactor     19.685        29.104        .90257E-04   -1.4820    
   6  Prefactor     .10000E-03    6.1713        .17796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2893        684.19        .22212E-03   -1.5345    
   8  norm          .10000E-03    2.6367        .11686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6300        .17019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8774        .97587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.523        39.839        .11793E-03   -1.5029    
  12  Prefactor     3.6716        6.3390        .10533E-02   -1.5325    
  13  Prefactor     12.252        20.881        .11441E-03   -1.5008    
  14  Prefactor     48.637        30.299        .57484E-04   -1.4312    
  15  Prefactor     26.605        28.215        .77636E-04   -1.4676    
  16  Prefactor     .10000E-03    5.7177        .17180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.939        16.216        .10358E-03   -1.4935    
  19  Prefactor     .10000E-03    7.8176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     82.488        49.572        .44224E-04   -1.3889    
  21  Prefactor     34.226        51.496        .68437E-04   -1.4537    
  22  Prefactor     37.052        29.276        .65822E-04   -1.4490    
  23  norm          .10000E-03    6.2379        .17974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    12.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.4593        .15111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.4069        .16710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.1857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     187.11        60.325        .14759E-03   -1.2964    
  29  norm          .10000E-03    5.3709        .16499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     56.865        31.714        .53184E-04   -1.4198    
  31  norm          .10000E-03    3.8833        .14100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4889        .28633        .24840E-03   -.78091    
  33  Prefactor     .56237        .24059        .34265E-03   -1.0919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5429e-11
Minuit parameter uncertainties:
  1  62.4629
  2  6.66791
  3  3.7459e-06
  4  11.2267
  5  29.1246
  6  2.24558e-05
  7  96.0109
  8  1.35561e-06
  9  6.34789e-06
  10  6.95185e-07
  11  39.9308
  12  6.34019
  13  20.893
  14  30.3088
  15  28.2291
  16  1.89406e-07
  17  1.92877e-07
  18  16.221
  19  4.02914e-06
  20  49.5973
  21  51.563
  22  29.2876
  23  2.84551e-07
  24  1.7562e-05
  25  1.00588e-05
  26  8.40108e-07
  27  6.4165e-06
  28  60.3446
  29  4.07841e-05
  30  31.723
  31  1.1103e-05
  32  0.286639
  33  0.241028
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.152e+01  3.993e+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:  5.624e-01  2.410e-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.489e+00  2.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/357138/likelihoodResults_311904001_312163201_4FGL_J2234.2-4156_daily_bin280.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) = 5431.53183707
delta logL = 0.0234997963371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5431.52787344
delta logL = 0.0274634319012

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7396       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4173       1.0000          .0000       10.000    
     3 'Normalizat'    1.4812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56573       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=   5431.528     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      286 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7400        54.035        .13559E-03    .24064E-04
   2  Index         2.4172        2.2110        .11282E-01    .23233E-04
   3  Normalizat    1.4808        .26700        .24897E-03    .75391E-04
   4  Prefactor     .56605        .23597        .34159E-03    .48758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.74003
  Index      = 2.41721
  Normalizat = 1.4808
  Prefactor  = 0.566052
 **********
 **   18 **HESSE 
 **********

 FCN=   5431.528     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7400        33.712        .54235E-05   -1.5117    
   2  Index         2.4172        1.7506        .45126E-03   -.54283    
   3  Normalizat    1.4808        .26586        .49793E-04   -.78319    
   4  Prefactor     .56605        .23521        .13664E-04   -1.0904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01389e-11
Minuit parameter uncertainties:
  1  33.7853
  2  1.80341
  3  0.266107
  4  0.235615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357138': 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) = 5431.52787239
delta logL = 0.0274644795745

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  8.740e+00  3.379e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.417e+00  1.803e+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:  5.661e-01  2.356e-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.481e+00  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/357138/cmap_HighResolution_311904001_312163201_4FGL_J2234.2-4156_daily_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-09-28 14:50:44.024326', job_id='357138', GAL2='0.57', fit_tolerance='1e-08', EG2='1.48', EG='1.49', time_epoch_completed='1632865844.02', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='2.75e-02', ts2='0.16', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='280' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:50:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 357138: <4FGL_J2234.2-4156_daily_bin280> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin280> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:35:37 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:35: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:35:39 2021
Terminated at Tue Sep 28 14:50:44 2021
Results reported at Tue Sep 28 14:50:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin280 338.568 -41.9411 311904001 312163201 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 :                                   853.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

