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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin372
RA = 338.568, Dec = -41.9411
tmin = 335750401, tmax = 336009601
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='357281', job_status='RUN', time_executed='2021-09-28 14:36:07.322056', time_epoch_executed='1632864967.32' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357281

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357281/ft1_4FGL_J2234.2-4156_daily_bin372.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357281/ft2_4FGL_J2234.2-4156_daily_bin372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357281/ft1_4FGL_J2234.2-4156_daily_bin372.fits outfile=/scratch/kocevski/357281/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin372.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=335750401.0 tmax=336009601.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 6.85
user 6.52
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357281/ft1_filtered_4FGL_J2234.2-4156_daily_bin372.fits" evtable="EVENTS" scfile=/scratch/kocevski/357281/ft2_4FGL_J2234.2-4156_daily_bin372.fits sctable="SC_DATA" outfile=/scratch/kocevski/357281/ltcube_335750401_336009601_4FGL_J2234.2-4156_daily_bin372.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/357281/ft2_4FGL_J2234.2-4156_daily_bin372.fits
.....................!
real 11.44
user 11.05
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357281/ft1_filtered_4FGL_J2234.2-4156_daily_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/357281/ft2_4FGL_J2234.2-4156_daily_bin372.fits sctable="SC_DATA" expcube=/scratch/kocevski/357281/ltcube_335750401_336009601_4FGL_J2234.2-4156_daily_bin372.fits outfile=/scratch/kocevski/357281/expmap_335750401_336009601_4FGL_J2234.2-4156_daily_bin372.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/357281/ltcube_335750401_336009601_4FGL_J2234.2-4156_daily_bin372.fits
.....................!
real 190.98
user 185.11
sys 5.36

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/357281/ft1_filtered_4FGL_J2234.2-4156_daily_bin372.fits scfile=/scratch/kocevski/357281/ft2_4FGL_J2234.2-4156_daily_bin372.fits outfile=/scratch/kocevski/357281/cmap_335750401_336009601_4FGL_J2234.2-4156_daily_bin372.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357281/ft1_filtered_4FGL_J2234.2-4156_daily_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/357281/ft2_4FGL_J2234.2-4156_daily_bin372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357281/Model_4FGL_J2234.2-4156_daily_bin372.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/357281/ft1_filtered_4FGL_J2234.2-4156_daily_bin372.fits.....................!
real 37.49
user 36.10
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .29950E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5184       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6825       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2000       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3551       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.137       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.517       1.0000         .10000E-03   10000.    
    17 'Prefactor '    89.578       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .60121       1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.299       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26561       1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.335       1.0000         .10000E-03   10000.    
    29 'norm      '    .45390E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0170       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .88356       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=   4509.010     FROM MIGRAD    STATUS=CONVERGED   1639 CALLS     5343 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.923        .18142E-02** at limit **
   2  norm          .10000E-03    70.490        .22403E-02** at limit **
   3  Prefactor     2.5175        5.4298        .22414E-03   -.31193E-04
   4  Prefactor     .10000E-03    14.151        .36285E-03** at limit **
   5  Prefactor     .10000E-03    20.420        .18142E-02** at limit **
   6  Prefactor     .10000E-03    5.9292        .15904E-02** at limit **
   7  Prefactor     .10000E-03    48.723        .18142E-02** at limit **
   8  norm          .10000E-03    2.0972        .94967E-03** at limit **
   9  Prefactor     .10000E-03    6.4386        .16578E-02** at limit **
  10  Prefactor     6.6822        4.7345        .57930E-03   -.26590E-03
  11  Prefactor     .10000E-03    20.884        .18142E-02** at limit **
  12  Prefactor     3.1997        6.1615        .21490E-03   -.21764E-03
  13  Prefactor     .10000E-03    39.979        .18142E-02** at limit **
  14  Prefactor     2.3580        93.681        .26708E-03   -.29797E-06
  15  Prefactor     10.134        28.447        .12585E-03   -.90334E-05
  16  Prefactor     13.516        12.130        .10895E-03   -.31201E-04
  17  Prefactor     89.661        78.844        .21227E-03    .11538E-03
  18  Prefactor     .10000E-03    13.505        .18142E-02** at limit **
  19  Prefactor     .10000E-03    1.9823        .92295E-03** at limit **
  20  Prefactor     .51322        339.02        .61658E-02   -.14374E-04
  21  Prefactor     62.338        73.938        .50838E-04    .54117E-04
  22  Prefactor     .22597        103.35        .37297E-02   -.16733E-03
  23  norm          .10000E-03    4.2977        .13592E-02** at limit **
  24  norm          .10000E-03    3.6889        .12572E-02** at limit **
  25  norm          .10000E-03    1.8100        .88193E-03** at limit **
  26  norm          .10000E-03    3.7096        .12621E-02** at limit **
  27  Prefactor     .10000E-03    2.2697        .98648E-03** at limit **
  28  Prefactor     16.562        41.292        .99096E-04    .17330E-03
  29  norm          .14086E-01    8.3704        .34891E-01    .68990E-03
  30  Prefactor     .10000E-03    5.5178        .15391E-02** at limit **
  31  norm          .10000E-03    10.778        .28605E-02** at limit **
  32  Normalizat    1.0170        .24247        .23373E-03    .55061E-04
  33  Prefactor     .88375        .21699        .23648E-03    .29421E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 2.51749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.68215
  Prefactor  = 0.0001
  Prefactor  = 3.19974
  Prefactor  = 0.0001
  Prefactor  = 2.35801
  Prefactor  = 10.1338
  Prefactor  = 13.516
  Prefactor  = 89.6606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.513219
  Prefactor  = 62.3375
  Prefactor  = 0.225972
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5616
  norm       = 0.0140865
  Prefactor  = 0.0001
  norm       = 0.000100003
  Normalizat = 1.01696
  Prefactor  = 0.883754
 **********
 **   18 **HESSE 
 **********

 FCN=   4509.010     FROM HESSE     STATUS=OK           675 CALLS     6018 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    72.913        .89611E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5175        5.4295        .89657E-05   -1.5391    
   4  Prefactor     .10000E-03    14.152        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9305        .31808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.724        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0972        .18993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4401        .33155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.6822        4.7335        .23172E-04   -1.5191    
  11  Prefactor     .10000E-03    20.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1997        6.1551        .85961E-05   -1.5350    
  13  Prefactor     .10000E-03    39.988        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3580        93.564        .10683E-04   -1.5401    
  15  Prefactor     10.134        28.433        .50341E-05   -1.5071    
  16  Prefactor     13.516        12.129        .43579E-05   -1.4973    
  17  Prefactor     89.661        78.835        .42454E-04   -1.3811    
  18  Prefactor     .10000E-03    13.511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.9823        .18459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .51322        349.40        .24663E-03   -1.5565    
  21  Prefactor     62.338        73.925        .10168E-04   -1.4127    
  22  Prefactor     .22597        106.20        .14919E-03   -1.5613    
  23  norm          .10000E-03    4.2978        .27183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.6891        .25144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.8100        .17639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.7097        .25243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.2697        .19730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     16.562        40.550        .19819E-04   -1.4894    
  29  norm          .14086E-01    6.2100        .41455E-01   -1.5684    
  30  Prefactor     .10000E-03    5.5181        .30782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    10.816        .57210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0170        .24240        .93491E-05   -.92464    
  33  Prefactor     .88375        .21686        .94593E-05   -.96711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94189e-09
