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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1431
RA = 338.568, Dec = -41.9411
tmin = 610243201, tmax = 610502401
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='362849', job_status='RUN', time_executed='2021-09-28 14:56:57.320158', time_epoch_executed='1632866217.32' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362849

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362849/ft1_4FGL_J2234.2-4156_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362849/ft2_4FGL_J2234.2-4156_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362849/ft1_4FGL_J2234.2-4156_daily_bin1431.fits outfile=/scratch/kocevski/362849/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1431.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=610243201.0 tmax=610502401.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.93
user 3.70
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362849/ft2_4FGL_J2234.2-4156_daily_bin1431.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/362849/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1431.fits evtable="EVENTS" outfile="/scratch/kocevski/362849/ft1_filtered_4FGL_J2234.2-4156_daily_bin1431.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/362849/ft1_filtered_4FGL_J2234.2-4156_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/362849/ft2_4FGL_J2234.2-4156_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/362849/ltcube_610243201_610502401_4FGL_J2234.2-4156_daily_bin1431.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/362849/ft2_4FGL_J2234.2-4156_daily_bin1431.fits
.....................!
real 12.09
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362849/ft1_filtered_4FGL_J2234.2-4156_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/362849/ft2_4FGL_J2234.2-4156_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/362849/ltcube_610243201_610502401_4FGL_J2234.2-4156_daily_bin1431.fits outfile=/scratch/kocevski/362849/expmap_610243201_610502401_4FGL_J2234.2-4156_daily_bin1431.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/362849/ltcube_610243201_610502401_4FGL_J2234.2-4156_daily_bin1431.fits
.....................!
real 191.21
user 186.43
sys 4.33

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/362849/ft1_filtered_4FGL_J2234.2-4156_daily_bin1431.fits scfile=/scratch/kocevski/362849/ft2_4FGL_J2234.2-4156_daily_bin1431.fits outfile=/scratch/kocevski/362849/cmap_610243201_610502401_4FGL_J2234.2-4156_daily_bin1431.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362849/ft1_filtered_4FGL_J2234.2-4156_daily_bin1431.fits scfile=/scratch/kocevski/362849/ft2_4FGL_J2234.2-4156_daily_bin1431.fits outfile=/scratch/kocevski/362849/cmap_HighResolution_610243201_610502401_4FGL_J2234.2-4156_daily_bin1431.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/362849/ft1_filtered_4FGL_J2234.2-4156_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/362849/ft2_4FGL_J2234.2-4156_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362849/Model_4FGL_J2234.2-4156_daily_bin1431.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/362849/ft1_filtered_4FGL_J2234.2-4156_daily_bin1431.fits.....................!
real 41.24
user 39.88
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.8994       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28466E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6692       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1239       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.790       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.162       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25692E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.598       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    72.767       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9563       1.0000         .10000E-03   10000.    
    24 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.1554       1.0000         .10000E-03   10000.    
    26 'norm      '    12.372       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.232       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.4089       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.8335       1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1138       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .94934       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=   5152.944     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4538 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.671       -.46065E-06** at limit **
   2  norm          7.9002        5.2993        .36752E-07    .78298E-05
   3  Prefactor     .10000E-03    7.2398       -.17844E-06** at limit **
   4  Prefactor     6.6566        9.9059        .34296E-07    .10179E-04
   5  Prefactor     .10000E-03    13.039        .43675E-06** at limit **
   6  Prefactor     .10000E-03    4.4740       -.21131E-07** at limit **
   7  Prefactor     .10000E-03    59.840        .34072E-06** at limit **
   8  norm          3.6700        5.1048        .13003E-07    .36415E-04
   9  Prefactor     .10000E-03    4.2073       -.35591E-08** at limit **
  10  Prefactor     .10000E-03    1.9241        .39909E-07** at limit **
  11  Prefactor     .10000E-03    49.172       -.78409E-06** at limit **
  12  Prefactor     4.1215        7.4130       -.30633E-06    .83144E-04
  13  Prefactor     10.789        11.638        .75802E-09    .23487E-05
  14  Prefactor     .10000E-03    16.577       -.47302E-06** at limit **
  15  Prefactor     24.124        32.282        .35335E-05    .17799E-03
  16  Prefactor     .10010E-03    11.321       -.25717E-05** at limit **
  17  Prefactor     .10000E-03    40.072        .46416E-07** at limit **
  18  Prefactor     14.596        14.502       -.25962E-07    .92286E-06
  19  Prefactor     .10000E-03    4.0105        .51846E-07** at limit **
  20  Prefactor     .10000E-03    18.221        .59776E-06** at limit **
  21  Prefactor     72.765        60.245       -.40046E-07    .11858E-05
  22  Prefactor     .10000E-03    5.4841       -.28114E-07** at limit **
  23  norm          3.9587        12.771        .17536E-05    .32550E-04
  24  norm          .10000E-03    3.3048       -.20153E-07** at limit **
  25  norm          4.1559        4.3359       -.61240E-07    .36525E-04
  26  norm          12.372        9.7140        .11123E-07    .75146E-06
  27  Prefactor     13.230        10.016       -.43183E-06    .25731E-04
  28  Prefactor     3.4097        25.090        .71060E-07    .40779E-05
  29  norm          .10000E-03    1.1637        .20495E-07** at limit **
  30  Prefactor     3.8334        18.816        .23330E-05    .28936E-04
  31  norm          .10000E-03    1.4894        .16165E-07** at limit **
  32  Normalizat    1.1145        .21032        .11362E-05    .18694E-03
  33  Prefactor     .94871        .19399       -.13766E-05    .15375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.90019
  Prefactor  = 0.000100001
  Prefactor  = 6.65658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.67003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.12148
  Prefactor  = 10.789
  Prefactor  = 0.0001
  Prefactor  = 24.1243
  Prefactor  = 0.000100096
  Prefactor  = 0.0001
  Prefactor  = 14.5956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.7655
  Prefactor  = 0.0001
  norm       = 3.95866
  norm       = 0.0001
  norm       = 4.15586
  norm       = 12.3722
  Prefactor  = 13.2304
  Prefactor  = 3.40974
  norm       = 0.0001
  Prefactor  = 3.83339
  norm       = 0.0001
  Normalizat = 1.11448
  Prefactor  = 0.948709
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.944     FROM HESSE     STATUS=OK           693 CALLS     5231 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.9002        5.2990        .13014E-03   -1.5146    
   3  Prefactor     .10000E-03    25.276        .36748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6566        9.7729        .15559E-03   -1.5192    
   5  Prefactor     .10000E-03    13.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4931        .14826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    59.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6700        5.0982        .18646E-03   -1.5325    
   9  Prefactor     .10000E-03    4.2237        .14377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9433        .97181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    49.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1215        7.3892        .19850E-03   -1.5302    
  13  Prefactor     10.789        11.640        .12197E-03   -1.5051    
  14  Prefactor     .10000E-03    16.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.124        33.176        .81491E-04   -1.4725    
  16  Prefactor     .10010E-03    58.861        .39838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.596        14.540        .10483E-03   -1.4944    
  19  Prefactor     .10000E-03    4.0345        .14037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     72.765        60.321        .47064E-04   -1.4000    
  22  Prefactor     .10000E-03    5.4884        .16419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9587        12.792        .10140E-02   -1.5310    
  24  norm          .10000E-03    3.3135        .12743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.1559        4.3407        .13953E-03   -1.5300    
  26  norm          12.372        9.7140        .11388E-03   -1.5004    
  27  Prefactor     13.230        10.024        .11011E-03   -1.4980    
  28  Prefactor     3.4097        25.067        .21911E-03   -1.5339    
  29  norm          .10000E-03    1.1669        .75586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.8334        19.259        .10307E-02   -1.5316    
  31  norm          .10000E-03    1.4925        .85543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1145        .24839        .24860E-03   -.89288    
  33  Prefactor     .94871        .22606        .25102E-03   -.94459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67743e-09
