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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin682
RA = 338.568, Dec = -41.9411
tmin = 416102401, tmax = 416361601
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='358618', job_status='RUN', time_executed='2021-09-28 14:43:02.520140', time_epoch_executed='1632865382.52' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358618

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358618/ft1_4FGL_J2234.2-4156_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358618/ft2_4FGL_J2234.2-4156_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358618/ft1_4FGL_J2234.2-4156_daily_bin682.fits outfile=/scratch/kocevski/358618/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin682.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=416102401.0 tmax=416361601.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 6.45
user 6.17
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358618/ft2_4FGL_J2234.2-4156_daily_bin682.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/358618/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin682.fits evtable="EVENTS" outfile="/scratch/kocevski/358618/ft1_filtered_4FGL_J2234.2-4156_daily_bin682.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/358618/ft1_filtered_4FGL_J2234.2-4156_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/358618/ft2_4FGL_J2234.2-4156_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/358618/ltcube_416102401_416361601_4FGL_J2234.2-4156_daily_bin682.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/358618/ft2_4FGL_J2234.2-4156_daily_bin682.fits
.....................!
real 11.75
user 11.43
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358618/ft1_filtered_4FGL_J2234.2-4156_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/358618/ft2_4FGL_J2234.2-4156_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/358618/ltcube_416102401_416361601_4FGL_J2234.2-4156_daily_bin682.fits outfile=/scratch/kocevski/358618/expmap_416102401_416361601_4FGL_J2234.2-4156_daily_bin682.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/358618/ltcube_416102401_416361601_4FGL_J2234.2-4156_daily_bin682.fits
.....................!
real 198.88
user 194.45
sys 4.05

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/358618/ft1_filtered_4FGL_J2234.2-4156_daily_bin682.fits scfile=/scratch/kocevski/358618/ft2_4FGL_J2234.2-4156_daily_bin682.fits outfile=/scratch/kocevski/358618/cmap_416102401_416361601_4FGL_J2234.2-4156_daily_bin682.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.40
sys 0.12

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358618/ft1_filtered_4FGL_J2234.2-4156_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/358618/ft2_4FGL_J2234.2-4156_daily_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358618/Model_4FGL_J2234.2-4156_daily_bin682.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/358618/ft1_filtered_4FGL_J2234.2-4156_daily_bin682.fits.....................!
real 34.83
user 33.55
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11329E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.142       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14439E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.629       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44208       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.274       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.705       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.115       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.934       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31925E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0191       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.923       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.740       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.971       1.0000         .10000E-03   10000.    
    23 'norm      '    .81758       1.0000         .10000E-03   10000.    
    24 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8159       1.0000         .10000E-03   10000.    
    28 'Prefactor '    38.618       1.0000         .10000E-03   10000.    
    29 'norm      '    2.0128       1.0000         .10000E-03   10000.    
    30 'Prefactor '    23.456       1.0000         .10000E-03   10000.    
    31 'norm      '    3.7933       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .49168       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0953       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=   4004.041     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     4563 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.386        .53054E-06** at limit **
   2  norm          11.140        5.6038        .67374E-07   -.23273E-04
   3  Prefactor     22.157        13.047        .15403E-06   -.10000E-03
   4  Prefactor     .10000E-03    12.639        .50387E-06** at limit **
   5  Prefactor     .10000E-03    7.9408        .78027E-07** at limit **
   6  Prefactor     12.631        8.0089        .24936E-06    .80273E-04
   7  Prefactor     .10000E-03    39.467        .50796E-06** at limit **
   8  norm          .10000E-03    7.8311        .18088E-06** at limit **
   9  Prefactor     .44765        8.3400        .32775E-05   -.30424E-03
  10  Prefactor     .10000E-03    1.8024        .34885E-06** at limit **
  11  Prefactor     38.295        60.016        .50943E-06    .37042E-06
  12  Prefactor     15.708        7.2488        .83319E-07   -.98883E-05
  13  Prefactor     21.109        21.145       -.30889E-06   -.10406E-03
  14  Prefactor     46.547        32.770       -.24050E-06   -.11255E-03
  15  Prefactor     19.927        23.771        .11799E-06   -.88143E-05
  16  Prefactor     .10000E-03    5.5649       -.21799E-07** at limit **
  17  Prefactor     .10000E-03    33.925       -.29196E-06** at limit **
  18  Prefactor     .10010E-03    12.538       -.40139E-05** at limit **
  19  Prefactor     5.0175        7.9048        .35974E-06    .52250E-04
  20  Prefactor     38.857        39.606       -.20025E-06   -.12462E-03
  21  Prefactor     32.735        36.981       -.84195E-07   -.12096E-04
  22  Prefactor     26.948        26.904       -.11368E-06   -.57094E-04
  23  norm          .81796        22.635        .85576E-05    .25073E-03
  24  norm          .10000E-03    2.9224       -.59106E-07** at limit **
  25  norm          .10000E-03    2.1589       -.14735E-06** at limit **
  26  norm          .10000E-03    15.864        .47371E-06** at limit **
  27  Prefactor     2.8117        8.2716        .10011E-05    .95407E-04
  28  Prefactor     38.581        54.829        .11428E-06   -.24446E-04
  29  norm          2.0149        5.2351       -.61029E-07   -.32916E-04
  30  Prefactor     23.456        22.188       -.63205E-06   -.71492E-04
  31  norm          3.7896        8.7770        .37858E-06    .64695E-04
  32  Normalizat    .49192        .23839        .19523E-05   -.14913E-03
  33  Prefactor     1.0949        .21284       -.29105E-05   -.27801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.1396
  Prefactor  = 22.1566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6311
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.447654
  Prefactor  = 0.0001
  Prefactor  = 38.2947
  Prefactor  = 15.7083
  Prefactor  = 21.1094
  Prefactor  = 46.5466
  Prefactor  = 19.927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100099
  Prefactor  = 5.01754
  Prefactor  = 38.857
  Prefactor  = 32.7349
  Prefactor  = 26.9484
  norm       = 0.817961
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.81169
  Prefactor  = 38.5805
  norm       = 2.01487
  Prefactor  = 23.4561
  norm       = 3.78955
  Normalizat = 0.491923
  Prefactor  = 1.09491
 **********
 **   18 **HESSE 
 **********

 FCN=   4004.041     FROM HESSE     STATUS=OK           699 CALLS     5262 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.140        5.6021        .10263E-03   -1.5040    
   3  Prefactor     22.157        13.009        .85119E-04   -1.4766    
   4  Prefactor     .10000E-03    12.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9419        .17417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.631        8.0094        .11272E-03   -1.4997    
   7  Prefactor     .10000E-03    39.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.9373        .17297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44765        15.520        .30513E-02   -1.5574    
  10  Prefactor     .10000E-03    1.8251        .83060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.295        59.940        .64785E-04   -1.4470    
  12  Prefactor     15.708        7.2464        .10107E-03   -1.4915    
  13  Prefactor     21.109        21.102        .87166E-04   -1.4789    
  14  Prefactor     46.547        32.812        .58760E-04   -1.4342    
  15  Prefactor     19.927        23.764        .89709E-04   -1.4815    
  16  Prefactor     .10000E-03    5.5766        .14570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10010E-03    29.990        .34897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0175        7.9022        .17949E-03   -1.5260    
  20  Prefactor     38.857        39.644        .32122E-03   -1.4460    
  21  Prefactor     32.735        36.986        .70030E-04   -1.4563    
  22  Prefactor     26.948        26.903        .77138E-04   -1.4669    
  23  norm          .81796        24.985        .50021E-03   -1.5527    
  24  norm          .10000E-03    2.9237        .10565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.1599        .90797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    16.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.8117        8.1815        .24239E-03   -1.5373    
  28  Prefactor     38.581        54.245        .64497E-04   -1.4465    
  29  norm          2.0149        5.0685        .19210E-03   -1.5424    
  30  Prefactor     23.456        22.032        .82707E-04   -1.4739    
  31  norm          3.7896        8.6131        .20726E-03   -1.5319    
  32  Normalizat    .49192        .26338        .31402E-03   -1.1279    
  33  Prefactor     1.0949        .23851        .21251E-03   -.89629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45897e-09
