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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1392
RA = 338.568, Dec = -41.9411
tmin = 600134401, tmax = 600393601
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='362787', job_status='RUN', time_executed='2021-09-28 14:55:34.664945', time_epoch_executed='1632866134.66' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362787/ft1_4FGL_J2234.2-4156_daily_bin1392.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362787/ft2_4FGL_J2234.2-4156_daily_bin1392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362787/ft1_4FGL_J2234.2-4156_daily_bin1392.fits outfile=/scratch/kocevski/362787/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1392.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=600134401.0 tmax=600393601.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.83
user 4.55
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362787/ft1_filtered_4FGL_J2234.2-4156_daily_bin1392.fits" evtable="EVENTS" scfile=/scratch/kocevski/362787/ft2_4FGL_J2234.2-4156_daily_bin1392.fits sctable="SC_DATA" outfile=/scratch/kocevski/362787/ltcube_600134401_600393601_4FGL_J2234.2-4156_daily_bin1392.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/362787/ft2_4FGL_J2234.2-4156_daily_bin1392.fits
.....................!
real 11.67
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362787/ft1_filtered_4FGL_J2234.2-4156_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/362787/ft2_4FGL_J2234.2-4156_daily_bin1392.fits sctable="SC_DATA" expcube=/scratch/kocevski/362787/ltcube_600134401_600393601_4FGL_J2234.2-4156_daily_bin1392.fits outfile=/scratch/kocevski/362787/expmap_600134401_600393601_4FGL_J2234.2-4156_daily_bin1392.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/362787/ltcube_600134401_600393601_4FGL_J2234.2-4156_daily_bin1392.fits
.....................!
real 190.99
user 185.71
sys 4.89

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/362787/ft1_filtered_4FGL_J2234.2-4156_daily_bin1392.fits scfile=/scratch/kocevski/362787/ft2_4FGL_J2234.2-4156_daily_bin1392.fits outfile=/scratch/kocevski/362787/cmap_600134401_600393601_4FGL_J2234.2-4156_daily_bin1392.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362787/ft1_filtered_4FGL_J2234.2-4156_daily_bin1392.fits scfile=/scratch/kocevski/362787/ft2_4FGL_J2234.2-4156_daily_bin1392.fits outfile=/scratch/kocevski/362787/cmap_HighResolution_600134401_600393601_4FGL_J2234.2-4156_daily_bin1392.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    29.579       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.141       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1833       1.0000         .10000E-03   10000.    
     5 'Prefactor '    187.21       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13745E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14451E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .74204E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3697       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.768       1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.133       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.111       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.434       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10331E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.2370       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    9.1715       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.6969       1.0000         .10000E-03   10000.    
    31 'norm      '    10.404       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .89490       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0800       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=   4657.124     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     4520 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.561       -.11899E-05** at limit **
   2  norm          29.578        8.9977       -.28362E-06   -.34524E-04
   3  Prefactor     16.144        14.156       -.19492E-05   -.77795E-04
   4  Prefactor     4.1803        11.574        .97131E-05   -.16125E-03
   5  Prefactor     187.17        70.791       -.11817E-05   -.46381E-03
   6  Prefactor     .10000E-03    7.1074       -.11027E-05** at limit **
   7  Prefactor     .10001E-03    99.287       -.30083E-05** at limit **
   8  norm          .10003E-03    7.3524       -.67544E-06** at limit **
   9  Prefactor     .10000E-03    6.1147        .48446E-06** at limit **
  10  Prefactor     6.3723        5.3661        .16242E-06   -.16139E-05
  11  Prefactor     .10000E-03    92.255       -.24445E-06** at limit **
  12  Prefactor     .10000E-03    1.9526        .38858E-07** at limit **
  13  Prefactor     .10000E-03    19.224        .12886E-05** at limit **
  14  Prefactor     40.784        30.531        .62182E-06    .13863E-03
  15  Prefactor     48.148        35.207        .75413E-06    .18063E-03
  16  Prefactor     .10000E-03    8.6565        .72945E-06** at limit **
  17  Prefactor     .10001E-03    76.323        .27397E-05** at limit **
  18  Prefactor     36.125        23.903        .42894E-06    .46306E-04
  19  Prefactor     .10000E-03    3.7347        .98630E-07** at limit **
  20  Prefactor     55.437        43.795        .18784E-06    .32128E-04
  21  Prefactor     .10000E-03    41.308        .96984E-06** at limit **
  22  Prefactor     .10000E-03    7.7346       -.38435E-08** at limit **
  23  norm          .10000E-03    5.8836       -.14434E-06** at limit **
  24  norm          .10000E-03    2.6248       -.15197E-07** at limit **
  25  norm          .10000E-03    4.3611        .16075E-07** at limit **
  26  norm          .10000E-03    11.801       -.23939E-06** at limit **
  27  Prefactor     7.2386        10.972        .25831E-05   -.90121E-04
  28  Prefactor     .10000E-03    23.385       -.29353E-06** at limit **
  29  norm          9.1717        7.1797        .76850E-07   -.91616E-05
  30  Prefactor     8.6925        25.758       -.30965E-05   -.13109E-04
  31  norm          10.404        8.2088        .34198E-07   -.26507E-05
  32  Normalizat    .89432        .25425       -.13821E-05    .59963E-05
  33  Prefactor     1.0806        .22039       -.40385E-07   -.22150E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 29.5783
  Prefactor  = 16.1443
  Prefactor  = 4.18026
  Prefactor  = 187.166
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 6.37234
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 40.7841
  Prefactor  = 48.1475
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 36.1253
  Prefactor  = 0.0001
  Prefactor  = 55.4369
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.23863
  Prefactor  = 0.0001
  norm       = 9.17172
  Prefactor  = 8.69251
  norm       = 10.4041
  Normalizat = 0.894316
  Prefactor  = 1.08061
 **********
 **   18 **HESSE 
 **********

 FCN=   4657.124     FROM HESSE     STATUS=OK           685 CALLS     5205 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          29.578        9.0020        .73668E-04   -1.4620    
   3  Prefactor     16.144        14.166        .99690E-04   -1.4904    
   4  Prefactor     4.1803        11.606        .98523E-03   -1.5299    
   5  Prefactor     187.17        70.885        .14756E-03   -1.2963    
   6  Prefactor     .10000E-03    7.1382        .17740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    99.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10003E-03    41.968        .35716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1577        .16480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3723        5.3751        .13712E-03   -1.5203    
  11  Prefactor     .10000E-03    92.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9558        .93114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.784        30.625        .62780E-04   -1.4430    
  15  Prefactor     48.148        35.250        .57798E-04   -1.4319    
  16  Prefactor     .10000E-03    8.6971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    76.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.125        24.105        .66691E-04   -1.4505    
  19  Prefactor     .10000E-03    3.7438        .12879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     55.437        43.795        .53876E-04   -1.4217    
  21  Prefactor     .10000E-03    41.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.7444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.8862        .16168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.6250        .10798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.3717        .13908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    11.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.2386        10.944        .74551E-03   -1.5170    
  28  Prefactor     .10000E-03    23.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          9.1717        7.1779        .13234E-03   -1.5102    
  30  Prefactor     8.6925        25.711        .13592E-03   -1.5118    
  31  norm          10.404        8.2061        .12422E-03   -1.5063    
  32  Normalizat    .89432        .30735        .30766E-03   -.96660    
  33  Prefactor     1.0806        .26571        .26060E-03   -.90089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18073e-09
