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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin972
RA = 338.568, Dec = -41.9411
tmin = 491270401, tmax = 491529601
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='359047', job_status='RUN', time_executed='2021-09-28 14:43:42.288742', time_epoch_executed='1632865422.29' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='972'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359047

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359047/ft1_4FGL_J2234.2-4156_daily_bin972.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359047/ft2_4FGL_J2234.2-4156_daily_bin972.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359047/ft1_4FGL_J2234.2-4156_daily_bin972.fits outfile=/scratch/kocevski/359047/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin972.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=491270401.0 tmax=491529601.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.55
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359047/ft1_filtered_4FGL_J2234.2-4156_daily_bin972.fits" evtable="EVENTS" scfile=/scratch/kocevski/359047/ft2_4FGL_J2234.2-4156_daily_bin972.fits sctable="SC_DATA" outfile=/scratch/kocevski/359047/ltcube_491270401_491529601_4FGL_J2234.2-4156_daily_bin972.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/359047/ft2_4FGL_J2234.2-4156_daily_bin972.fits
.....................!
real 11.58
user 11.26
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359047/ft1_filtered_4FGL_J2234.2-4156_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/359047/ft2_4FGL_J2234.2-4156_daily_bin972.fits sctable="SC_DATA" expcube=/scratch/kocevski/359047/ltcube_491270401_491529601_4FGL_J2234.2-4156_daily_bin972.fits outfile=/scratch/kocevski/359047/expmap_491270401_491529601_4FGL_J2234.2-4156_daily_bin972.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/359047/ltcube_491270401_491529601_4FGL_J2234.2-4156_daily_bin972.fits
.....................!
real 190.16
user 185.35
sys 4.50

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/359047/ft1_filtered_4FGL_J2234.2-4156_daily_bin972.fits scfile=/scratch/kocevski/359047/ft2_4FGL_J2234.2-4156_daily_bin972.fits outfile=/scratch/kocevski/359047/cmap_491270401_491529601_4FGL_J2234.2-4156_daily_bin972.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359047/ft1_filtered_4FGL_J2234.2-4156_daily_bin972.fits scfile=/scratch/kocevski/359047/ft2_4FGL_J2234.2-4156_daily_bin972.fits outfile=/scratch/kocevski/359047/cmap_HighResolution_491270401_491529601_4FGL_J2234.2-4156_daily_bin972.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359047/ft1_filtered_4FGL_J2234.2-4156_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/359047/ft2_4FGL_J2234.2-4156_daily_bin972.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359047/Model_4FGL_J2234.2-4156_daily_bin972.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/359047/ft1_filtered_4FGL_J2234.2-4156_daily_bin972.fits.....................!
real 39.05
user 37.79
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.9361       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0042       1.0000         .10000E-03   10000.    
    11 'Prefactor '    72.573       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30152E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8284       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12764E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47665E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.649       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    77.723       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.1691       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.0823       1.0000         .10000E-03   10000.    
    25 'norm      '    .10394E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.4999       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.081       1.0000         .10000E-03   10000.    
    29 'norm      '    .10303E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    11.849       1.0000         .10000E-03   10000.    
    31 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4641       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .62402       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=   4494.417     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     4527 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.440        .16312E-06** at limit **
   2  norm          8.9367        4.8977        .10729E-06   -.20246E-04
   3  Prefactor     22.387        14.071        .34969E-06   -.10737E-04
   4  Prefactor     .10000E-03    7.1979        .28098E-06** at limit **
   5  Prefactor     .10000E-03    12.885        .10124E-06** at limit **
   6  Prefactor     .10000E-03    3.2629        .25498E-06** at limit **
   7  Prefactor     .10000E-03    50.486        .66061E-06** at limit **
   8  norm          .10000E-03    3.0024        .80051E-07** at limit **
   9  Prefactor     .10000E-03    5.6135        .44762E-06** at limit **
  10  Prefactor     4.0026        4.8116       -.12902E-06    .47566E-05
  11  Prefactor     72.575        59.305        .33960E-06    .10054E-04
  12  Prefactor     .10002E-03    5.0688       -.14740E-06** at limit **
  13  Prefactor     .10000E-03    19.418        .12059E-06** at limit **
  14  Prefactor     6.8152        34.022        .10667E-05   -.15702E-04
  15  Prefactor     .10000E-03    73.260        .17162E-05** at limit **
  16  Prefactor     .10023E-03    6.8330        .13014E-05** at limit **
  17  Prefactor     .10000E-03    43.105        .15574E-06** at limit **
  18  Prefactor     16.643        14.592        .63475E-07    .71630E-05
  19  Prefactor     .10000E-03    9.9775        .15508E-06** at limit **
  20  Prefactor     .10000E-03    29.046        .21135E-07** at limit **
  21  Prefactor     77.575        98.986       -.36489E-05   -.21461E-03
  22  Prefactor     8.1637        14.504       -.12695E-06   -.56426E-05
  23  norm          .10000E-03    4.2049        .31249E-08** at limit **
  24  norm          2.0825        4.5867        .37449E-06    .83908E-05
  25  norm          .10000E-03    4.8568       -.15064E-05** at limit **
  26  norm          3.4940        17.219        .14705E-04    .48290E-04
  27  Prefactor     .10000E-03    4.5245        .11877E-06** at limit **
  28  Prefactor     19.035        42.884       -.18694E-05   -.54690E-04
  29  norm          .10000E-03    3.1321       -.14127E-05** at limit **
  30  Prefactor     11.841        18.422        .11667E-06    .84320E-05
  31  norm          .10000E-03    1.8616       -.29329E-06** at limit **
  32  Normalizat    1.4651        .23846        .33234E-05   -.33931E-03
  33  Prefactor     .62323        .20517       -.79841E-05    .34460E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.93673
  Prefactor  = 22.387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.00262
  Prefactor  = 72.5751
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 6.81516
  Prefactor  = 0.0001
  Prefactor  = 0.000100225
  Prefactor  = 0.0001
  Prefactor  = 16.643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.5755
  Prefactor  = 8.16372
  norm       = 0.0001
  norm       = 2.08253
  norm       = 0.0001
  norm       = 3.49399
  Prefactor  = 0.0001
  Prefactor  = 19.0351
  norm       = 0.0001
  Prefactor  = 11.8412
  norm       = 0.0001
  Normalizat = 1.46507
  Prefactor  = 0.623233
 **********
 **   18 **HESSE 
 **********

 FCN=   4494.417     FROM HESSE     STATUS=OK           687 CALLS     5214 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.9367        4.8987        .10669E-03   -1.5110    
   3  Prefactor     22.387        14.055        .84655E-04   -1.4761    
   4  Prefactor     .10000E-03    7.2333        .17560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2688        .11828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.0038        .11345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6445        .15513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0026        4.7996        .15180E-03   -1.5308    
  11  Prefactor     72.575        59.237        .47126E-04   -1.4002    
  12  Prefactor     .10002E-03    34.512        .28185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8152        34.028        .15354E-03   -1.5186    
  15  Prefactor     .10000E-03    73.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10023E-03    73.550        .33527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.643        14.607        .98159E-04   -1.4892    
  19  Prefactor     .10000E-03    10.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     77.575        99.403        .22775E-03   -1.3944    
  22  Prefactor     8.1637        14.504        .14027E-03   -1.5136    
  23  norm          .10000E-03    4.2055        .13427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.0825        4.5517        .20783E-03   -1.5419    
  25  norm          .10000E-03    4.9185        .14377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.4940        17.975        .10806E-02   -1.5334    
  27  Prefactor     .10000E-03    4.5345        .13903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.035        42.886        .91690E-04   -1.4835    
  29  norm          .10000E-03    3.1568        .11546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     11.841        18.421        .11638E-03   -1.5020    
  31  norm          .10000E-03    1.8633        .89306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4651        .26993        .22771E-03   -.78765    
  33  Prefactor     .62323        .22925        .30020E-03   -1.0662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57259e-09
