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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1502
RA = 338.568, Dec = -41.9411
tmin = 628646401, tmax = 628905601
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='362960', job_status='RUN', time_executed='2021-09-28 14:58:10.312155', time_epoch_executed='1632866290.31' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362960/ft1_4FGL_J2234.2-4156_daily_bin1502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362960/ft2_4FGL_J2234.2-4156_daily_bin1502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362960/ft1_4FGL_J2234.2-4156_daily_bin1502.fits outfile=/scratch/kocevski/362960/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1502.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=628646401.0 tmax=628905601.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.55
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362960/ft1_filtered_4FGL_J2234.2-4156_daily_bin1502.fits" evtable="EVENTS" scfile=/scratch/kocevski/362960/ft2_4FGL_J2234.2-4156_daily_bin1502.fits sctable="SC_DATA" outfile=/scratch/kocevski/362960/ltcube_628646401_628905601_4FGL_J2234.2-4156_daily_bin1502.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/362960/ft2_4FGL_J2234.2-4156_daily_bin1502.fits
.....................!
real 11.88
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362960/ft1_filtered_4FGL_J2234.2-4156_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/362960/ft2_4FGL_J2234.2-4156_daily_bin1502.fits sctable="SC_DATA" expcube=/scratch/kocevski/362960/ltcube_628646401_628905601_4FGL_J2234.2-4156_daily_bin1502.fits outfile=/scratch/kocevski/362960/expmap_628646401_628905601_4FGL_J2234.2-4156_daily_bin1502.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/362960/ltcube_628646401_628905601_4FGL_J2234.2-4156_daily_bin1502.fits
.....................!
real 190.84
user 185.77
sys 4.71

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/362960/ft1_filtered_4FGL_J2234.2-4156_daily_bin1502.fits scfile=/scratch/kocevski/362960/ft2_4FGL_J2234.2-4156_daily_bin1502.fits outfile=/scratch/kocevski/362960/cmap_628646401_628905601_4FGL_J2234.2-4156_daily_bin1502.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362960/ft1_filtered_4FGL_J2234.2-4156_daily_bin1502.fits scfile=/scratch/kocevski/362960/ft2_4FGL_J2234.2-4156_daily_bin1502.fits outfile=/scratch/kocevski/362960/cmap_HighResolution_628646401_628905601_4FGL_J2234.2-4156_daily_bin1502.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362960/ft1_filtered_4FGL_J2234.2-4156_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/362960/ft2_4FGL_J2234.2-4156_daily_bin1502.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362960/Model_4FGL_J2234.2-4156_daily_bin1502.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/362960/ft1_filtered_4FGL_J2234.2-4156_daily_bin1502.fits.....................!
real 36.11
user 34.78
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.290       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5842       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3621       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2986       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7685       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.945       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.843       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.217       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0861       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12350E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .48435       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    64.253       1.0000         .10000E-03   10000.    
    29 'norm      '    .65809       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    1.5474       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96102       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .89037       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=   4254.534     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     3843 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.299        8.7659        .24666E-05   -.94629E-02
   2  norm          .10000E-03    1.1781       -.16849E-05** at limit **
   3  Prefactor     9.5803        1.0462        .27824E-06    .24519E-03
   4  Prefactor     .10000E-03    3.8366        .59277E-06** at limit **
   5  Prefactor     3.3096        3.3784        .52705E-05   -.38646E-04
   6  Prefactor     3.3602        1.0482        .56508E-06    .14963E-03
   7  Prefactor     .10067E-03    186.15       -.72405E-05** at limit **
   8  norm          .10000E-03    2.5360        .19447E-06** at limit **
   9  Prefactor     .10000E-03    3.5579        .24897E-05** at limit **
  10  Prefactor     2.2979        3.6354       -.39992E-05   -.68453E-04
  11  Prefactor     .10003E-03    19.553        .29984E-04** at limit **
  12  Prefactor     3.7682        5.6040       -.53576E-06   -.10166E-02
  13  Prefactor     15.949        1.1972        .52696E-06   -.25393E-04
  14  Prefactor     19.815        4.5273       -.98564E-06   -.27540E-02
  15  Prefactor     .10000E-03    14.491        .16152E-05** at limit **
  16  Prefactor     11.216        1.0379        .24370E-06   -.49703E-04
  17  Prefactor     .10011E-03    35.685        .12547E-04** at limit **
  18  Prefactor     5.0761        1.5329        .90856E-06   -.56532E-04
  19  Prefactor     .10000E-03    2.6329       -.10971E-06** at limit **
  20  Prefactor     .10000E-03    10.060       -.26121E-05** at limit **
  21  Prefactor     .10015E-03    44.380       -.16903E-04** at limit **
  22  Prefactor     .10004E-03    22.619       -.46609E-04** at limit **
  23  norm          .49219        .95728       -.23203E-05    .44654E-04
  24  norm          .10000E-03    2.7815        .28286E-05** at limit **
  25  norm          .10000E-03    2.5194        .12411E-06** at limit **
  26  norm          .10000E-03    11.510        .14287E-05** at limit **
  27  Prefactor     .10000E-03    7.3317        .18566E-06** at limit **
  28  Prefactor     64.453        66.399        .23899E-04   -.39418E-02
  29  norm          .61798        13.885       -.29285E-04   -.20330E-02
  30  Prefactor     .10000E-03    16.261       -.12619E-04** at limit **
  31  norm          1.5579        3.9158        .35627E-05    .14706E-02
  32  Normalizat    .96024        .24179        .67517E-05   -.12698E-05
  33  Prefactor     .89125        .22335       -.83974E-05   -.98208E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2988
  norm       = 0.0001
  Prefactor  = 9.58031
  Prefactor  = 0.0001
  Prefactor  = 3.30964
  Prefactor  = 3.36018
  Prefactor  = 0.000100674
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29792
  Prefactor  = 0.000100028
  Prefactor  = 3.76822
  Prefactor  = 15.9488
  Prefactor  = 19.8145
  Prefactor  = 0.0001
  Prefactor  = 11.2163
  Prefactor  = 0.000100106
  Prefactor  = 5.07606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100147
  Prefactor  = 0.000100044
  norm       = 0.492187
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 64.4527
  norm       = 0.617984
  Prefactor  = 0.000100002
  norm       = 1.55794
  Normalizat = 0.960238
  Prefactor  = 0.89125
 **********
 **   18 **HESSE 
 **********

 FCN=   4254.534     FROM HESSE     STATUS=OK           761 CALLS     4604 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.299        21.425        .26489E-02   -1.4952    
   2  norm          .10000E-03    1.1768        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5803        9.2381        .32361E-02   -1.5089    
   4  Prefactor     .10000E-03    3.8292        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3096        175.89        .55732E-02   -1.5344    
   6  Prefactor     3.3602        8.9314        .55175E-02   -1.5341    
   7  Prefactor     .10067E-03    189.97        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5384        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2979        3.6648        .67673E-02   -1.5405    
  11  Prefactor     .10003E-03    20.423        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7682        5.7551        .51991E-02   -1.5320    
  13  Prefactor     15.949        18.295        .25076E-02   -1.4909    
  14  Prefactor     19.815        35.640        .22478E-02   -1.4817    
  15  Prefactor     .10000E-03    14.537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.216        11.079        .29905E-02   -1.5038    
  17  Prefactor     .10011E-03    36.247        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0761        14.888        .44571E-02   -1.5257    
  19  Prefactor     .10000E-03    2.6301        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10015E-03    45.079        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10004E-03    22.890        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .49219        9.3765        .11207       -1.5568    
  24  norm          .10000E-03    2.7793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.5159        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    11.318        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.3239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     64.453        88.151        .12516E-02   -1.4101    
  29  norm          .61798        18.762        .43969E-01   -1.5551    
  30  Prefactor     .10000E-03    16.365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          1.5579        5.1046        .85629E-02   -1.5458    
  32  Normalizat    .96024        .21649        .45677E-01   -.94375    
  33  Prefactor     .89125        .19119        .44882E-01   -.96448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95192e-07
