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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1005
RA = 338.568, Dec = -41.9411
tmin = 499824001, tmax = 500083201
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='360091', job_status='RUN', time_executed='2021-09-28 14:47:25.870491', time_epoch_executed='1632865645.87' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360091/ft1_4FGL_J2234.2-4156_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360091/ft2_4FGL_J2234.2-4156_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360091/ft1_4FGL_J2234.2-4156_daily_bin1005.fits outfile=/scratch/kocevski/360091/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1005.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=499824001.0 tmax=500083201.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 5.19
user 4.93
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360091/ft1_filtered_4FGL_J2234.2-4156_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/360091/ft2_4FGL_J2234.2-4156_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/360091/ltcube_499824001_500083201_4FGL_J2234.2-4156_daily_bin1005.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/360091/ft2_4FGL_J2234.2-4156_daily_bin1005.fits
.....................!
real 12.06
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360091/ft1_filtered_4FGL_J2234.2-4156_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/360091/ft2_4FGL_J2234.2-4156_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/360091/ltcube_499824001_500083201_4FGL_J2234.2-4156_daily_bin1005.fits outfile=/scratch/kocevski/360091/expmap_499824001_500083201_4FGL_J2234.2-4156_daily_bin1005.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/360091/ltcube_499824001_500083201_4FGL_J2234.2-4156_daily_bin1005.fits
.....................!
real 190.69
user 185.61
sys 4.70

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/360091/ft1_filtered_4FGL_J2234.2-4156_daily_bin1005.fits scfile=/scratch/kocevski/360091/ft2_4FGL_J2234.2-4156_daily_bin1005.fits outfile=/scratch/kocevski/360091/cmap_499824001_500083201_4FGL_J2234.2-4156_daily_bin1005.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360091/ft1_filtered_4FGL_J2234.2-4156_daily_bin1005.fits scfile=/scratch/kocevski/360091/ft2_4FGL_J2234.2-4156_daily_bin1005.fits outfile=/scratch/kocevski/360091/cmap_HighResolution_499824001_500083201_4FGL_J2234.2-4156_daily_bin1005.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.56
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360091/ft1_filtered_4FGL_J2234.2-4156_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/360091/ft2_4FGL_J2234.2-4156_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360091/Model_4FGL_J2234.2-4156_daily_bin1005.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/360091/ft1_filtered_4FGL_J2234.2-4156_daily_bin1005.fits.....................!
real 33.22
user 31.94
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5478       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1402       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.103       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3747       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11485E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5770       1.0000         .10000E-03   10000.    
     8 'norm      '    10.482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5134       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.453       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.248       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    91.936       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.004       1.0000         .10000E-03   10000.    
    23 'norm      '    20.784       1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.2729       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.213       1.0000         .10000E-03   10000.    
    29 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0592       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96714       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=   3309.204     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     4569 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.249       -.26184E-06** at limit **
   2  norm          3.5484        3.3383       -.24456E-07    .44098E-05
   3  Prefactor     5.1403        7.6431       -.30991E-07    .14427E-05
   4  Prefactor     33.104        15.250       -.37516E-07    .23925E-05
   5  Prefactor     3.4869        275.08        .30288E-05    .72021E-06
   6  Prefactor     .10000E-03    24.152       -.29614E-05** at limit **
   7  Prefactor     1.1747        2194.2        .21063E-04   -.95117E-06
   8  norm          10.490        16.183       -.43497E-06   -.34383E-05
   9  Prefactor     .10000E-03    24.102        .14819E-06** at limit **
  10  Prefactor     4.1181        4.0799       -.15510E-08    .16410E-05
  11  Prefactor     .10000E-03    23.827       -.37821E-06** at limit **
  12  Prefactor     5.5124        13.178       -.21846E-06    .82216E-06
  13  Prefactor     .10000E-03    30.738        .74609E-06** at limit **
  14  Prefactor     19.446        34.414       -.44723E-06    .41730E-06
  15  Prefactor     .10000E-03    32.759       -.38723E-06** at limit **
  16  Prefactor     .10000E-03    9.2449       -.73290E-07** at limit **
  17  Prefactor     .10000E-03    69.265        .78346E-06** at limit **
  18  Prefactor     51.224        32.712       -.21638E-05    .15295E-04
  19  Prefactor     .10000E-03    9.2218       -.17767E-07** at limit **
  20  Prefactor     92.028        98.159       -.14005E-05    .25800E-05
  21  Prefactor     .10000E-03    44.696       -.66996E-06** at limit **
  22  Prefactor     14.996        22.437       -.40976E-06    .19610E-05
  23  norm          20.786        22.422        .13897E-06   -.15446E-05
  24  norm          .10000E-03    5.6345        .20827E-09** at limit **
  25  norm          2.2741        8.8732       -.10720E-06   -.40715E-04
  26  norm          .10000E-03    11.851       -.47889E-08** at limit **
  27  Prefactor     .10000E-03    7.5435       -.34101E-07** at limit **
  28  Prefactor     11.101        114.29       -.28936E-05   -.64648E-05
  29  norm          .10000E-03    8.2315        .13686E-05** at limit **
  30  Prefactor     .10000E-03    17.396        .28107E-06** at limit **
  31  norm          .10000E-03    6.5266       -.21793E-07** at limit **
  32  Normalizat    1.0598        .27900       -.72759E-06    .30200E-05
  33  Prefactor     .96657        .23242        .72908E-06   -.21785E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.54839
  Prefactor  = 5.14029
  Prefactor  = 33.104
  Prefactor  = 3.48691
  Prefactor  = 0.0001
  Prefactor  = 1.17475
  norm       = 10.4896
  Prefactor  = 0.0001
  Prefactor  = 4.11813
  Prefactor  = 0.0001
  Prefactor  = 5.51242
  Prefactor  = 0.0001
  Prefactor  = 19.4463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.2237
  Prefactor  = 0.0001
  Prefactor  = 92.0277
  Prefactor  = 0.0001
  Prefactor  = 14.996
  norm       = 20.7862
  norm       = 0.0001
  norm       = 2.27414
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.101
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.05985
  Prefactor  = 0.966567
 **********
 **   18 **HESSE 
 **********

 FCN=   3309.204     FROM HESSE     STATUS=OK           697 CALLS     5266 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5484        3.3437        .98859E-04   -1.5331    
   3  Prefactor     5.1403        7.6234        .17732E-03   -1.5254    
   4  Prefactor     33.104        15.236        .69646E-04   -1.4557    
   5  Prefactor     3.4869        276.05        .22027E-03   -1.5334    
   6  Prefactor     .10000E-03    24.148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1747        6176.1        .33831E-02   -1.5491    
   8  norm          10.490        16.188        .12376E-03   -1.5060    
   9  Prefactor     .10000E-03    24.815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1181        4.0850        .11188E-03   -1.5302    
  11  Prefactor     .10000E-03    23.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5124        13.164        .17111E-03   -1.5238    
  13  Prefactor     .10000E-03    30.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.446        34.482        .90811E-04   -1.4826    
  15  Prefactor     .10000E-03    32.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.2620        .17084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    69.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.224        32.743        .56022E-04   -1.4275    
  19  Prefactor     .10000E-03    9.2629        .17061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     92.028        97.948        .20956E-03   -1.3786    
  21  Prefactor     .10000E-03    44.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.996        22.436        .10340E-03   -1.4933    
  23  norm          20.786        22.423        .87856E-04   -1.4796    
  24  norm          .10000E-03    5.6345        .13337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.2741        9.1333        .13619E-02   -1.5406    
  26  norm          .10000E-03    11.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.5703        .15432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.101        115.66        .11964E-03   -1.5041    
  29  norm          .10000E-03    8.3575        .16177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    17.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    6.5289        .14347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0598        .32359        .28248E-03   -.91052    
  33  Prefactor     .96657        .26855        .24951E-03   -.93852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33226e-11
