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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin194
RA = 338.568, Dec = -41.9411
tmin = 289612801, tmax = 289872001
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='356998', job_status='RUN', time_executed='2021-09-28 14:35:45.005685', time_epoch_executed='1632864945.01' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/356998

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/356998/ft1_4FGL_J2234.2-4156_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/356998/ft2_4FGL_J2234.2-4156_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/356998/ft1_4FGL_J2234.2-4156_daily_bin194.fits outfile=/scratch/kocevski/356998/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin194.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=289612801.0 tmax=289872001.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.48
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/356998/ft2_4FGL_J2234.2-4156_daily_bin194.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/356998/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin194.fits evtable="EVENTS" outfile="/scratch/kocevski/356998/ft1_filtered_4FGL_J2234.2-4156_daily_bin194.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/356998/ft1_filtered_4FGL_J2234.2-4156_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/356998/ft2_4FGL_J2234.2-4156_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/356998/ltcube_289612801_289872001_4FGL_J2234.2-4156_daily_bin194.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/356998/ft2_4FGL_J2234.2-4156_daily_bin194.fits
.....................!
real 11.97
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/356998/ft1_filtered_4FGL_J2234.2-4156_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/356998/ft2_4FGL_J2234.2-4156_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/356998/ltcube_289612801_289872001_4FGL_J2234.2-4156_daily_bin194.fits outfile=/scratch/kocevski/356998/expmap_289612801_289872001_4FGL_J2234.2-4156_daily_bin194.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/356998/ltcube_289612801_289872001_4FGL_J2234.2-4156_daily_bin194.fits
.....................!
real 192.96
user 187.34
sys 5.24

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/356998/ft1_filtered_4FGL_J2234.2-4156_daily_bin194.fits scfile=/scratch/kocevski/356998/ft2_4FGL_J2234.2-4156_daily_bin194.fits outfile=/scratch/kocevski/356998/cmap_289612801_289872001_4FGL_J2234.2-4156_daily_bin194.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/356998/ft1_filtered_4FGL_J2234.2-4156_daily_bin194.fits scfile=/scratch/kocevski/356998/ft2_4FGL_J2234.2-4156_daily_bin194.fits outfile=/scratch/kocevski/356998/cmap_HighResolution_289612801_289872001_4FGL_J2234.2-4156_daily_bin194.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/356998/ft1_filtered_4FGL_J2234.2-4156_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/356998/ft2_4FGL_J2234.2-4156_daily_bin194.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/356998/Model_4FGL_J2234.2-4156_daily_bin194.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/356998/ft1_filtered_4FGL_J2234.2-4156_daily_bin194.fits.....................!
real 43.17
user 41.70
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15525E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.2470       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3970       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2031       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1525       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.7131       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.454       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6028       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.361       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2489       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.543       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0062       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    64.015       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.054       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.7989       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.2697       1.0000         .10000E-03   10000.    
    29 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.514       1.0000         .10000E-03   10000.    
    31 'norm      '    7.8461       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.6585       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .52184       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=   5394.479     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     4587 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    165.83       -.16085E-05** at limit **
   2  norm          7.2463        4.5237       -.15765E-07    .48621E-04
   3  Prefactor     .10000E-03    5.7958       -.95056E-07** at limit **
   4  Prefactor     9.3972        7.0552       -.63080E-08    .36651E-05
   5  Prefactor     8.2084        36.631       -.12077E-05    .36774E-05
   6  Prefactor     3.1537        10.074        .24100E-05   -.49430E-04
   7  Prefactor     .10000E-03    60.825        .39172E-05** at limit **
   8  norm          6.7119        8.2763        .21636E-06   -.49145E-05
   9  Prefactor     11.460        9.6845        .28857E-06   -.37977E-04
  10  Prefactor     5.6037        5.1391        .26021E-08    .39633E-04
  11  Prefactor     17.383        39.041       -.71895E-06    .15165E-04
  12  Prefactor     4.2488        5.9073        .12136E-05   -.22477E-04
  13  Prefactor     .10000E-03    10.946       -.16164E-06** at limit **
  14  Prefactor     14.544        17.312        .14905E-06   -.23408E-06
  15  Prefactor     .10000E-03    72.005       -.29868E-05** at limit **
  16  Prefactor     9.0079        13.145        .51793E-06    .69809E-04
  17  Prefactor     .10000E-03    29.448       -.16111E-06** at limit **
  18  Prefactor     .10000E-03    5.4353        .20620E-07** at limit **
  19  Prefactor     .10000E-03    2.0079        .51026E-09** at limit **
  20  Prefactor     .10000E-03    65.773       -.33896E-06** at limit **
  21  Prefactor     63.983        64.108        .19009E-05   -.39774E-04
  22  Prefactor     .10000E-03    5.4661       -.18643E-06** at limit **
  23  norm          14.049        13.886        .15574E-06   -.21375E-05
  24  norm          .10000E-03    2.0224        .45165E-08** at limit **
  25  norm          .10000E-03    2.1399        .20809E-06** at limit **
  26  norm          .10000E-03    12.688       -.18280E-07** at limit **
  27  Prefactor     9.8066        14.171       -.59540E-06    .22671E-04
  28  Prefactor     3.3871        159.09       -.16486E-04    .40332E-06
  29  norm          .10000E-03    3.1311        .13964E-05** at limit **
  30  Prefactor     12.478        32.565        .19002E-05    .40637E-05
  31  norm          7.8425        6.5058        .10912E-05    .10347E-03
  32  Normalizat    1.6582        .23928       -.23085E-05    .12614E-03
  33  Prefactor     .52201        .20121        .35480E-05    .40768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.24632
  Prefactor  = 0.0001
  Prefactor  = 9.3972
  Prefactor  = 8.2084
  Prefactor  = 3.15368
  Prefactor  = 0.000100001
  norm       = 6.71193
  Prefactor  = 11.4603
  Prefactor  = 5.60366
  Prefactor  = 17.3832
  Prefactor  = 4.24881
  Prefactor  = 0.0001
  Prefactor  = 14.5436
  Prefactor  = 0.000100001
  Prefactor  = 9.00795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.9834
  Prefactor  = 0.0001
  norm       = 14.0494
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.80662
  Prefactor  = 3.38706
  norm       = 0.0001
  Prefactor  = 12.4777
  norm       = 7.84249
  Normalizat = 1.65825
  Prefactor  = 0.522011
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.479     FROM HESSE     STATUS=OK           695 CALLS     5282 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    172.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.2463        4.5201        .11950E-03   -1.5170    
   3  Prefactor     .10000E-03    5.8885        .17266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3972        7.0545        .13073E-03   -1.5095    
   5  Prefactor     8.2084        36.512        .13998E-03   -1.5135    
   6  Prefactor     3.1537        10.143        .11415E-02   -1.5353    
   7  Prefactor     .10000E-03    60.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7119        8.2806        .77434E-03   -1.5190    
   9  Prefactor     11.460        9.7059        .11837E-03   -1.5031    
  10  Prefactor     5.6037        5.1509        .14910E-03   -1.5234    
  11  Prefactor     17.383        39.002        .96124E-04   -1.4874    
  12  Prefactor     4.2488        5.9038        .97737E-03   -1.5296    
  13  Prefactor     .10000E-03    10.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.544        17.314        .10503E-03   -1.4945    
  15  Prefactor     .10000E-03    72.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.0079        13.129        .13355E-03   -1.5108    
  17  Prefactor     .10000E-03    29.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.4495        .16721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0095        .10164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    66.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     63.983        63.955        .50156E-04   -1.4106    
  22  Prefactor     .10000E-03    5.4704        .16770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.049        13.881        .10684E-03   -1.4958    
  24  norm          .10000E-03    2.0226        .10201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.1451        .10495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    12.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.8066        14.063        .12801E-03   -1.5082    
  28  Prefactor     3.3871        165.25        .22395E-03   -1.5340    
  29  norm          .10000E-03    3.2218        .12790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     12.478        32.364        .11324E-03   -1.5001    
  31  norm          7.8425        6.4720        .14315E-03   -1.5148    
  32  Normalizat    1.6582        .27172        .22448E-03   -.73424    
  33  Prefactor     .52201        .22671        .33981E-03   -1.1098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8682e-10