Minuit parameter uncertainties:
  1  4.26567e-05
  2  5.29928
  3  0.000233686
  4  9.77527
  5  3.8912e-05
  6  6.75619e-06
  7  0.000110695
  8  5.09882
  9  3.97242e-06
  10  6.14688e-07
  11  0.000163219
  12  7.39086
  13  11.6426
  14  5.97272e-05
  15  33.2011
  16  0.00475956
  17  4.79975e-05
  18  14.5438
  19  9.04392e-07
  20  7.98107e-05
  21  60.3715
  22  2.34653e-06
  23  12.8003
  24  1.80093e-07
  25  4.341
  26  9.71524
  27  10.0251
  28  18.5007
  29  3.77189e-07
  30  17.1934
  31  2.41436e-07
  32  0.248653
  33  0.226283
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.632e-04  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.487e-01  2.263e-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.114e+00  2.487e-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: 6.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362849/likelihoodResults_610243201_610502401_4FGL_J2234.2-4156_daily_bin1431.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) = 5152.94458156
delta logL = -9.68251606537e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5152.94448483
delta logL = -8.94051481737e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9361       1.0000          .0000       10.000    
     3 'Normalizat'    1.1145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94871       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.

 FCN=   5152.944     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1304.7        .90712E-02** at limit **
   2  Index         1.9693        7.0523        .50000       -.62043E-05
   3  Normalizat    1.1145        .27729E-01    .56218E-01    .16907E-03
   4  Prefactor     .94871        .26189E-01    .45623E-01   -.32644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96931
  Normalizat = 1.11448
  Prefactor  = 0.948708
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.944     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6574.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9693        6.3821        .50000       -.65120    
   3  Normalizat    1.1145        .47515E-01    .12430E-02   -.89288    
   4  Prefactor     .94871        .44891E-01    .25102E-03   -.94459    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.49567e-09
Minuit parameter uncertainties:
  1  0.00252193
  2  34.6787
  3  0.0475166
  4  0.044893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362849': 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) = 5152.94448477
delta logL = -3.6156961869e-08

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.522e-03  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.969e+00  3.468e+01  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.487e-01  4.489e-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.114e+00  4.752e-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/362849/cmap_HighResolution_610243201_610502401_4FGL_J2234.2-4156_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-28 15:10:36.754673', job_id='362849', GAL2='0.95', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632867036.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-3.62e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1431' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:10:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 362849: <4FGL_J2234.2-4156_daily_bin1431> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1431 338.568 -41.9411 610243201 610502401 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 :                                   815.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

