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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1389
RA = 338.568, Dec = -41.9411
tmin = 599356801, tmax = 599616001
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='362782', job_status='RUN', time_executed='2021-09-28 14:57:02.508283', time_epoch_executed='1632866222.51' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362782/ft1_4FGL_J2234.2-4156_daily_bin1389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362782/ft2_4FGL_J2234.2-4156_daily_bin1389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362782/ft1_4FGL_J2234.2-4156_daily_bin1389.fits outfile=/scratch/kocevski/362782/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1389.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=599356801.0 tmax=599616001.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 2.70
user 2.46
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362782/ft2_4FGL_J2234.2-4156_daily_bin1389.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/362782/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1389.fits evtable="EVENTS" outfile="/scratch/kocevski/362782/ft1_filtered_4FGL_J2234.2-4156_daily_bin1389.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/362782/ft1_filtered_4FGL_J2234.2-4156_daily_bin1389.fits" evtable="EVENTS" scfile=/scratch/kocevski/362782/ft2_4FGL_J2234.2-4156_daily_bin1389.fits sctable="SC_DATA" outfile=/scratch/kocevski/362782/ltcube_599356801_599616001_4FGL_J2234.2-4156_daily_bin1389.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/362782/ft2_4FGL_J2234.2-4156_daily_bin1389.fits
.....................!
real 12.60
user 12.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362782/ft1_filtered_4FGL_J2234.2-4156_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/362782/ft2_4FGL_J2234.2-4156_daily_bin1389.fits sctable="SC_DATA" expcube=/scratch/kocevski/362782/ltcube_599356801_599616001_4FGL_J2234.2-4156_daily_bin1389.fits outfile=/scratch/kocevski/362782/expmap_599356801_599616001_4FGL_J2234.2-4156_daily_bin1389.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/362782/ltcube_599356801_599616001_4FGL_J2234.2-4156_daily_bin1389.fits
.....................!
real 191.15
user 185.33
sys 5.40

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/362782/ft1_filtered_4FGL_J2234.2-4156_daily_bin1389.fits scfile=/scratch/kocevski/362782/ft2_4FGL_J2234.2-4156_daily_bin1389.fits outfile=/scratch/kocevski/362782/cmap_599356801_599616001_4FGL_J2234.2-4156_daily_bin1389.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/362782/ft1_filtered_4FGL_J2234.2-4156_daily_bin1389.fits scfile=/scratch/kocevski/362782/ft2_4FGL_J2234.2-4156_daily_bin1389.fits outfile=/scratch/kocevski/362782/cmap_HighResolution_599356801_599616001_4FGL_J2234.2-4156_daily_bin1389.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.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16074E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.162       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14314E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12301E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2970       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.016       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.538       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4967       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.472       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.852       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9557       1.0000         .10000E-03   10000.    
    24 'norm      '    2.7578       1.0000         .10000E-03   10000.    
    25 'norm      '    1.9214       1.0000         .10000E-03   10000.    
    26 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.7218       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12653E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.9543       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .63443       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.4457       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=   5858.530     FROM MIGRAD    STATUS=CONVERGED    900 CALLS     4560 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.533        .49791E-05** at limit **
   2  norm          15.157        7.3131       -.12644E-06   -.30877E-03
   3  Prefactor     .10000E-03    3.9359        .11509E-06** at limit **
   4  Prefactor     .10000E-03    2.2024       -.21418E-07** at limit **
   5  Prefactor     .10000E-03    17.702        .10620E-05** at limit **
   6  Prefactor     .10000E-03    3.7337       -.77919E-07** at limit **
   7  Prefactor     .10000E-03    59.519       -.56122E-05** at limit **
   8  norm          .10000E-03    2.4784       -.17937E-08** at limit **
   9  Prefactor     .10009E-03    6.8112        .43837E-05** at limit **
  10  Prefactor     .10000E-03    2.8892       -.73214E-08** at limit **
  11  Prefactor     .10000E-03    13.055       -.75705E-06** at limit **
  12  Prefactor     3.2979        5.3466        .44095E-05    .73991E-03
  13  Prefactor     .10000E-03    8.1095        .63778E-07** at limit **
  14  Prefactor     30.987        26.424       -.92842E-06    .21711E-04
  15  Prefactor     30.529        26.302       -.12679E-05   -.75041E-05
  16  Prefactor     3.4987        10.839        .18152E-06   -.17704E-04
  17  Prefactor     .10000E-03    272.71        .64662E-05** at limit **
  18  Prefactor     44.466        16.393        .13966E-06   -.84284E-04
  19  Prefactor     .10000E-03    1.6879        .17051E-07** at limit **
  20  Prefactor     17.834        31.335       -.13052E-05    .23399E-05
  21  Prefactor     .10000E-03    12.282        .80502E-06** at limit **
  22  Prefactor     .10000E-03    4.5065       -.27947E-07** at limit **
  23  norm          3.9544        9.8767        .11463E-06   -.52390E-05
  24  norm          2.7576        5.5596        .40723E-06    .10824E-05
  25  norm          1.9242        4.1932       -.29967E-06    .67843E-04
  26  norm          .10000E-03    4.0290       -.17795E-06** at limit **
  27  Prefactor     7.7152        7.2184        .27434E-08   -.12314E-03
  28  Prefactor     .10000E-03    14.604       -.75375E-06** at limit **
  29  norm          1.9547        2.3387        .67212E-07   -.25388E-04
  30  Prefactor     .10000E-03    18.410        .52324E-06** at limit **
  31  norm          .10000E-03    2.4877       -.52392E-07** at limit **
  32  Normalizat    .63481        .20081       -.20789E-06   -.19676E-03
  33  Prefactor     1.4455        .19536       -.19874E-06   -.19856E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 15.1574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.00010009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2979
  Prefactor  = 0.0001
  Prefactor  = 30.9874
  Prefactor  = 30.5286
  Prefactor  = 3.49867
  Prefactor  = 0.000100002
  Prefactor  = 44.4658
  Prefactor  = 0.0001
  Prefactor  = 17.8339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95441
  norm       = 2.75761
  norm       = 1.92424
  norm       = 0.0001
  Prefactor  = 7.71524
  Prefactor  = 0.0001
  norm       = 1.95467
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.634809
  Prefactor  = 1.44545
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.530     FROM HESSE     STATUS=OK           689 CALLS     5249 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.157        7.3360        .10286E-03   -1.4929    
   3  Prefactor     .10000E-03    3.9523        .14829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2033        .11093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7518        .14443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    59.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.4797        .11768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10009E-03    22.625        .31577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9814        .25383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2979        5.5332        .11072E-02   -1.5345    
  13  Prefactor     .10000E-03    8.1161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.987        26.442        .71945E-04   -1.4594    
  15  Prefactor     30.529        26.155        .72504E-04   -1.4602    
  16  Prefactor     3.4987        10.755        .21622E-03   -1.5334    
  17  Prefactor     .10000E-03    274.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.466        16.424        .60119E-04   -1.4373    
  19  Prefactor     .10000E-03    1.6900        .97110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.834        31.338        .94792E-04   -1.4863    
  21  Prefactor     .10000E-03    12.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.5094        .15869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9544        9.8611        .20281E-03   -1.5310    
  24  norm          2.7576        5.5420        .24486E-03   -1.5376    
  25  norm          1.9242        4.1785        .21954E-03   -1.5431    
  26  norm          .10000E-03    4.0470        .15005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.7152        7.2017        .14431E-03   -1.5152    
  28  Prefactor     .10000E-03    14.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.9547        2.3391        .12127E-03   -1.5428    
  30  Prefactor     .10000E-03    18.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.5667        .23570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .63481        .23667        .32109E-03   -1.0653    
  33  Prefactor     1.4455        .23404        .22260E-03   -.79079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70874e-09