Minuit parameter uncertainties:
  1  5.25061e-05
  2  0.00106993
  3  5.43061
  4  2.93978e-05
  5  8.2903e-05
  6  7.28938e-06
  7  5.20141e-05
  8  3.34659e-07
  9  1.73282e-06
  10  4.73376
  11  0.000123886
  12  6.15628
  13  2.81198e-05
  14  29.7564
  15  28.4705
  16  12.1309
  17  78.9272
  18  1.44488e-05
  19  3.23348e-06
  20  26.9386
  21  74.0338
  22  9.81284
  23  7.23363e-07
  24  1.40743e-07
  25  7.97248e-07
  26  1.28865e-06
  27  7.47221e-07
  28  40.6179
  29  0.589488
  30  1.39318e-06
  31  0.00035818
  32  0.242663
  33  0.217073
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.239e-04  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:  8.838e-01  2.171e-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.017e+00  2.427e-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: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357281/likelihoodResults_335750401_336009601_4FGL_J2234.2-4156_daily_bin372.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) = 4509.01011202
delta logL = -0.000228000300922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4509.00988415
delta logL = -1.30695298139e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0785       1.0000          .0000       10.000    
     3 'Normalizat'    1.0169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88376       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4509.010     FROM MIGRAD    STATUS=FAILED        87 CALLS      265 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6251.4        .18142E-02** at limit **
   2  Index         2.0624        6.9319        .50000        .63650E-05
   3  Normalizat    1.0170        .70066E-01    .23373E-03    .10599E-03
   4  Prefactor     .88375        .66898E-01    .23648E-03   -.16823E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4509.010     FROM SIMPLEX   STATUS=UNCHANGED    211 CALLS      476 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6251.4        .69622E-03** at limit **
   2  Index         2.0624        6.9319        .13672E-06    .63650E-05
   3  Normalizat    1.0170        .70066E-01    .38555E-08    .10599E-03
   4  Prefactor     .88375        .66898E-01    .94881E-09   -.16823E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4509.010     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      510 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.845        .36285E-03** at limit **
   2  Index         2.0624        5.9456        .50000        .63643E-05
   3  Normalizat    1.0170        .22203        .93492E-05    .10652E-03
   4  Prefactor     .88375        .21199        .47297E-04   -.16802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.06236
  Normalizat = 1.01696
  Prefactor  = 0.88375
 **********
 **   18 **HESSE 
 **********

 FCN=   4509.010     FROM HESSE     STATUS=OK            29 CALLS      539 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.109        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0624        6.0262        .50000       -.62800    
   3  Normalizat    1.0170        .22211        .18698E-05   -.92464    
   4  Prefactor     .88375        .21205        .94593E-05   -.96711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65038e-10
Minuit parameter uncertainties:
  1  0.000257328
  2  4.07095
  3  0.22231
  4  0.212251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357281': 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) = 4509.00988412
delta logL = -1.03177626443e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.573e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.062e+00  4.071e+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:  8.837e-01  2.123e-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.017e+00  2.223e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/357281/cmap_HighResolution_335750401_336009601_4FGL_J2234.2-4156_daily_bin372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-28 14:49:49.418921', job_id='357281', GAL2='0.88', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632865789.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-1.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='372' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:49:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 357281: <4FGL_J2234.2-4156_daily_bin372> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin372 338.568 -41.9411 335750401 336009601 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 :                                   820.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            840 sec.

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

