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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1361
RA = 338.568, Dec = -41.9411
tmin = 592099201, tmax = 592358401
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='361698', job_status='RUN', time_executed='2021-09-28 14:51:01.534423', time_epoch_executed='1632865861.53' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361698

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361698/ft1_4FGL_J2234.2-4156_daily_bin1361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361698/ft2_4FGL_J2234.2-4156_daily_bin1361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361698/ft1_4FGL_J2234.2-4156_daily_bin1361.fits outfile=/scratch/kocevski/361698/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1361.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=592099201.0 tmax=592358401.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.48
user 3.23
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361698/ft2_4FGL_J2234.2-4156_daily_bin1361.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/361698/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1361.fits evtable="EVENTS" outfile="/scratch/kocevski/361698/ft1_filtered_4FGL_J2234.2-4156_daily_bin1361.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361698/ft1_filtered_4FGL_J2234.2-4156_daily_bin1361.fits" evtable="EVENTS" scfile=/scratch/kocevski/361698/ft2_4FGL_J2234.2-4156_daily_bin1361.fits sctable="SC_DATA" outfile=/scratch/kocevski/361698/ltcube_592099201_592358401_4FGL_J2234.2-4156_daily_bin1361.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/361698/ft2_4FGL_J2234.2-4156_daily_bin1361.fits
.....................!
real 11.86
user 11.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361698/ft1_filtered_4FGL_J2234.2-4156_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/361698/ft2_4FGL_J2234.2-4156_daily_bin1361.fits sctable="SC_DATA" expcube=/scratch/kocevski/361698/ltcube_592099201_592358401_4FGL_J2234.2-4156_daily_bin1361.fits outfile=/scratch/kocevski/361698/expmap_592099201_592358401_4FGL_J2234.2-4156_daily_bin1361.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/361698/ltcube_592099201_592358401_4FGL_J2234.2-4156_daily_bin1361.fits
.....................!
real 190.95
user 184.92
sys 5.46

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/361698/ft1_filtered_4FGL_J2234.2-4156_daily_bin1361.fits scfile=/scratch/kocevski/361698/ft2_4FGL_J2234.2-4156_daily_bin1361.fits outfile=/scratch/kocevski/361698/cmap_592099201_592358401_4FGL_J2234.2-4156_daily_bin1361.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361698/ft1_filtered_4FGL_J2234.2-4156_daily_bin1361.fits scfile=/scratch/kocevski/361698/ft2_4FGL_J2234.2-4156_daily_bin1361.fits outfile=/scratch/kocevski/361698/cmap_HighResolution_592099201_592358401_4FGL_J2234.2-4156_daily_bin1361.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63457       1.0000         .10000E-03   10000.    
     2 'norm      '    20.422       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4083       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23229E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.107       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6489       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.508       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.465       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5454       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0042       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.2760       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      '    1.5652       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.4631       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.6681       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.9654       1.0000         .10000E-03   10000.    
    31 'norm      '    .64121       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .63490       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2838       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=   4540.351     FROM MIGRAD    STATUS=CONVERGED   1602 CALLS     5272 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46444        75.531        .13271        .90389E-04
   2  norm          20.432        7.9146        .88631E-04    .26816E-03
   3  Prefactor     .10000E-03    9.0151        .18142E-02** at limit **
   4  Prefactor     1.4057        21.784        .36520E-03   -.60050E-04
   5  Prefactor     .10000E-03    288.02        .36285E-03** at limit **
   6  Prefactor     .10001E-03    12.275        .18142E-02** at limit **
   7  Prefactor     .10000E-03    56.137        .18142E-02** at limit **
   8  norm          .10000E-03    5.0426        .14720E-02** at limit **
   9  Prefactor     .10000E-03    5.1458        .14886E-02** at limit **
  10  Prefactor     .10000E-03    1.1740        .71163E-03** at limit **
  11  Prefactor     26.108        25.836        .78402E-04    .58002E-05
  12  Prefactor     .10000E-03    2.1176        .95506E-03** at limit **
  13  Prefactor     .10000E-03    20.380        .18142E-02** at limit **
  14  Prefactor     2.6480        36.396        .25048E-03   -.20152E-04
  15  Prefactor     .10000E-03    24.901        .18142E-02** at limit **
  16  Prefactor     12.506        12.371        .11326E-03   -.11643E-04
  17  Prefactor     .10000E-03    36.903        .18142E-02** at limit **
  18  Prefactor     21.460        20.407        .86453E-04    .16161E-03
  19  Prefactor     .10000E-03    1.6499        .84509E-03** at limit **
  20  Prefactor     3.5428        44.732        .21467E-03   -.19595E-05
  21  Prefactor     2.0068        697.85        .29251E-03   -.65684E-05
  22  Prefactor     .10000E-03    4.5626        .14053E-02** at limit **
  23  norm          7.2752        9.7757        .14870E-03    .25842E-04
  24  norm          .10000E-03    2.1080        .95542E-03** at limit **
  25  norm          .10000E-03    2.4253        .10236E-02** at limit **
  26  norm          1.5625        19.140        .16999E-02    .88997E-04
  27  Prefactor     7.4604        7.4754        .14681E-03    .10764E-04
  28  Prefactor     .10000E-03    22.344        .18142E-02** at limit **
  29  norm          2.6682        4.2999        .16206E-03    .49673E-03
  30  Prefactor     6.9724        19.044        .15201E-03   -.44276E-04
  31  norm          .63982        6.2074        .30683E-03    .34273E-04
  32  Normalizat    .63507        .24251        .29859E-03    .25160E-03
  33  Prefactor     1.2838        .22820        .21311E-03   -.24005E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.464445
  norm       = 20.4316
  Prefactor  = 0.0001
  Prefactor  = 1.40571
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.64799
  Prefactor  = 0.0001
  Prefactor  = 12.5057
  Prefactor  = 0.0001
  Prefactor  = 21.4596
  Prefactor  = 0.0001
  Prefactor  = 3.54281
  Prefactor  = 2.00681
  Prefactor  = 0.0001
  norm       = 7.27522
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.56255
  Prefactor  = 7.46038
  Prefactor  = 0.000100002
  norm       = 2.66821
  Prefactor  = 6.97236
  norm       = 0.639823
  Normalizat = 0.635068
  Prefactor  = 1.28382
 **********
 **   18 **HESSE 
 **********

 FCN=   4540.351     FROM HESSE     STATUS=OK           673 CALLS     5945 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46444        70.914        .13777       -1.5572    
   2  norm          20.432        7.8982        .17726E-04   -1.4804    
   3  Prefactor     .10000E-03    9.0168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4057        21.759        .14608E-04   -1.5471    
   5  Prefactor     .10000E-03    288.04        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    12.283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.0437        .29439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1465        .29773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1741        .14233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.108        25.836        .31361E-05   -1.4686    
  12  Prefactor     .10000E-03    2.1177        .19101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6480        36.386        .10019E-04   -1.5383    
  15  Prefactor     .10000E-03    24.905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.506        12.370        .45306E-05   -1.5001    
  17  Prefactor     .10000E-03    36.903        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.460        20.402        .34581E-05   -1.4781    
  19  Prefactor     .10000E-03    1.6499        .16902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.5428        44.724        .85867E-05   -1.5331    
  21  Prefactor     2.0068        699.09        .11700E-04   -1.5425    
  22  Prefactor     .10000E-03    4.5627        .28106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.2752        9.7756        .59479E-05   -1.5168    
  24  norm          .10000E-03    2.1080        .19108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.4253        .20471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.5625        19.114        .67995E-04   -1.5458    
  27  Prefactor     7.4604        7.4734        .58723E-05   -1.5162    
  28  Prefactor     .10000E-03    22.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.6682        4.2956        .64825E-05   -1.5381    
  30  Prefactor     6.9724        19.038        .60803E-05   -1.5180    
  31  norm          .63982        6.1955        .12273E-04   -1.5548    
  32  Normalizat    .63507        .24264        .11944E-04   -1.0651    
  33  Prefactor     1.2838        .22839        .85246E-05   -.83789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9849e-09
