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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin924
RA = 338.568, Dec = -41.9411
tmin = 478828801, tmax = 479088001
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='358977', job_status='RUN', time_executed='2021-09-28 14:41:18.359041', time_epoch_executed='1632865278.36' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358977/ft1_4FGL_J2234.2-4156_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358977/ft2_4FGL_J2234.2-4156_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358977/ft1_4FGL_J2234.2-4156_daily_bin924.fits outfile=/scratch/kocevski/358977/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin924.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=478828801.0 tmax=479088001.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.49
user 3.20
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358977/ft1_filtered_4FGL_J2234.2-4156_daily_bin924.fits" evtable="EVENTS" scfile=/scratch/kocevski/358977/ft2_4FGL_J2234.2-4156_daily_bin924.fits sctable="SC_DATA" outfile=/scratch/kocevski/358977/ltcube_478828801_479088001_4FGL_J2234.2-4156_daily_bin924.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/358977/ft2_4FGL_J2234.2-4156_daily_bin924.fits
.....................!
real 11.73
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358977/ft1_filtered_4FGL_J2234.2-4156_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/358977/ft2_4FGL_J2234.2-4156_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/358977/ltcube_478828801_479088001_4FGL_J2234.2-4156_daily_bin924.fits outfile=/scratch/kocevski/358977/expmap_478828801_479088001_4FGL_J2234.2-4156_daily_bin924.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/358977/ltcube_478828801_479088001_4FGL_J2234.2-4156_daily_bin924.fits
.....................!
real 195.61
user 189.45
sys 4.86

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/358977/ft1_filtered_4FGL_J2234.2-4156_daily_bin924.fits scfile=/scratch/kocevski/358977/ft2_4FGL_J2234.2-4156_daily_bin924.fits outfile=/scratch/kocevski/358977/cmap_478828801_479088001_4FGL_J2234.2-4156_daily_bin924.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358977/ft1_filtered_4FGL_J2234.2-4156_daily_bin924.fits scfile=/scratch/kocevski/358977/ft2_4FGL_J2234.2-4156_daily_bin924.fits outfile=/scratch/kocevski/358977/cmap_HighResolution_478828801_479088001_4FGL_J2234.2-4156_daily_bin924.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358977/ft1_filtered_4FGL_J2234.2-4156_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/358977/ft2_4FGL_J2234.2-4156_daily_bin924.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358977/Model_4FGL_J2234.2-4156_daily_bin924.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/358977/ft1_filtered_4FGL_J2234.2-4156_daily_bin924.fits.....................!
real 48.12
user 46.73
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.795       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9615       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.659       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.051       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5306       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6203       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.588       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.496       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4232       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.821       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4896       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9653       1.0000         .10000E-03   10000.    
    24 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.9625       1.0000         .10000E-03   10000.    
    26 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    45.181       1.0000         .10000E-03   10000.    
    29 'norm      '    4.0923       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .57727       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1403       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=   6644.059     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     4548 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3634       -.11468E-05** at limit **
   2  norm          11.795        4.3556        .28219E-07    .40022E-04
   3  Prefactor     .10000E-03    5.7039        .77447E-06** at limit **
   4  Prefactor     .10000E-03    7.5298        .40132E-06** at limit **
   5  Prefactor     8.9615        19.312        .28650E-06    .49665E-05
   6  Prefactor     .10000E-03    2.4449       -.14176E-07** at limit **
   7  Prefactor     32.653        39.522       -.24324E-05   -.17058E-03
   8  norm          .10000E-03    1.7010        .10065E-07** at limit **
   9  Prefactor     15.052        8.9187        .11252E-06   -.10498E-04
  10  Prefactor     1.5310        3.0037        .11625E-06   -.33334E-03
  11  Prefactor     .10000E-03    9.5573       -.26279E-06** at limit **
  12  Prefactor     9.6200        5.3596        .93661E-06   -.16399E-02
  13  Prefactor     28.589        19.374        .45353E-07    .36319E-05
  14  Prefactor     10.496        13.554        .90678E-07    .47985E-05
  15  Prefactor     3.4295        26.893       -.25020E-05   -.90401E-04
  16  Prefactor     .10000E-03    2.0334       -.32758E-08** at limit **
  17  Prefactor     16.816        54.414       -.35119E-05   -.73512E-04
  18  Prefactor     .10000E-03    4.2063        .24562E-06** at limit **
  19  Prefactor     7.4898        5.2753        .20514E-06   -.51023E-03
  20  Prefactor     .10000E-03    23.512       -.31686E-07** at limit **
  21  Prefactor     .10000E-03    105.73       -.53840E-07** at limit **
  22  Prefactor     .10000E-03    2.9087       -.11737E-07** at limit **
  23  norm          3.9652        5.4865        .11306E-07   -.17806E-04
  24  norm          .10000E-03    4.4885        .24056E-06** at limit **
  25  norm          6.9623        4.7365       -.26931E-07    .31423E-04
  26  norm          .10000E-03    7.6704        .39324E-06** at limit **
  27  Prefactor     .10000E-03    1.2480        .96422E-08** at limit **
  28  Prefactor     45.188        34.233        .17668E-05    .24279E-03
  29  norm          4.0921        3.9306       -.21407E-06   -.48091E-04
  30  Prefactor     .10000E-03    4.4461       -.55215E-06** at limit **
  31  norm          .10000E-03    1.2024        .11768E-07** at limit **
  32  Normalizat    .57710        .16866       -.69436E-06    .95733E-06
  33  Prefactor     1.1404        .15534        .15021E-06   -.35752E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.7951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.96148
  Prefactor  = 0.0001
  Prefactor  = 32.6526
  norm       = 0.0001
  Prefactor  = 15.0522
  Prefactor  = 1.53095
  Prefactor  = 0.0001
  Prefactor  = 9.62001
  Prefactor  = 28.5888
  Prefactor  = 10.4957
  Prefactor  = 3.4295
  Prefactor  = 0.0001
  Prefactor  = 16.8158
  Prefactor  = 0.0001
  Prefactor  = 7.48985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.96517
  norm       = 0.0001
  norm       = 6.9623
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1881
  norm       = 4.09211
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.577102
  Prefactor  = 1.14044
 **********
 **   18 **HESSE 
 **********

 FCN=   6644.059     FROM HESSE     STATUS=OK           687 CALLS     5235 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.795        4.3587        .10014E-03   -1.5021    
   3  Prefactor     .10000E-03    5.8463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9615        19.304        .13389E-03   -1.5109    
   6  Prefactor     .10000E-03    2.4573        .12442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.653        40.238        .70117E-04   -1.4564    
   8  norm          .10000E-03    1.7020        .10383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.052        8.9658        .10324E-03   -1.4932    
  10  Prefactor     1.5310        2.9880        .18586E-03   -1.5461    
  11  Prefactor     .10000E-03    9.5649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.6200        6.2716        .64601E-03   -1.5088    
  13  Prefactor     28.589        19.382        .74930E-04   -1.4638    
  14  Prefactor     10.496        13.547        .12367E-03   -1.5060    
  15  Prefactor     3.4295        26.774        .21863E-03   -1.5338    
  16  Prefactor     .10000E-03    2.0342        .11348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.816        55.047        .97655E-04   -1.4888    
  18  Prefactor     .10000E-03    4.2242        .16332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4898        5.3587        .73272E-03   -1.5161    
  20  Prefactor     .10000E-03    23.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    106.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.9110        .13577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9652        5.4806        .20256E-03   -1.5310    
  24  norm          .10000E-03    4.6892        .33738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.9623        4.7405        .13921E-03   -1.5180    
  26  norm          .10000E-03    7.7735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.2505        .88926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     45.188        34.796        .59647E-04   -1.4363    
  29  norm          4.0921        3.9398        .13632E-03   -1.5303    
  30  Prefactor     .10000E-03    4.4985        .16840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    1.2043        .87253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .57710        .19530        .28607E-03   -1.0897    
  33  Prefactor     1.1404        .18014        .20738E-03   -.88184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62348e-09
