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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1607
RA = 338.568, Dec = -41.9411
tmin = 655862401, tmax = 656121601
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='486295', job_status='RUN', time_executed='2021-12-08 08:42:22.087769', time_epoch_executed='1638981742.09' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486295

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486295/ft1_4FGL_J2234.2-4156_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486295/ft2_4FGL_J2234.2-4156_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486295/ft1_4FGL_J2234.2-4156_daily_bin1607.fits outfile=/scratch/kocevski/486295/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1607.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=655862401.0 tmax=656121601.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.58
user 4.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/486295/ft2_4FGL_J2234.2-4156_daily_bin1607.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/486295/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1607.fits evtable="EVENTS" outfile="/scratch/kocevski/486295/ft1_filtered_4FGL_J2234.2-4156_daily_bin1607.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486295/ft1_filtered_4FGL_J2234.2-4156_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/486295/ft2_4FGL_J2234.2-4156_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/486295/ltcube_655862401_656121601_4FGL_J2234.2-4156_daily_bin1607.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/486295/ft2_4FGL_J2234.2-4156_daily_bin1607.fits
.....................!
real 13.19
user 12.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486295/ft1_filtered_4FGL_J2234.2-4156_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/486295/ft2_4FGL_J2234.2-4156_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/486295/ltcube_655862401_656121601_4FGL_J2234.2-4156_daily_bin1607.fits outfile=/scratch/kocevski/486295/expmap_655862401_656121601_4FGL_J2234.2-4156_daily_bin1607.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/486295/ltcube_655862401_656121601_4FGL_J2234.2-4156_daily_bin1607.fits
.....................!
real 192.07
user 186.34
sys 4.90

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/486295/ft1_filtered_4FGL_J2234.2-4156_daily_bin1607.fits scfile=/scratch/kocevski/486295/ft2_4FGL_J2234.2-4156_daily_bin1607.fits outfile=/scratch/kocevski/486295/cmap_655862401_656121601_4FGL_J2234.2-4156_daily_bin1607.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.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486295/ft1_filtered_4FGL_J2234.2-4156_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/486295/ft2_4FGL_J2234.2-4156_daily_bin1607.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486295/Model_4FGL_J2234.2-4156_daily_bin1607.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/486295/ft1_filtered_4FGL_J2234.2-4156_daily_bin1607.fits.....................!
real 37.70
user 36.36
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.048       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15081E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28898E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.525       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8959       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.229       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2913       1.0000         .10000E-03   10000.    
    17 'Prefactor '    170.22       1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.406       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7871       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    16.421       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.6888       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.7201       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2257       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .89635       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=   4272.745     FROM MIGRAD    STATUS=CONVERGED   1585 CALLS     5276 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.024        48.181        .52656E-04    .25909E-05
   2  norm          .10000E-03    2.7774        .10607E-02** at limit **
   3  Prefactor     .10000E-03    100.59        .42371E-02** at limit **
   4  Prefactor     .10000E-03    17.576        .62848E-01** at limit **
   5  Prefactor     .10000E-03    12.722        .18142E-02** at limit **
   6  Prefactor     .10000E-03    3.8713        .12549E-02** at limit **
   7  Prefactor     62.653        101.69        .25374E-03   -.16354E-04
   8  norm          .10000E-03    4.2340        .13110E-02** at limit **
   9  Prefactor     .10000E-03    25.038        .36285E-03** at limit **
  10  Prefactor     3.8953        4.7815        .15034E-03    .62082E-04
  11  Prefactor     .10000E-03    25.745        .18142E-02** at limit **
  12  Prefactor     .10000E-03    5.4457        .14734E-02** at limit **
  13  Prefactor     .10000E-03    23.172        .18142E-02** at limit **
  14  Prefactor     19.229        34.618        .91337E-04    .23649E-05
  15  Prefactor     .10000E-03    11.427        .18142E-02** at limit **
  16  Prefactor     5.2901        12.597        .17473E-03    .44830E-04
  17  Prefactor     170.24        130.66        .15461E-03    .16118E-04
  18  Prefactor     38.405        22.191        .64675E-04   -.30410E-04
  19  Prefactor     5.7840        12.794        .16695E-03    .10214E-05
  20  Prefactor     .10000E-03    16.419        .18142E-02** at limit **
  21  Prefactor     .10000E-03    50.499        .18142E-02** at limit **
  22  Prefactor     .10000E-03    18.780        .18142E-02** at limit **
  23  norm          .10000E-03    4.2163        .13108E-02** at limit **
  24  norm          .10000E-03    2.4203        .99307E-03** at limit **
  25  norm          .10000E-03    1.9187        .88411E-03** at limit **
  26  norm          16.419        13.373        .98837E-04    .19554E-05
  27  Prefactor     .10000E-03    2.7129        .10506E-02** at limit **
  28  Prefactor     3.6854        37.598        .21028E-03   -.10488E-04
  29  norm          .10000E-03    2.1581        .93431E-03** at limit **
  30  Prefactor     3.7184        14.840        .20936E-03   -.23078E-04
  31  norm          .10000E-03    1.5983        .80686E-03** at limit **
  32  Normalizat    1.2259        .27840        .24922E-03    .14397E-03
  33  Prefactor     .89630        .24592        .26216E-03    .12593E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.0243
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.6532
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.89528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2286
  Prefactor  = 0.0001
  Prefactor  = 5.29011
  Prefactor  = 170.236
  Prefactor  = 38.4052
  Prefactor  = 5.78397
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 16.4188
  Prefactor  = 0.0001
  Prefactor  = 3.68539
  norm       = 0.0001
  Prefactor  = 3.71844
  norm       = 0.0001
  Normalizat = 1.22589
  Prefactor  = 0.896298
 **********
 **   18 **HESSE 
 **********

 FCN=   4272.745     FROM HESSE     STATUS=OK           671 CALLS     5947 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.024        48.182        .10531E-04   -1.4183    
   2  norm          .10000E-03    2.7776        .21214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    102.47        .84742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.558        .71255E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8714        .25099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     62.653        101.69        .10149E-04   -1.4123    
   8  norm          .10000E-03    4.2343        .26219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.039        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8953        4.7813        .60137E-05   -1.5313    
  11  Prefactor     .10000E-03    25.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4487        .29468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.173        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.229        34.605        .36535E-05   -1.4831    
  15  Prefactor     .10000E-03    11.428        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2901        12.595        .69891E-05   -1.5248    
  17  Prefactor     170.24        130.65        .30923E-04   -1.3091    
  18  Prefactor     38.405        22.188        .25870E-05   -1.4468    
  19  Prefactor     5.7840        12.791        .66782E-05   -1.5227    
  20  Prefactor     .10000E-03    16.419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    50.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.2163        .26216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.4203        .19861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.9187        .17682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          16.419        13.373        .39535E-05   -1.4897    
  27  Prefactor     .10000E-03    2.7130        .21011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.6854        37.589        .84114E-05   -1.5324    
  29  norm          .10000E-03    2.1581        .18686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.7184        14.838        .83745E-05   -1.5322    
  31  norm          .10000E-03    1.5983        .16137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2259        .27853        .49845E-04   -.85807    
  33  Prefactor     .89630        .24591        .10486E-04   -.96271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95185e-10
