/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 88 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7377
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1577
RA = 338.568, Dec = -41.9411
tmin = 648086401, tmax = 648345601
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='363078', job_status='RUN', time_executed='2021-09-28 14:57:15.310502', time_epoch_executed='1632866235.31' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363078/ft1_4FGL_J2234.2-4156_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363078/ft2_4FGL_J2234.2-4156_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363078/ft1_4FGL_J2234.2-4156_daily_bin1577.fits outfile=/scratch/kocevski/363078/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1577.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=648086401.0 tmax=648345601.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 4.25
user 4.01
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363078/ft2_4FGL_J2234.2-4156_daily_bin1577.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/363078/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1577.fits evtable="EVENTS" outfile="/scratch/kocevski/363078/ft1_filtered_4FGL_J2234.2-4156_daily_bin1577.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.58
user 0.34
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363078/ft1_filtered_4FGL_J2234.2-4156_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/363078/ft2_4FGL_J2234.2-4156_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/363078/ltcube_648086401_648345601_4FGL_J2234.2-4156_daily_bin1577.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/363078/ft2_4FGL_J2234.2-4156_daily_bin1577.fits
.....................!
real 11.81
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363078/ft1_filtered_4FGL_J2234.2-4156_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/363078/ft2_4FGL_J2234.2-4156_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/363078/ltcube_648086401_648345601_4FGL_J2234.2-4156_daily_bin1577.fits outfile=/scratch/kocevski/363078/expmap_648086401_648345601_4FGL_J2234.2-4156_daily_bin1577.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/363078/ltcube_648086401_648345601_4FGL_J2234.2-4156_daily_bin1577.fits
.....................!
real 192.18
user 187.05
sys 4.73

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/363078/ft1_filtered_4FGL_J2234.2-4156_daily_bin1577.fits scfile=/scratch/kocevski/363078/ft2_4FGL_J2234.2-4156_daily_bin1577.fits outfile=/scratch/kocevski/363078/cmap_648086401_648345601_4FGL_J2234.2-4156_daily_bin1577.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/363078/ft1_filtered_4FGL_J2234.2-4156_daily_bin1577.fits scfile=/scratch/kocevski/363078/ft2_4FGL_J2234.2-4156_daily_bin1577.fits outfile=/scratch/kocevski/363078/cmap_HighResolution_648086401_648345601_4FGL_J2234.2-4156_daily_bin1577.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/363078/ft1_filtered_4FGL_J2234.2-4156_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/363078/ft2_4FGL_J2234.2-4156_daily_bin1577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363078/Model_4FGL_J2234.2-4156_daily_bin1577.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/363078/ft1_filtered_4FGL_J2234.2-4156_daily_bin1577.fits.....................!
real 35.67
user 34.30
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.293       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7536       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5583       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.898       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .46239E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .77481E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.321       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.556       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12168E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4802       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.574       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .26753E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8454       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.9114       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.978       1.0000         .10000E-03   10000.    
    29 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.9866       1.0000         .10000E-03   10000.    
    31 'norm      '    .13491E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .75691       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .84035       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4176.149     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     3250 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.294        5.4481        .40287E-06   -.25617E-02
   2  norm          3.7531        3.5478        .63989E-07    .52792E-04
   3  Prefactor     3.5559        1.0399       -.16240E-07    .42586E-04
   4  Prefactor     .10000E-03    8.1499        .68314E-06** at limit **
   5  Prefactor     .10003E-03    34.525        .11994E-05** at limit **
   6  Prefactor     15.890        1.1973       -.11047E-07   -.38264E-04
   7  Prefactor     .25623E-03    121.98        .47196E-05** at limit **
   8  norm          .10000E-03    13.951        .89130E-06** at limit **
   9  Prefactor     .10000E-03    4.3220        .13053E-06** at limit **
  10  Prefactor     .10000E-03    2.0956       -.35273E-06** at limit **
  11  Prefactor     .10000E-03    10.808       -.76188E-06** at limit **
  12  Prefactor     .81193E-01    6.5824        .57734E-06    .82113E-03
  13  Prefactor     .10000E-03    11.369        .74246E-06** at limit **
  14  Prefactor     15.304        15.694       -.73823E-06   -.14435E-02
  15  Prefactor     .10000E-03    19.453        .84991E-06** at limit **
  16  Prefactor     16.552        2.5880       -.80110E-07   -.99221E-03
  17  Prefactor     .10002E-03    31.448        .10521E-05** at limit **
  18  Prefactor     .10188E-03    268.39       -.36142E-05** at limit **
  19  Prefactor     3.4814        4.3578       -.22566E-06   -.86933E-05
  20  Prefactor     28.574        1.6353       -.74339E-07    .11277E-02
  21  Prefactor     .10000E-03    15.061       -.86511E-06** at limit **
  22  Prefactor     .10000E-03    5.2297        .21064E-06** at limit **
  23  norm          .22658E-03    827.19        .12618E-04** at limit **
  24  norm          5.8456        1.8923        .12346E-06    .67587E-04
  25  norm          .10000E-03    1.5033        .58741E-07** at limit **
  26  norm          .10000E-03    6.7403       -.33715E-06** at limit **
  27  Prefactor     3.9123        4.8770        .46176E-06   -.80931E-04
  28  Prefactor     15.981        4.3636        .33387E-06   -.18051E-02
  29  norm          .10000E-03    2.5319       -.14400E-06** at limit **
  30  Prefactor     4.9893        1.7837        .59419E-07    .24985E-03
  31  norm          .10000E-03    6.0406       -.46674E-07** at limit **
  32  Normalizat    .75700        .19371        .21635E-05    .98412E-04
  33  Prefactor     .84040        .19062        .81634E-07    .95167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2942
  norm       = 3.75307
  Prefactor  = 3.55585
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 15.8903
  Prefactor  = 0.000256232
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.081193
  Prefactor  = 0.0001
  Prefactor  = 15.3039
  Prefactor  = 0.000100001
  Prefactor  = 16.552
  Prefactor  = 0.000100019
  Prefactor  = 0.000101884
  Prefactor  = 3.48139
  Prefactor  = 28.5741
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.000226579
  norm       = 5.84558
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.91227
  Prefactor  = 15.9808
  norm       = 0.0001
  Prefactor  = 4.98927
  norm       = 0.0001
  Normalizat = 0.757
  Prefactor  = 0.840397
 **********
 **   18 **HESSE 
 **********

 FCN=   4176.149     FROM HESSE     STATUS=OK           775 CALLS     4025 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.294        23.549        .25605E-02   -1.4926    
   2  norm          3.7531        3.5736        .52098E-02   -1.5320    
   3  Prefactor     3.5559        8.0595        .53565E-02   -1.5331    
   4  Prefactor     .10000E-03    8.0837        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    34.885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.890        10.800        .25113E-02   -1.4911    
   7  Prefactor     .25623E-03    484.62        .96541E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.688        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0253        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.823        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .81193E-01    2.9756        .65320E-01   -1.5651    
  13  Prefactor     .10000E-03    11.369        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.304        17.573        .25581E-02   -1.4925    
  15  Prefactor     .10000E-03    19.444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.552        14.250        .24609E-02   -1.4894    
  17  Prefactor     .10002E-03    31.661        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10188E-03    8.1397        .90838E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4814        4.3718        .54188E-02   -1.5335    
  20  Prefactor     28.574        23.808        .18737E-02   -1.4638    
  21  Prefactor     .10000E-03    15.078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .22658E-03    14.385        .91560E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8456        6.9252        .41527E-02   -1.5224    
  25  norm          .10000E-03    1.5029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.6834        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.9123        7.6368        .50999E-02   -1.5312    
  28  Prefactor     15.981        31.705        .25050E-02   -1.4908    
  29  norm          .10000E-03    2.4919        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.9893        17.887        .45022E-02   -1.5261    
  31  norm          .10000E-03    3.2852        .42407E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .75700        .17766        .43045E-01   -1.0168    
  33  Prefactor     .84040        .16421        .44240E-01   -.98256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16722e-07