Minuit parameter uncertainties:
  1  0.000459327
  2  7.33644
  3  9.46684e-06
  4  1.38584e-06
  5  6.47926e-05
  6  2.53604e-06
  7  0.000438867
  8  2.16601e-07
  9  0.00286272
  10  5.227e-06
  11  4.39588e-05
  12  5.53406
  13  7.41681e-06
  14  26.4524
  15  26.1652
  16  10.7607
  17  0.00146254
  18  16.4254
  19  1.46273e-06
  20  31.3665
  21  2.98108e-05
  22  3.86727e-06
  23  9.86519
  24  5.54305
  25  4.17909
  26  1.89268e-06
  27  7.2025
  28  3.7939e-05
  29  2.33921
  30  0.000133932
  31  3.48648e-06
  32  0.237048
  33  0.23421
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.445e+00  2.342e-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:  6.348e-01  2.370e-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: 3.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362782/likelihoodResults_599356801_599616001_4FGL_J2234.2-4156_daily_bin1389.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) = 5858.53035957
delta logL = -0.0003586240191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5858.53000095
delta logL = -7.57790985517e-09

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 'Index     '    1.9691       1.0000          .0000       10.000    
     3 'Normalizat'    .63490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4454       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=   5858.530     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10132E-03    107.97        .18142E-02** at limit **
   2  Index         1.9157        7.5293        .50000        .12006E-04
   3  Normalizat    .63481        .12994E-01    .32109E-03    .52048E-05
   4  Prefactor     1.4455        .13121E-01    .22260E-03    .57202E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101316
  Index      = 1.91566
  Normalizat = 0.634811
  Prefactor  = 1.44545
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.530     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10132E-03    464.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9157        8.9782        .50000       -.66476    
   3  Normalizat    .63481        .27909E-01    .12843E-04   -1.0653    
   4  Prefactor     1.4455        .28180E-01    .89038E-05   -.79079    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36359e-08
Minuit parameter uncertainties:
  1  0.0498277
  2  610.255
  3  0.0279092
  4  0.0281799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362782': 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) = 5858.53000074
delta logL = 2.06601725949e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.445e+00  2.818e-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:  6.348e-01  2.791e-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/362782/cmap_HighResolution_599356801_599616001_4FGL_J2234.2-4156_daily_bin1389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-03', job_status='DONE', photon_flux_upper_limit='3.96e-08', time_completed='2021-09-28 15:11:40.393924', job_id='362782', GAL2='1.45', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1632867100.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='2.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1389' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:11:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 362782: <4FGL_J2234.2-4156_daily_bin1389> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1389> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:55:12 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:55:14 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:55:14 2021
Terminated at Tue Sep 28 15:11:41 2021
Results reported at Tue Sep 28 15:11:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1389 338.568 -41.9411 599356801 599616001 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 :                                   874.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            989 sec.

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