Minuit parameter uncertainties:
  1  11.4905
  2  7.89862
  3  4.51206e-05
  4  11.0654
  5  0.00134959
  6  0.000552685
  7  0.000817346
  8  5.46811e-05
  9  9.04852e-05
  10  1.97835e-05
  11  25.8474
  12  3.99285e-05
  13  2.84094e-05
  14  19.6458
  15  0.000214939
  16  12.3724
  17  2.46906e-05
  18  20.4089
  19  8.37339e-06
  20  25.1983
  21  75.8194
  22  2.18075e-05
  23  9.77771
  24  1.6135e-06
  25  9.55616e-06
  26  10.9341
  27  7.47438
  28  0.000389303
  29  4.29614
  30  19.055
  31  3.98219
  32  0.24305
  33  0.228569
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  2.611e+01  2.585e+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.284e+00  2.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  6.351e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.96
Ra Dec: 338.568 -41.941
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.45e-08 +/- 1.44e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 1.01e-05

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) = 4539.37639313
delta logL = 0.974803336106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4539.34650452
delta logL = 1.00469194891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.794       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0918       1.0000          .0000       10.000    
     3 'Normalizat'    .64176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2822       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=   4539.347     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      248 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.833        38.451        .67938E-04   -.55155E-04
   2  Index         1.0928        .59895        .10670E-01   -.63282E-04
   3  Normalizat    .64168        .22764        .29706E-03   -.66375E-03
   4  Prefactor     1.2823        .22519        .21319E-03   -.79538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.8334
  Index      = 1.09279
  Normalizat = 0.641681
  Prefactor  = 1.2823
 **********
 **   18 **HESSE 
 **********

 FCN=   4539.347     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.833        38.901        .13588E-04   -1.4527    
   2  Index         1.0928        .60594        .21340E-02   -.89697    
   3  Normalizat    .64168        .22781        .59412E-04   -1.0624    
   4  Prefactor     1.2823        .22536        .42637E-04   -.83835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.06995e-10
