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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1147
RA = 338.568, Dec = -41.9411
tmin = 536630401, tmax = 536889601
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='360324', job_status='RUN', time_executed='2021-09-28 14:46:22.282627', time_epoch_executed='1632865582.28' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360324

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360324/ft1_4FGL_J2234.2-4156_daily_bin1147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360324/ft2_4FGL_J2234.2-4156_daily_bin1147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360324/ft1_4FGL_J2234.2-4156_daily_bin1147.fits outfile=/scratch/kocevski/360324/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1147.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=536630401.0 tmax=536889601.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.56
user 3.36
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360324/ft1_filtered_4FGL_J2234.2-4156_daily_bin1147.fits" evtable="EVENTS" scfile=/scratch/kocevski/360324/ft2_4FGL_J2234.2-4156_daily_bin1147.fits sctable="SC_DATA" outfile=/scratch/kocevski/360324/ltcube_536630401_536889601_4FGL_J2234.2-4156_daily_bin1147.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/360324/ft2_4FGL_J2234.2-4156_daily_bin1147.fits
.....................!
real 11.83
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360324/ft1_filtered_4FGL_J2234.2-4156_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/360324/ft2_4FGL_J2234.2-4156_daily_bin1147.fits sctable="SC_DATA" expcube=/scratch/kocevski/360324/ltcube_536630401_536889601_4FGL_J2234.2-4156_daily_bin1147.fits outfile=/scratch/kocevski/360324/expmap_536630401_536889601_4FGL_J2234.2-4156_daily_bin1147.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/360324/ltcube_536630401_536889601_4FGL_J2234.2-4156_daily_bin1147.fits
.....................!
real 192.99
user 187.00
sys 5.62

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/360324/ft1_filtered_4FGL_J2234.2-4156_daily_bin1147.fits scfile=/scratch/kocevski/360324/ft2_4FGL_J2234.2-4156_daily_bin1147.fits outfile=/scratch/kocevski/360324/cmap_536630401_536889601_4FGL_J2234.2-4156_daily_bin1147.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/360324/ft1_filtered_4FGL_J2234.2-4156_daily_bin1147.fits scfile=/scratch/kocevski/360324/ft2_4FGL_J2234.2-4156_daily_bin1147.fits outfile=/scratch/kocevski/360324/cmap_HighResolution_536630401_536889601_4FGL_J2234.2-4156_daily_bin1147.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360324/ft1_filtered_4FGL_J2234.2-4156_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/360324/ft2_4FGL_J2234.2-4156_daily_bin1147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360324/Model_4FGL_J2234.2-4156_daily_bin1147.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/360324/ft1_filtered_4FGL_J2234.2-4156_daily_bin1147.fits.....................!
real 39.26
user 38.03
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.468       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.120       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21661E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.342       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3940       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.050       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0400       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6975       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7624       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1201       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11394E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.563       1.0000         .10000E-03   10000.    
    23 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    22.649       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12732E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.8654       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4473       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .66533       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=   4459.133     FROM MIGRAD    STATUS=CONVERGED    910 CALLS     3894 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.980       -.14439E-05** at limit **
   2  norm          12.469        7.4154       -.37215E-06    .19556E-03
   3  Prefactor     .10000E-03    12.735       -.24661E-06** at limit **
   4  Prefactor     23.114        16.117       -.60673E-06    .13012E-03
   5  Prefactor     .10001E-03    108.37       -.61261E-05** at limit **
   6  Prefactor     25.348        14.559       -.76807E-06    .32415E-03
   7  Prefactor     .10002E-03    82.238        .48993E-05** at limit **
   8  norm          .10000E-03    3.1247       -.80768E-07** at limit **
   9  Prefactor     3.3918        11.849       -.16988E-05    .75453E-04
  10  Prefactor     18.048        6.8913        .11698E-07    .40442E-03
  11  Prefactor     .10000E-03    13.150        .17273E-06** at limit **
  12  Prefactor     .10000E-03    8.1929       -.14693E-05** at limit **
  13  Prefactor     .10000E-03    8.2355       -.20321E-07** at limit **
  14  Prefactor     .10000E-03    6.6444       -.10406E-07** at limit **
  15  Prefactor     7.0557        56.427        .78451E-05    .11206E-03
  16  Prefactor     4.6946        12.100       -.19335E-05    .27506E-04
  17  Prefactor     .10000E-03    43.534       -.46123E-06** at limit **
  18  Prefactor     7.7662        14.862       -.48166E-06    .65724E-04
  19  Prefactor     .10000E-03    2.3062       -.47728E-07** at limit **
  20  Prefactor     .81284        1025.8       -.12587E-03    .28396E-04
  21  Prefactor     .10000E-03    47.555       -.78071E-06** at limit **
  22  Prefactor     12.601        23.474        .15599E-05    .12126E-03
  23  norm          .10000E-03    29.182        .25630E-05** at limit **
  24  norm          .10000E-03    6.2337       -.81830E-08** at limit **
  25  norm          .10000E-03    2.7004        .24229E-06** at limit **
  26  norm          22.657        15.801       -.32623E-06    .75613E-04
  27  Prefactor     .10000E-03    2.3836       -.17831E-08** at limit **
  28  Prefactor     .10000E-03    46.945        .83904E-06** at limit **
  29  norm          4.8612        4.9017       -.12807E-05    .29180E-03
  30  Prefactor     .10000E-03    5.0944       -.77756E-08** at limit **
  31  norm          .10000E-03    2.4442        .20873E-06** at limit **
  32  Normalizat    1.4475        .25234       -.74181E-06    .16775E-03
  33  Prefactor     .66531        .20990        .43222E-05    .53368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 12.4693
  Prefactor  = 0.0001
  Prefactor  = 23.1136
  Prefactor  = 0.00010001
  Prefactor  = 25.3483
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 3.39179
  Prefactor  = 18.0484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.05565
  Prefactor  = 4.69456
  Prefactor  = 0.0001
  Prefactor  = 7.76619
  Prefactor  = 0.0001
  Prefactor  = 0.812837
  Prefactor  = 0.0001
  Prefactor  = 12.6014
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 22.6571
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.86121
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.44752
  Prefactor  = 0.665306
 **********
 **   18 **HESSE 
 **********

 FCN=   4459.133     FROM HESSE     STATUS=OK           691 CALLS     4585 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.469        7.4122        .11344E-03   -1.5002    
   3  Prefactor     .10000E-03    12.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.114        16.097        .83306E-04   -1.4746    
   5  Prefactor     .10001E-03    109.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.348        14.542        .79575E-04   -1.4701    
   7  Prefactor     .10002E-03    83.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.1276        .11529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3918        11.912        .21961E-03   -1.5340    
  10  Prefactor     18.048        6.9263        .94272E-04   -1.4858    
  11  Prefactor     .10000E-03    13.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.3315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.2380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6472        .16812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0557        56.941        .15119E-03   -1.5177    
  16  Prefactor     4.6946        11.996        .18567E-03   -1.5275    
  17  Prefactor     .10000E-03    43.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.7662        14.899        .14393E-03   -1.5151    
  19  Prefactor     .10000E-03    2.3090        .99038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .81284        77.115        .15392       -1.5528    
  21  Prefactor     .10000E-03    47.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.601        23.521        .11302E-03   -1.4998    
  23  norm          .10000E-03    29.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.3208        .16282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.7063        .10721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          22.657        15.800        .42083E-03   -1.4756    
  27  Prefactor     .10000E-03    2.3850        .10068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    47.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.8612        4.8975        .71337E-03   -1.5267    
  30  Prefactor     .10000E-03    5.0955        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.4504        .10199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4475        .30403        .24349E-03   -.79264    
  33  Prefactor     .66531        .24900        .30650E-03   -1.0490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17019e-09