Minuit parameter uncertainties:
  1  7.43194e-05
  2  5.60239
  3  13.0108
  4  6.81479e-05
  5  7.53836e-06
  6  8.01004
  7  0.000288614
  8  2.62741e-05
  9  5.27247
  10  1.71516e-05
  11  60.0344
  12  7.24682
  13  21.1091
  14  32.825
  15  23.7749
  16  3.95197e-07
  17  0.000141718
  18  0.00344673
  19  7.90384
  20  39.6705
  21  37.0122
  22  26.9148
  23  9.04505
  24  3.98966e-06
  25  7.17175e-06
  26  8.82652e-05
  27  8.18473
  28  54.3144
  29  5.06961
  30  22.0392
  31  8.61589
  32  0.264045
  33  0.238745
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.829e+01  6.003e+01  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.095e+00  2.387e-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:  4.919e-01  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 9.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358618/likelihoodResults_416102401_416361601_4FGL_J2234.2-4156_daily_bin682.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): 0
logL (Free Index) = 4001.86772446
delta logL = 2.1730171736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4001.3665686
delta logL = 2.67417303255

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     '    7.1589       1.0000          .0000       10.000    
     3 'Normalizat'    .32084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2220       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=   4001.367     FROM MIGRAD    STATUS=CONVERGED    288 CALLS      669 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .97156E-04    .18142E-03** at limit **
   2  Index         7.1587        .25207        .52891E-01   -.10402E-03
   3  Normalizat    .32124        .24295        .31092E-02   -.50586E-04
   4  Prefactor     1.2217        .23828        .21203E-02   -.12933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.15873
  Normalizat = 0.321243
  Prefactor  = 1.22167
 **********
 **   18 **HESSE 
 **********

 FCN=   4001.367     FROM HESSE     STATUS=OK            33 CALLS      702 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .74204E-03    .78335E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.1587        .18137        .22420E-02   -9.8712    
   3  Normalizat    .32124        .24450        .12437E-03   -1.2159    
   4  Prefactor     1.2217        .23948        .84812E-04   -.85667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72284e-10