Minuit parameter uncertainties:
  1  38.9292
  2  0.60982
  3  0.228147
  4  0.225532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361698': 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) = 4539.34650298
delta logL = 1.00469349272

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  3.483e+01  3.893e+01  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.093e+00  6.098e-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.282e+00  2.255e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  6.417e-01  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.96
Ra Dec: 338.568 -41.941
Photon Index (Free Index): 1.09 +/- 0.61
Photon Flux (Free Index): 5.67e-09 +/- 6.47e-09
Energy Flux (Free Index): 6.45e-05 +/- 9.69e-05

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/361698/cmap_HighResolution_592099201_592358401_4FGL_J2234.2-4156_daily_bin1361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-08', energy_flux2='6.45e-05', photon_flux_error='1.44e-08', dlogl='1.00e+00', energy_flux='1.02e-05', photon_flux2='5.67e-09', job_status='DONE', time_completed='2021-09-28 15:02:41.663819', photon_index_error2='0.61', photon_index2='1.09', ts='7.96', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='9.69e-05', EG='0.64', time_epoch_completed='1632866561.66', return_code='0', job_id='361698', GAL2='1.28', EG2='0.64', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='6.47e-09', ts2='9.96', photon_index='1.99' WHERE bin_id='1361' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:02:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 361698: <4FGL_J2234.2-4156_daily_bin1361> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1361> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:50:35 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:50:36 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:50:36 2021
Terminated at Tue Sep 28 15:02:42 2021
Results reported at Tue Sep 28 15:02:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1361 338.568 -41.9411 592099201 592358401 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 :                                   700.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