Minuit parameter uncertainties:
  1  1.4647e-06
  2  3.34392
  3  7.62484
  4  15.2376
  5  62.35
  6  0.000154847
  7  112.131
  8  16.195
  9  5.07196e-05
  10  4.0853
  11  5.40062e-06
  12  13.1708
  13  1.58958e-05
  14  34.5172
  15  1.00203e-05
  16  2.05204e-06
  17  5.37128e-06
  18  32.7541
  19  4.52294e-06
  20  98.1202
  21  2.48229e-05
  22  22.449
  23  22.4318
  24  4.70725e-07
  25  9.11712
  26  3.67884e-06
  27  1.93495e-06
  28  71.8442
  29  1.66873e-05
  30  1.79552e-06
  31  6.2291e-06
  32  0.324192
  33  0.268918
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.401e-06  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:  9.666e-01  2.689e-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.060e+00  3.242e-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: 7.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360091/likelihoodResults_499824001_500083201_4FGL_J2234.2-4156_daily_bin1005.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) = 3309.20423193
delta logL = -0.000198686549993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3309.20403394
delta logL = -7.01535100234e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2614       1.0000          .0000       10.000    
     3 'Normalizat'    1.0598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96658       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=   3309.204     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      271 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    104.35        .18142E-02** at limit **
   2  Index         2.2085        5.0082        .50000        .12932E-04
   3  Normalizat    1.0598        .16180E-01    .28249E-03   -.29298E-04
   4  Prefactor     .96657        .13794E-01    .24950E-03    .22304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101423
  Index      = 2.20846
  Normalizat = 1.05984
  Prefactor  = 0.966569
 **********
 **   18 **HESSE 
 **********

 FCN=   3309.204     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10142E-03    453.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2085        6.7238        .50000       -.59235    
   3  Normalizat    1.0598        .34608E-01    .11299E-04   -.91052    
   4  Prefactor     .96657        .29504E-01    .99802E-05   -.93852    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.89294e-09
Minuit parameter uncertainties:
  1  0.0511836
  2  454.203
  3  0.0346083
  4  0.0295045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360091': 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) = 3309.2040338
delta logL = -5.56501618121e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.014e-04  5.118e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.208e+00  4.542e+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:  9.666e-01  2.950e-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.060e+00  3.461e-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/360091/cmap_HighResolution_499824001_500083201_4FGL_J2234.2-4156_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-03', job_status='DONE', photon_flux_upper_limit='7.18e-08', time_completed='2021-09-28 14:57:51.470361', job_id='360091', GAL2='0.97', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632866271.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-5.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1005' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:57:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 360091: <4FGL_J2234.2-4156_daily_bin1005> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1005 338.568 -41.9411 499824001 500083201 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 :                                   625.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            756 sec.

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