Minuit parameter uncertainties:
  1  4.70771e-06
  2  4.89895
  3  14.0574
  4  1.14542e-05
  5  3.73475e-05
  6  5.73312e-06
  7  0.000253275
  8  2.39015e-06
  9  1.75649e-05
  10  4.8001
  11  59.2855
  12  0.00153347
  13  0.000144958
  14  30.4844
  15  2.10114e-05
  16  0.00815341
  17  2.3438e-05
  18  14.6104
  19  5.93651e-05
  20  0.000136319
  21  99.6165
  22  14.5106
  23  8.14545e-07
  24  4.55241
  25  5.63712e-06
  26  15.8571
  27  1.087e-05
  28  42.9555
  29  2.29097e-06
  30  18.4296
  31  3.07205e-07
  32  0.270197
  33  0.229591
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  7.258e+01  5.929e+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:  6.232e-01  2.296e-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.465e+00  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 2.32e-05

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

Saving results to:
/scratch/kocevski/359047/likelihoodResults_491270401_491529601_4FGL_J2234.2-4156_daily_bin972.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) = 4494.41479423
delta logL = 0.00179436289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4494.4136636
delta logL = 0.00292499403713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.179       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0328       1.0000          .0000       10.000    
     3 'Normalizat'    1.4635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62400       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=   4494.414     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      263 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.227        74.142        .24130E-03    .57573E-04
   2  Index         2.0324        .54833        .52521E-02    .26389E-03
   3  Normalizat    1.4634        .25104        .22781E-03   -.83119E-04
   4  Prefactor     .62405        .22582        .30002E-03    .52861E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.227
  Index      = 2.03241
  Normalizat = 1.4634
  Prefactor  = 0.624052
 **********
 **   18 **HESSE 
 **********

 FCN=   4494.414     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.227        71.753        .96521E-05   -1.4042    
   2  Index         2.0324        .53059        .10504E-02   -.63542    
   3  Normalizat    1.4634        .25112        .45563E-04   -.78812    
   4  Prefactor     .62405        .22592        .12001E-04   -1.0658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39958e-10
Minuit parameter uncertainties:
  1  71.8426
  2  0.532138
  3  0.25133
  4  0.226254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359047': 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) = 4494.41366327
delta logL = 0.00292531722334

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  6.923e+01  7.184e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.032e+00  5.321e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  6.241e-01  2.263e-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.463e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 2.03 +/- 0.53
Photon Flux (Free Index): 4.21e-08 +/- 4.00e-08
Energy Flux (Free Index): 2.69e-05 +/- 2.94e-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/359047/cmap_HighResolution_491270401_491529601_4FGL_J2234.2-4156_daily_bin972.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='2.69e-05', photon_flux_error='3.30e-08', dlogl='2.93e-03', energy_flux='2.85e-05', photon_flux2='4.21e-08', job_status='DONE', time_completed='2021-09-28 14:56:00.837647', photon_index_error2='0.53', photon_index2='2.03', ts='3.01', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='2.94e-05', EG='1.47', time_epoch_completed='1632866160.84', return_code='0', job_id='359047', GAL2='0.62', EG2='1.46', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='4.00e-08', ts2='3.01', photon_index='1.99' WHERE bin_id='972' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:56:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 359047: <4FGL_J2234.2-4156_daily_bin972> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin972> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:52 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:54 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:54 2021
Terminated at Tue Sep 28 14:56:01 2021
Results reported at Tue Sep 28 14:56:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin972 338.568 -41.9411 491270401 491529601 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 :                                   738.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