Minuit parameter uncertainties:
  1  23.563
  2  3.57385
  3  8.06198
  4  1.1454e-05
  5  0.00215887
  6  10.8014
  7  0.554868
  8  0.000295373
  9  1.61037e-06
  10  3.1645e-06
  11  4.16416e-05
  12  0.982508
  13  8.65744e-05
  14  17.5793
  15  0.00021294
  16  14.2528
  17  0.00154796
  18  0.00783224
  19  4.37218
  20  23.8162
  21  0.000343084
  22  2.85424e-06
  23  0.0853624
  24  6.92618
  25  4.35721e-07
  26  4.70767e-06
  27  7.63872
  28  31.7382
  29  1.45452e-06
  30  17.906
  31  6.11185e-07
  32  0.1778
  33  0.164304
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.164e-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:  8.404e-01  1.643e-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:  7.570e-01  1.778e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363078/likelihoodResults_648086401_648345601_4FGL_J2234.2-4156_daily_bin1577.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) = 4176.14988628
delta logL = -0.000437389503531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4176.14944903
delta logL = -1.37828465085e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9603       1.0000          .0000       10.000    
     3 'Normalizat'    .75702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84037       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=   4176.149     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10171E-03    74.685        .18142E-02** at limit **
   2  Index         1.9012        7.3892        .50000        .19724E-04
   3  Normalizat    .75700        .10507E-01    .22626E-03   -.84916E-05
   4  Prefactor     .84040        .10366E-01    .21138E-03   -.28935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101711
  Index      = 1.90121
  Normalizat = 0.757
  Prefactor  = 0.840397
 **********
 **   18 **HESSE 
 **********

 FCN=   4176.149     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10171E-03    320.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9012        5.1460        .50000       -.66843    
   3  Normalizat    .75700        .22338E-01    .90504E-05   -1.0168    
   4  Prefactor     .84040        .22039E-01    .84553E-05   -.98256    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50898e-08
Minuit parameter uncertainties:
  1  0.0470684
  2  401.846
  3  0.0223387
  4  0.0220393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363078': 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) = 4176.14944846
delta logL = 4.31417902291e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.017e-04  4.707e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.901e+00  4.018e+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:  8.404e-01  2.204e-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:  7.570e-01  2.234e-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/363078/cmap_HighResolution_648086401_648345601_4FGL_J2234.2-4156_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-03', job_status='DONE', photon_flux_upper_limit='3.38e-08', time_completed='2021-09-28 15:08:18.752964', job_id='363078', GAL2='0.84', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632866898.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1577' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:08:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 363078: <4FGL_J2234.2-4156_daily_bin1577> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1577> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:55:38 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:55:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:55:39 2021
Terminated at Tue Sep 28 15:08:19 2021
Results reported at Tue Sep 28 15:08:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1577 338.568 -41.9411 648086401 648345601 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 :                                   660.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