Minuit parameter uncertainties:
  1  48.2145
  2  9.62632e-06
  3  4.74344e-05
  4  0.000169822
  5  3.15534e-05
  6  1.19157e-05
  7  101.975
  8  2.2285e-05
  9  9.11697e-06
  10  4.78178
  11  8.31352e-05
  12  8.35207e-05
  13  5.21199e-05
  14  34.6411
  15  5.79864e-05
  16  12.6016
  17  130.868
  18  22.1931
  19  12.7972
  20  9.22605e-05
  21  0.0003882
  22  4.6427e-05
  23  7.98707e-06
  24  2.49216e-06
  25  2.35147e-06
  26  13.3755
  27  1.65703e-05
  28  23.5584
  29  1.09197e-05
  30  14.8532
  31  2.6647e-06
  32  0.278868
  33  0.246211
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  8.314e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  8.963e-01  2.462e-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:  1.226e+00  2.789e-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: 6.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/486295/likelihoodResults_655862401_656121601_4FGL_J2234.2-4156_daily_bin1607.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) = 4272.74530645
delta logL = -0.000184869845725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4272.74512175
delta logL = -1.63958247867e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10918E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9133       1.0000          .0000       10.000    
     3 'Normalizat'    1.2259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89631       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=   4272.745     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6182.2        .90712E-02** at limit **
   2  Index         1.9083        8.8827        .50000        .14581E-05
   3  Normalizat    1.2259        .64718E-01    .56359E-01    .46328E-05
   4  Prefactor     .89630        .59526E-01    .44958E-01    .12633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90832
  Normalizat = 1.22589
  Prefactor  = 0.896298
 **********
 **   18 **HESSE 
 **********

 FCN=   4272.745     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7321.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9083        5.7311        .50000       -.66662    
   3  Normalizat    1.2259        .14813        .24922E-03   -.85807    
   4  Prefactor     .89630        .13627        .26216E-03   -.96271    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.09294e-10
Minuit parameter uncertainties:
  1  0.000367289
  2  57.8016
  3  0.148176
  4  0.136326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486295': 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) = 4272.74512155
delta logL = 3.51656126441e-08

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.673e-04  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.908e+00  5.780e+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:  8.963e-01  1.363e-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:  1.226e+00  1.482e-01  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/486295/cmap_HighResolution_655862401_656121601_4FGL_J2234.2-4156_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-12-08 08:55:17.535788', job_id='486295', GAL2='0.90', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1638982517.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1607' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:55:17 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 486295: <4FGL_J2234.2-4156_daily_bin1607> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1607> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Dec  8 08:40:17 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:41:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:41:04 2021
Terminated at Wed Dec  8 08:55:18 2021
Results reported at Wed Dec  8 08:55:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1607 338.568 -41.9411 655862401 656121601 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 :                                   774.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            901 sec.

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

