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


Performing analysis on: 4FGL_J2234.1-2656_daily_bin1004
RA = 338.543, Dec = -26.9375
tmin = 499564801, tmax = 499824001
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='353280', job_status='RUN', time_executed='2021-09-28 14:21:44.772210', time_epoch_executed='1632864104.77' WHERE source_name='4FGL J2234.1-2656' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/353280

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/353280/ft1_4FGL_J2234.1-2656_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/353280/ft2_4FGL_J2234.1-2656_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/353280/ft1_4FGL_J2234.1-2656_daily_bin1004.fits outfile=/scratch/kocevski/353280/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin1004.fits ra=338.543 dec=-26.9375 rad=12.0 tmin=499564801.0 tmax=499824001.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 5.09
user 4.84
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/353280/ft2_4FGL_J2234.1-2656_daily_bin1004.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/353280/ft2_4FGL_J2234.1-2656_daily_bin1004.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/353280/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin1004.fits evtable="EVENTS" outfile="/scratch/kocevski/353280/ft1_filtered_4FGL_J2234.1-2656_daily_bin1004.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/353280/ft1_filtered_4FGL_J2234.1-2656_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/353280/ft2_4FGL_J2234.1-2656_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/353280/ltcube_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.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/353280/ft2_4FGL_J2234.1-2656_daily_bin1004.fits
.....................!
real 12.46
user 12.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/353280/ft1_filtered_4FGL_J2234.1-2656_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/353280/ft2_4FGL_J2234.1-2656_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/353280/ltcube_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.fits outfile=/scratch/kocevski/353280/expmap_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.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/353280/ltcube_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.fits
.....................!
real 190.45
user 185.07
sys 5.01

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2234.1-2656 @ 338.543 -26.9375

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/353280/ft1_filtered_4FGL_J2234.1-2656_daily_bin1004.fits scfile=/scratch/kocevski/353280/ft2_4FGL_J2234.1-2656_daily_bin1004.fits outfile=/scratch/kocevski/353280/cmap_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.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.543 yref=-26.9375 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/353280/ft1_filtered_4FGL_J2234.1-2656_daily_bin1004.fits scfile=/scratch/kocevski/353280/ft2_4FGL_J2234.1-2656_daily_bin1004.fits outfile=/scratch/kocevski/353280/cmap_HighResolution_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.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.543 yref=-26.9375 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/353280/ft1_filtered_4FGL_J2234.1-2656_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/353280/ft2_4FGL_J2234.1-2656_daily_bin1004.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/353280/Model_4FGL_J2234.1-2656_daily_bin1004.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/353280/ft1_filtered_4FGL_J2234.1-2656_daily_bin1004.fits......................!
real 36.31
user 35.05
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/353280/ft1_filtered_4FGL_J2234.1-2656_daily_bin1004.fits', '/scratch/kocevski/353280/ft2_4FGL_J2234.1-2656_daily_bin1004.fits', expMap='/scratch/kocevski/353280/expmap_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.fits', expCube='/scratch/kocevski/353280/ltcube_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/353280/Model_4FGL_J2234.1-2656_daily_bin1004.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.1-2656'

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  9.136e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  1.955e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/353280/ft1_filtered_4FGL_J2234.1-2656_daily_bin1004.fits
Spacecraft file(s): /scratch/kocevski/353280/ft2_4FGL_J2234.1-2656_daily_bin1004.fits
Exposure map: /scratch/kocevski/353280/expmap_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.fits
Exposure cube: /scratch/kocevski/353280/ltcube_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/353280/Model_4FGL_J2234.1-2656_daily_bin1004.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) = 3444.98768826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12240E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.449       1.0000         .10000E-03   10000.    
     5 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0313       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.104       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6902       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.990       1.0000         .10000E-03   10000.    
    13 'norm      '    .36571       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12398E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2669       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3814       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4689       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .53236       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3444.938     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2606 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1022        .14448E-07** at limit **
   2  Prefactor     .10000E-03    81.427       -.25062E-04** at limit **
   3  Prefactor     .10000E-03    144.93        .46840E-04** at limit **
   4  norm          11.452        6.5325       -.14853E-06    .24383E-04
   5  norm          .10000E-03    .20133        .26291E-07** at limit **
   6  Prefactor     2.0326        11.129        .17552E-05   -.28962E-03
   7  Prefactor     19.104        22.830       -.10248E-05   -.20298E-03
   8  Prefactor     .10000E-03    3.4064        .10059E-07** at limit **
   9  Prefactor     .10000E-03    28.530       -.39058E-06** at limit **
  10  norm          .10000E-03    46.441        .36602E-05** at limit **
  11  Prefactor     7.6816        73.241       -.16171E-04   -.11165E-04
  12  Prefactor     13.941        23.543        .35167E-05    .25095E-03
  13  norm          .35895        3.2901       -.44104E-06    .37336E-04
  14  Prefactor     .10000E-03    209.49       -.10230E-03** at limit **
  15  Prefactor     9.2661        22.236        .12860E-05   -.49580E-05
  16  norm          2.3797        4.2163       -.73409E-07   -.38537E-04
  17  Prefactor     .10000E-03    13.753        .69273E-07** at limit **
  18  Prefactor     .10000E-03    4.6533        .94567E-08** at limit **
  19  norm          .10000E-03    .56611        .16885E-07** at limit **
  20  Prefactor     .10000E-03    143.75        .49189E-04** at limit **
  21  Prefactor     .10000E-03    8.9811        .95878E-08** at limit **
  22  Normalizat    1.4688        .26804        .21448E-06    .19540E-03
  23  Prefactor     .53244        .20648        .20930E-06    .15604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4524
  norm       = 0.0001
  Prefactor  = 2.0326
  Prefactor  = 19.1036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.68158
  Prefactor  = 13.9413
  norm       = 0.35895
  Prefactor  = 0.000100001
  Prefactor  = 9.26606
  norm       = 2.37975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.46877
  Prefactor  = 0.532437
 **********
 **   18 **HESSE 
 **********

 FCN=   3444.938     FROM HESSE     STATUS=OK           370 CALLS     2976 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1171        .15276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    83.547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    145.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.452        6.3257        .10199E-03   -1.5031    
   5  norm          .10000E-03    1.1297        .49126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0326        10.937        .29025E-03   -1.5423    
   7  Prefactor     19.104        22.937        .45818E-03   -1.4834    
   8  Prefactor     .10000E-03    3.4076        .10580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    46.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6816        73.889        .14461E-03   -1.5154    
  12  Prefactor     13.941        23.617        .10709E-03   -1.4961    
  13  norm          .35895        5.7997        .19774E-02   -1.5588    
  14  Prefactor     .10000E-03    209.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.2661        22.241        .13165E-03   -1.5099    
  16  norm          2.3797        4.1197        .15257E-03   -1.5399    
  17  Prefactor     .10000E-03    13.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6582        .12363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .77897        .84279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    143.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.9928        .17178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4688        .33055        .22479E-03   -.78660    
  23  Prefactor     .53244        .24912        .28088E-03   -1.1051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17219e-10
