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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin228
RA = 338.568, Dec = -41.9411
tmin = 298425601, tmax = 298684801
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='357055', job_status='RUN', time_executed='2021-09-28 14:38:14.465780', time_epoch_executed='1632865094.47' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357055

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357055/ft1_4FGL_J2234.2-4156_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357055/ft2_4FGL_J2234.2-4156_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357055/ft1_4FGL_J2234.2-4156_daily_bin228.fits outfile=/scratch/kocevski/357055/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin228.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=298425601.0 tmax=298684801.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.40
user 3.18
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357055/ft2_4FGL_J2234.2-4156_daily_bin228.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/357055/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin228.fits evtable="EVENTS" outfile="/scratch/kocevski/357055/ft1_filtered_4FGL_J2234.2-4156_daily_bin228.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/357055/ft1_filtered_4FGL_J2234.2-4156_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/357055/ft2_4FGL_J2234.2-4156_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/357055/ltcube_298425601_298684801_4FGL_J2234.2-4156_daily_bin228.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/357055/ft2_4FGL_J2234.2-4156_daily_bin228.fits
.....................!
real 11.74
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357055/ft1_filtered_4FGL_J2234.2-4156_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/357055/ft2_4FGL_J2234.2-4156_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/357055/ltcube_298425601_298684801_4FGL_J2234.2-4156_daily_bin228.fits outfile=/scratch/kocevski/357055/expmap_298425601_298684801_4FGL_J2234.2-4156_daily_bin228.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/357055/ltcube_298425601_298684801_4FGL_J2234.2-4156_daily_bin228.fits
.....................!
real 190.72
user 185.26
sys 5.04

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/357055/ft1_filtered_4FGL_J2234.2-4156_daily_bin228.fits scfile=/scratch/kocevski/357055/ft2_4FGL_J2234.2-4156_daily_bin228.fits outfile=/scratch/kocevski/357055/cmap_298425601_298684801_4FGL_J2234.2-4156_daily_bin228.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357055/ft1_filtered_4FGL_J2234.2-4156_daily_bin228.fits scfile=/scratch/kocevski/357055/ft2_4FGL_J2234.2-4156_daily_bin228.fits outfile=/scratch/kocevski/357055/cmap_HighResolution_298425601_298684801_4FGL_J2234.2-4156_daily_bin228.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.568 yref=-41.9411 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357055/ft1_filtered_4FGL_J2234.2-4156_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/357055/ft2_4FGL_J2234.2-4156_daily_bin228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357055/Model_4FGL_J2234.2-4156_daily_bin228.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/357055/ft1_filtered_4FGL_J2234.2-4156_daily_bin228.fits.....................!
real 38.04
user 36.66
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.727       1.0000         .10000E-03   10000.    
     2 'norm      '    .10535E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0450       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.897       1.0000         .10000E-03   10000.    
     8 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19177E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1739       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.825       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8746       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8844       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21646E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    11.014       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.3042       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4938       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .61822       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=   4278.561     FROM MIGRAD    STATUS=CONVERGED    874 CALLS     4545 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.745        46.768        .29208E-05    .39148E-04
   2  norm          .10000E-03    5.0314       -.99981E-06** at limit **
   3  Prefactor     .10000E-03    4.7750       -.12360E-06** at limit **
   4  Prefactor     2.0452        10.852       -.55319E-06   -.14793E-05
   5  Prefactor     .10000E-03    49.681        .37159E-05** at limit **
   6  Prefactor     .10000E-03    5.2625        .41861E-07** at limit **
   7  Prefactor     55.894        76.775       -.94456E-06   -.18276E-04
   8  norm          .10000E-03    17.843        .22327E-05** at limit **
   9  Prefactor     .10006E-03    20.024        .77871E-05** at limit **
  10  Prefactor     .10000E-03    1.5652       -.10541E-07** at limit **
  11  Prefactor     .10000E-03    14.942       -.13620E-05** at limit **
  12  Prefactor     2.1738        8.0224       -.26349E-06    .28254E-04
  13  Prefactor     21.819        25.714       -.13674E-06    .16276E-04
  14  Prefactor     3.8757        29.407       -.33838E-05    .21389E-05
  15  Prefactor     7.8739        22.849       -.57711E-06    .10586E-06
  16  Prefactor     .10007E-03    51.009       -.13476E-04** at limit **
  17  Prefactor     .10000E-03    37.931       -.29992E-06** at limit **
  18  Prefactor     .10000E-03    7.8349        .16104E-06** at limit **
  19  Prefactor     .10000E-03    4.5822        .22803E-06** at limit **
  20  Prefactor     .10000E-03    26.339       -.19518E-05** at limit **
  21  Prefactor     .10000E-03    47.491        .32664E-05** at limit **
  22  Prefactor     .10000E-03    23.503       -.18881E-06** at limit **
  23  norm          .10000E-03    4.3860       -.10888E-06** at limit **
  24  norm          .10000E-03    2.1585        .64135E-09** at limit **
  25  norm          .10000E-03    1.7479        .14013E-07** at limit **
  26  norm          11.015        13.669        .88654E-07    .61516E-06
  27  Prefactor     .10000E-03    3.6091        .87417E-08** at limit **
  28  Prefactor     .10000E-03    29.338       -.24904E-05** at limit **
  29  norm          .10000E-03    1.8176        .55495E-07** at limit **
  30  Prefactor     8.2987        17.897        .12339E-06    .12391E-04
  31  norm          .10000E-03    2.4033        .52750E-07** at limit **
  32  Normalizat    1.4937        .22175        .13851E-06   -.12793E-03
  33  Prefactor     .61821        .19494       -.81377E-06    .63863E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7454
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.04525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.8937
  norm       = 0.0001
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17378
  Prefactor  = 21.8194
  Prefactor  = 3.87572
  Prefactor  = 7.87392
  Prefactor  = 0.000100072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.0148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.29869
  norm       = 0.0001
  Normalizat = 1.49372
  Prefactor  = 0.618211
 **********
 **   18 **HESSE 
 **********

 FCN=   4278.561     FROM HESSE     STATUS=OK           689 CALLS     5234 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.745        46.933        .77490E-04   -1.4673    
   2  norm          .10000E-03    5.2491        .28596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7838        .13956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0452        10.839        .28913E-03   -1.5422    
   5  Prefactor     .10000E-03    49.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2843        .14650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     55.894        76.770        .53654E-04   -1.4211    
   8  norm          .10000E-03    18.316        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10006E-03    42.963        .32762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.5729        .79899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1738        7.9958        .27927E-03   -1.5413    
  13  Prefactor     21.819        25.543        .85738E-04   -1.4773    
  14  Prefactor     3.8757        29.511        .10250E-02   -1.5314    
  15  Prefactor     7.8739        22.536        .14280E-03   -1.5147    
  16  Prefactor     .10007E-03    73.816        .31117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.8573        .17883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6381        .13676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    47.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.3890        .13379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.1586        .93856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.7488        .84458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.015        13.665        .12072E-03   -1.5044    
  27  Prefactor     .10000E-03    3.6125        .12118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    29.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.8264        .86115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.2987        17.908        .13912E-03   -1.5132    
  31  norm          .10000E-03    2.4156        .99030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4937        .25966        .21513E-03   -.77955    
  33  Prefactor     .61821        .22745        .28709E-03   -1.0682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52089e-09