Minuit parameter uncertainties:
  1  0.000568484
  2  9.00242
  3  14.1686
  4  11.6122
  5  70.9173
  6  4.01311e-05
  7  0.00235477
  8  0.00223587
  9  7.1663e-05
  10  5.3755
  11  0.000761882
  12  7.32174e-07
  13  0.000423499
  14  30.6369
  15  35.2649
  16  8.88351e-05
  17  0.0021365
  18  24.1115
  19  9.14909e-07
  20  43.8207
  21  0.00053789
  22  1.25055e-05
  23  3.76433e-05
  24  1.52784e-06
  25  9.55381e-07
  26  0.000106157
  27  10.947
  28  0.000155546
  29  7.17854
  30  25.7439
  31  8.20695
  32  0.307953
  33  0.266038
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.619e-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:  1.081e+00  2.660e-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:  8.943e-01  3.080e-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: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362787/likelihoodResults_600134401_600393601_4FGL_J2234.2-4156_daily_bin1392.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) = 4657.12392397
delta logL = -5.12947026436e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4657.12387485
delta logL = -2.17326396523e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49361E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0889       1.0000          .0000       10.000    
     3 'Normalizat'    .89431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0806       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=   4657.124     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    31.723        .10582E-01** at limit **
   2  Index         2.0885        5.0328        .50000        .89535E-06
   3  Normalizat    .89431        .34749E-02    .69538E-01   -.60335E-04
   4  Prefactor     1.0806        .32203E-02    .58932E-01    .16563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.08855
  Normalizat = 0.89431
  Prefactor  = 1.08062
 **********
 **   18 **HESSE 
 **********

 FCN=   4657.124     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      268 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    215.87        .21164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0885        5.0362        .50000       -.62154    
   3  Normalizat    .89431        .90520E-02    .30766E-03   -.96660    
   4  Prefactor     1.0806        .83959E-02    .26060E-03   -.90089    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.53717e-09
Minuit parameter uncertainties:
  1  0.00302468
  2  153.316
  3  0.00905201
  4  0.00839595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362787': 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) = 4657.12387268
delta logL = -1.16169758257e-08

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.025e-03  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.089e+00  1.533e+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:  1.081e+00  8.396e-03  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:  8.943e-01  9.052e-03  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/362787/cmap_HighResolution_600134401_600393601_4FGL_J2234.2-4156_daily_bin1392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-09-28 15:08:23.574965', job_id='362787', GAL2='1.08', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632866903.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-1.16e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1392' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:08:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 362787: <4FGL_J2234.2-4156_daily_bin1392> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1392 338.568 -41.9411 600134401 600393601 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