Minuit parameter uncertainties:
  1  0.000102877
  2  4.35886
  3  5.87815e-05
  4  2.95983e-05
  5  19.3177
  6  4.2784e-06
  7  40.2711
  8  1.03417e-06
  9  8.9666
  10  2.98831
  11  2.85228e-05
  12  6.272
  13  19.3867
  14  13.5507
  15  19.1762
  16  3.9386e-06
  17  55.2138
  18  1.68545e-05
  19  5.359
  20  6.64411e-06
  21  5.42301e-05
  22  4.90197e-07
  23  5.48129
  24  1.42893e-05
  25  4.74076
  26  3.19006e-05
  27  2.87323e-07
  28  34.8113
  29  3.94007
  30  4.17356e-05
  31  2.59453e-06
  32  0.19553
  33  0.180241
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.852e-05  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.140e+00  1.802e-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:  5.771e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/358977/likelihoodResults_478828801_479088001_4FGL_J2234.2-4156_daily_bin924.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): 102
logL (Free Index) = 6644.05996631
delta logL = -0.000495135580422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6644.05947135
delta logL = -1.67993675859e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9591       1.0000          .0000       10.000    
     3 'Normalizat'    .57725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1403       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=   6644.059     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10244E-03    5.3491        .18142E-01** at limit **
   2  Index         1.8855        8.6878        .50000        .21500E-04
   3  Normalizat    .57710        .25930E-02    .28607E-03    .34177E-04
   4  Prefactor     1.1404        .25895E-02    .20738E-03    .67517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102437
  Index      = 1.88547
  Normalizat = 0.577102
  Prefactor  = 1.14044
 **********
 **   18 **HESSE 
 **********

 FCN=   6644.059     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10244E-03    57.096        .26318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8855        5.9368        .50000       -.67245    
   3  Normalizat    .57710        .85171E-02    .11443E-04   -1.0897    
   4  Prefactor     1.1404        .85054E-02    .41476E-04   -.88184    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.84523e-09
Minuit parameter uncertainties:
  1  0.0236151
  2  205.29
  3  0.00851711
  4  0.00850543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358977': 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): 102
logL (Free Index) = 6644.05947064
delta logL = 5.42863745068e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.024e-04  2.362e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.885e+00  2.053e+02  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.140e+00  8.505e-03  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:  5.771e-01  8.517e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.568 -41.941

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/358977/cmap_HighResolution_478828801_479088001_4FGL_J2234.2-4156_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-03', job_status='DONE', photon_flux_upper_limit='2.95e-08', time_completed='2021-09-28 14:57:19.398591', job_id='358977', GAL2='1.14', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1632866239.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='5.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='924' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:57:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 358977: <4FGL_J2234.2-4156_daily_bin924> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin924> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:47 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:49 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:49 2021
Terminated at Tue Sep 28 14:57:20 2021
Results reported at Tue Sep 28 14:57:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin924 338.568 -41.9411 478828801 479088001 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 :                                   954.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