Minuit parameter uncertainties:
  1  46.9975
  2  6.66779e-05
  3  1.83585e-06
  4  9.41912
  5  4.18612e-05
  6  8.12889e-06
  7  76.9058
  8  0.000109348
  9  0.00324585
  10  3.05306e-06
  11  4.18763e-06
  12  7.99974
  13  25.5555
  14  21.4038
  15  22.5606
  16  0.00462833
  17  7.91864e-06
  18  9.29102e-06
  19  6.9519e-06
  20  1.16427e-05
  21  3.49283e-05
  22  3.2666e-05
  23  1.1317e-06
  24  2.63665e-07
  25  8.27609e-07
  26  13.6692
  27  1.08662e-06
  28  2.55963e-05
  29  2.42227e-06
  30  17.9197
  31  2.70279e-06
  32  0.259892
  33  0.227785
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.188e-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:  6.182e-01  2.278e-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.494e+00  2.599e-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.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357055/likelihoodResults_298425601_298684801_4FGL_J2234.2-4156_daily_bin228.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) = 4278.56118875
delta logL = -0.000313607322823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4278.5608772
delta logL = -2.05525884667e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3407       1.0000          .0000       10.000    
     3 'Normalizat'    1.4937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61820       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=   4278.561     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      283 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10527E-03    2.3719        .18142E-01** at limit **
   2  Index         2.2297        7.3416        .50000        .28649E-04
   3  Normalizat    1.4937        .24851E-02    .21513E-03   -.87553E-04
   4  Prefactor     .61821        .22446E-02    .28709E-03   -.62211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105269
  Index      = 2.22974
  Normalizat = 1.49372
  Prefactor  = 0.618209
 **********
 **   18 **HESSE 
 **********

 FCN=   4278.561     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10527E-03    70.764        .21162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2297        5.8039        .50000       -.58722    
   3  Normalizat    1.4937        .13665E-01    .43027E-04   -.77955    
   4  Prefactor     .61821        .12343E-01    .11484E-04   -1.0682    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.47917e-09
Minuit parameter uncertainties:
  1  0.0386641
  2  263.528
  3  0.0136653
  4  0.0123429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357055': 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) = 4278.56087659
delta logL = -1.4417919374e-06

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.053e-04  3.866e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.230e+00  2.635e+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.182e-01  1.234e-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.494e+00  1.367e-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/357055/cmap_HighResolution_298425601_298684801_4FGL_J2234.2-4156_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-03', job_status='DONE', photon_flux_upper_limit='4.53e-08', time_completed='2021-09-28 14:50:23.656155', job_id='357055', GAL2='0.62', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1632865823.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='-1.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='228' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:50:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 357055: <4FGL_J2234.2-4156_daily_bin228> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin228 338.568 -41.9411 298425601 298684801 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 :                                   728.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