Minuit parameter uncertainties:
  1  3.15954e-06
  2  0.000357045
  3  6.54241e-05
  4  6.3261
  5  2.76416e-06
  6  9.43235
  7  22.9473
  8  4.93457e-06
  9  6.65923e-06
  10  1.33344e-05
  11  47.725
  12  23.6323
  13  2.88563
  14  0.000798274
  15  22.2608
  16  4.12018
  17  7.86193e-06
  18  1.03044e-06
  19  1.20698e-06
  20  7.35881e-05
  21  1.10513e-06
  22  0.331039
  23  0.249635
Done.

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

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  1.000e-04  1.333e-05  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  1.955e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  5.324e-01  2.496e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.469e+00  3.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.543 -26.938
Photon Flux Upper Limit: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/353280/likelihoodResults_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.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) = 3444.93805689
delta logL = -0.000101838096725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3444.93795825
delta logL = -3.20562867273e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1729       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53245       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+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=   3444.932     FROM MIGRAD    STATUS=CONVERGED    176 CALLS      346 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89793        51.383        .73350E-01    .25469E-03
   2  alpha         3.3810        3.6702        .50000        .19679E-04
   3  Normalizat    1.4580        .19472E-01    .22479E-03    .11379E-05
   4  Prefactor     .53688        .15465E-01    .28088E-03   -.13964E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.897928
  alpha      = 3.38105
  Normalizat = 1.45805
  Prefactor  = 0.536878
 **********
 **   18 **HESSE 
 **********

 FCN=   3444.932     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      377 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89793        6355.9        .26371E-02   -1.5518    
   2  alpha         3.3810        4.1258        .52896E-01    .36015    
   3  Normalizat    1.4580        .16908        .89916E-05   -.78964    
   4  Prefactor     .53688        .13187        .11235E-04   -1.1031    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14578e-06
Minuit parameter uncertainties:
  1  105.608
  2  49.3743
  3  0.169141
  4  0.131945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/353280': 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) = 3444.93216509
delta logL = 0.00578995796968

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  8.979e-01  1.056e+02  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  3.381e+00  4.937e+01  0.000e+00  5.000e+00 ( 1.000e+00)
240         beta:  7.158e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
241           Eb:  1.166e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  5.369e-01  1.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.458e+00  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.543 -26.938

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/353280/cmap_HighResolution_499564801_499824001_4FGL_J2234.1-2656_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-05', job_status='DONE', photon_flux_upper_limit='8.90e-08', time_completed='2021-09-28 14:30:00.136400', job_id='353280', GAL2='0.54', fit_tolerance='1e-08', EG2='1.46', EG='1.47', time_epoch_completed='1632864600.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='5.79e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1004' AND source_name='4FGL J2234.1-2656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:30:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 353280: <4FGL_J2234.1-2656_daily_bin1004> in cluster <slac> Done

Job <4FGL_J2234.1-2656_daily_bin1004> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:21:14 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:21:16 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:21:16 2021
Terminated at Tue Sep 28 14:30:00 2021
Results reported at Tue Sep 28 14:30:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.1-2656_daily_bin1004 338.543 -26.9375 499564801 499824001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.1-2656 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   493.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   524 sec.
    Turnaround time :                            526 sec.

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