Minuit parameter uncertainties:
  1  21.4369
  2  5.45686e-07
  3  9.23952
  4  6.08816e-07
  5  48.4054
  6  8.93491
  7  0.0226955
  8  2.31679e-07
  9  2.13457e-06
  10  3.66518
  11  0.0015083
  12  5.75596
  13  18.3016
  14  35.6785
  15  2.67055e-05
  16  11.0809
  17  0.00392139
  18  14.8987
  19  3.24346e-08
  20  1.57076e-05
  21  0.00515151
  22  0.00200741
  23  4.29684
  24  2.06035e-06
  25  2.27168e-07
  26  3.0184e-05
  27  0.000303659
  28  88.3306
  29  6.81195
  30  0.000316413
  31  5.10599
  32  0.216684
  33  0.191332
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.508e-03  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.912e-01  1.913e-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:  9.602e-01  2.167e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362960/likelihoodResults_628646401_628905601_4FGL_J2234.2-4156_daily_bin1502.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) = 4254.53411712
delta logL = -0.000232996037084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4254.53388482
delta logL = -7.03674231772e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1800       1.0000          .0000       10.000    
     3 'Normalizat'    .96024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89125       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=   4254.534     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      264 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10125E-03    73.995        .18142E-02** at limit **
   2  Index         2.1241        7.3500        .50000        .17154E-04
   3  Normalizat    .96024        .10361E-01    .24227E-03   -.13501E-03
   4  Prefactor     .89125        .97845E-02    .23533E-03   -.13701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101252
  Index      = 2.12406
  Normalizat = 0.960238
  Prefactor  = 0.89125
 **********
 **   18 **HESSE 
 **********

 FCN=   4254.534     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      293 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10125E-03    326.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1241        8.1526        .50000       -.61283    
   3  Normalizat    .96024        .22204E-01    .96907E-05   -.94375    
   4  Prefactor     .89125        .20969E-01    .94131E-05   -.96448    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.20773e-09
Minuit parameter uncertainties:
  1  0.0406596
  2  296.122
  3  0.0222045
  4  0.0209692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362960': 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) = 4254.53388461
delta logL = -4.85456439492e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.013e-04  4.066e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.124e+00  2.961e+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.912e-01  2.097e-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:  9.602e-01  2.220e-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/362960/cmap_HighResolution_628646401_628905601_4FGL_J2234.2-4156_daily_bin1502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-09-28 15:09:41.147457', job_id='362960', GAL2='0.89', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632866981.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-4.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1502' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:09:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 362960: <4FGL_J2234.2-4156_daily_bin1502> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1502 338.568 -41.9411 628646401 628905601 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 :                                   688.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