Minuit parameter uncertainties:
  1  1.49686e-08
  2  0.181417
  3  0.245315
  4  0.239698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358618': 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): 0
logL (Free Index) = 4001.3665633
delta logL = 2.67417833471

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.497e-08  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  7.159e+00  1.814e-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:  1.222e+00  2.397e-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:  3.212e-01  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.47
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 7.16 +/- 0.18
Photon Flux (Free Index): 1.18e-07 +/- 6.34e-08
Energy Flux (Free Index): 1.40e-05 +/- 7.48e-06

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/358618/cmap_HighResolution_416102401_416361601_4FGL_J2234.2-4156_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='2.67e+00', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-28 14:55:40.132298', photon_index_error2='0.18', photon_index2='7.16', ts='0.57', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='9.98e-08', energy_flux_error2='7.48e-06', EG='0.49', time_epoch_completed='1632866140.13', return_code='0', job_id='358618', GAL2='1.22', EG2='0.32', return_code2='0', photon_flux_error2='6.34e-08', ts2='6.47', photon_index='1.99' WHERE bin_id='682' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:55:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 358618: <4FGL_J2234.2-4156_daily_bin682> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin682> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 14:40:19 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:40:21 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:40:21 2021
Terminated at Tue Sep 28 14:55:40 2021
Results reported at Tue Sep 28 14:55:40 2021

Your job looked like:

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

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