Minuit parameter uncertainties:
  1  0.000155327
  2  4.52027
  3  8.4118e-06
  4  7.05517
  5  34.6591
  6  10.1482
  7  0.000447306
  8  8.28202
  9  9.70725
  10  5.1513
  11  39.0589
  12  5.90465
  13  5.06495e-06
  14  17.3197
  15  0.00054251
  16  13.133
  17  1.24308e-05
  18  1.04118e-05
  19  6.8585e-07
  20  2.02734e-05
  21  64.0242
  22  5.5194e-06
  23  13.8847
  24  1.17371e-07
  25  7.6744e-06
  26  6.95604e-07
  27  14.0678
  28  47.4547
  29  6.75814e-05
  30  32.4096
  31  6.47259
  32  0.271961
  33  0.227105
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  5.220e-01  2.271e-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.658e+00  2.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/356998/likelihoodResults_289612801_289872001_4FGL_J2234.2-4156_daily_bin194.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) = 5394.39279107
delta logL = 0.0859558378406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5394.38997694
delta logL = 0.0887699624245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9633       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5981       1.0000          .0000       10.000    
     3 'Normalizat'    1.6450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52855       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=   5394.390     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      337 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9604        99.468        .13388E-03   -.18750E-03
   2  Index         2.5983        2.8171        .89846E-02   -.51577E-04
   3  Normalizat    1.6446        .25120        .22520E-03    .81540E-04
   4  Prefactor     .52891        .22369        .33768E-03    .12955E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.96045
  Index      = 2.59832
  Normalizat = 1.64464
  Prefactor  = 0.528909
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.390     FROM HESSE     STATUS=OK            25 CALLS      362 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9604        29.894        .53550E-05   -1.5109    
   2  Index         2.5983        1.4997        .35938E-03   -.50104    
   3  Normalizat    1.6446        .24601        .45040E-04   -.73791    
   4  Prefactor     .52891        .22037        .13507E-04   -1.1067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29599e-10
Minuit parameter uncertainties:
  1  29.9443
  2  1.53055
  3  0.246192
  4  0.220724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/356998': 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) = 5394.3899756
delta logL = 0.0887713116299

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  5.289e-01  2.207e-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.645e+00  2.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/356998/cmap_HighResolution_289612801_289872001_4FGL_J2234.2-4156_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-28 14:50:11.032349', job_id='356998', GAL2='0.53', fit_tolerance='1e-08', EG2='1.64', EG='1.66', time_epoch_completed='1632865811.03', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='8.88e-02', ts2='0.45', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='194' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:50:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 356998: <4FGL_J2234.2-4156_daily_bin194> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin194 338.568 -41.9411 289612801 289872001 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 :                                   865.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