Minuit parameter uncertainties:
  1  0.000341559
  2  7.41273
  3  2.50412e-05
  4  16.0998
  5  0.00205952
  6  14.5436
  7  0.00226725
  8  1.98958e-06
  9  11.9201
  10  6.92664
  11  3.06109e-05
  12  7.55634e-05
  13  2.60878e-06
  14  2.16565e-06
  15  40.1398
  16  12.0024
  17  4.73771e-05
  18  14.9058
  19  4.33051e-06
  20  15.8544
  21  0.000256994
  22  23.5385
  23  0.000154779
  24  2.33291e-05
  25  2.83259e-05
  26  15.8027
  27  7.29324e-06
  28  0.000499064
  29  4.89786
  30  8.63295e-06
  31  2.28388e-05
  32  0.304416
  33  0.249417
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.061e-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:  6.653e-01  2.494e-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.448e+00  3.044e-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: 4.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360324/likelihoodResults_536630401_536889601_4FGL_J2234.2-4156_daily_bin1147.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) = 4459.13366591
delta logL = -0.000358365030479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4459.13330756
delta logL = -1.2149939721e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9613       1.0000          .0000       10.000    
     3 'Normalizat'    1.4476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66524       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=   4459.133     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      247 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10224E-03    109.26        .18142E-02** at limit **
   2  Index         1.8911        5.0092        .50000        .15437E-04
   3  Normalizat    1.4475        .15989E-01    .24349E-03    .54020E-04
   4  Prefactor     .66530        .14284E-01    .30650E-03    .94102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102242
  Index      = 1.89111
  Normalizat = 1.44753
  Prefactor  = 0.665297
 **********
 **   18 **HESSE 
 **********

 FCN=   4459.133     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10224E-03    456.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8911        5.7522        .50000       -.67101    
   3  Normalizat    1.4475        .33753E-01    .48699E-04   -.79264    
   4  Prefactor     .66530        .30153E-01    .12260E-04   -1.0490    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.75405e-08
Minuit parameter uncertainties:
  1  0.0644775
  2  570.983
  3  0.0337536
  4  0.0301541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360324': 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) = 4459.13330718
delta logL = 3.65817868442e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.022e-04  6.448e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.891e+00  5.710e+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:  6.653e-01  3.015e-02  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.448e+00  3.375e-02  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/360324/cmap_HighResolution_536630401_536889601_4FGL_J2234.2-4156_daily_bin1147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-03', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-09-28 14:58:21.152587', job_id='360324', GAL2='0.67', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1632866301.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='3.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1147' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:58:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 360324: <4FGL_J2234.2-4156_daily_bin1147> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1147> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:45:37 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:45:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:45:39 2021
Terminated at Tue Sep 28 14:58:21 2021
Results reported at Tue Sep 28 14:58:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1147 338.568 -41.9411 536630401 536889601 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 :                                   718.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

