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


Performing analysis on: 4FGL_J2234.1-2656_daily_bin1202
RA = 338.543, Dec = -26.9375
tmin = 550886401, tmax = 551145601
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='354483', job_status='RUN', time_executed='2021-09-28 14:27:03.968743', time_epoch_executed='1632864423.97' WHERE source_name='4FGL J2234.1-2656' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354483

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354483/ft1_4FGL_J2234.1-2656_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354483/ft2_4FGL_J2234.1-2656_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354483/ft1_4FGL_J2234.1-2656_daily_bin1202.fits outfile=/scratch/kocevski/354483/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin1202.fits ra=338.543 dec=-26.9375 rad=12.0 tmin=550886401.0 tmax=551145601.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.77
user 3.51
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354483/ft1_filtered_4FGL_J2234.1-2656_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/354483/ft2_4FGL_J2234.1-2656_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/354483/ltcube_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.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/354483/ft2_4FGL_J2234.1-2656_daily_bin1202.fits
.....................!
real 12.16
user 11.72
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354483/ft1_filtered_4FGL_J2234.1-2656_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/354483/ft2_4FGL_J2234.1-2656_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/354483/ltcube_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.fits outfile=/scratch/kocevski/354483/expmap_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.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/354483/ltcube_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.fits
.....................!
real 190.61
user 184.85
sys 5.27

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/354483/ft1_filtered_4FGL_J2234.1-2656_daily_bin1202.fits scfile=/scratch/kocevski/354483/ft2_4FGL_J2234.1-2656_daily_bin1202.fits outfile=/scratch/kocevski/354483/cmap_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354483/ft1_filtered_4FGL_J2234.1-2656_daily_bin1202.fits scfile=/scratch/kocevski/354483/ft2_4FGL_J2234.1-2656_daily_bin1202.fits outfile=/scratch/kocevski/354483/cmap_HighResolution_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/354483/ft1_filtered_4FGL_J2234.1-2656_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/354483/ft2_4FGL_J2234.1-2656_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/354483/Model_4FGL_J2234.1-2656_daily_bin1202.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/354483/ft1_filtered_4FGL_J2234.1-2656_daily_bin1202.fits.....................!
real 46.84
user 45.05
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/354483/ft1_filtered_4FGL_J2234.1-2656_daily_bin1202.fits', '/scratch/kocevski/354483/ft2_4FGL_J2234.1-2656_daily_bin1202.fits', expMap='/scratch/kocevski/354483/expmap_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.fits', expCube='/scratch/kocevski/354483/ltcube_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/354483/Model_4FGL_J2234.1-2656_daily_bin1202.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/354483/ft1_filtered_4FGL_J2234.1-2656_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/354483/ft2_4FGL_J2234.1-2656_daily_bin1202.fits
Exposure map: /scratch/kocevski/354483/expmap_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.fits
Exposure cube: /scratch/kocevski/354483/ltcube_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/354483/Model_4FGL_J2234.1-2656_daily_bin1202.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) = 5336.33879782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    121.15       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3865       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2424       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8652       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.846       1.0000         .10000E-03   10000.    
    10 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.0168       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.544       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7583       1.0000         .10000E-03   10000.    
    16 'norm      '    .12014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12299E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    2.3565       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7478       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4943       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70787       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=   5336.308     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2571 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.710        .14757E-05** at limit **
   2  Prefactor     .10000E-03    14.148        .32545E-06** at limit **
   3  Prefactor     121.21        87.534       -.54904E-05   -.44149E-04
   4  norm          3.3856        6.4950        .37216E-05    .78364E-03
   5  norm          1.2424        .46988       -.10889E-06    .11831E-03
   6  Prefactor     .10000E-03    3.8311        .42028E-07** at limit **
   7  Prefactor     5.8661        20.016        .12209E-05    .53414E-04
   8  Prefactor     .10000E-03    3.3273       -.13512E-06** at limit **
   9  Prefactor     41.954        83.651       -.11796E-04   -.70882E-04
  10  norm          .10000E-03    11.283       -.37526E-06** at limit **
  11  Prefactor     .10000E-03    20.762       -.60161E-06** at limit **
  12  Prefactor     .10000E-03    10.589        .46795E-06** at limit **
  13  norm          5.0183        4.0928        .28343E-06   -.34335E-03
  14  Prefactor     25.586        75.525       -.34417E-05   -.99672E-04
  15  Prefactor     7.7605        12.850        .30611E-06   -.99844E-04
  16  norm          .10001E-03    4.0085        .20920E-06** at limit **
  17  Prefactor     .10000E-03    9.0747        .38080E-06** at limit **
  18  Prefactor     .10034E-03    15.811        .48780E-05** at limit **
  19  norm          2.3565        1.0598        .13261E-06   -.32820E-02
  20  Prefactor     .10000E-03    17.888        .69287E-06** at limit **
  21  Prefactor     2.7534        11.551        .50873E-06   -.22674E-03
  22  Normalizat    1.4940        .23532       -.16852E-05   -.24388E-03
  23  Prefactor     .70809        .19905        .30084E-05   -.10661E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 121.213
  norm       = 3.38561
  norm       = 1.24238
  Prefactor  = 0.0001
  Prefactor  = 5.86611
  Prefactor  = 0.0001
  Prefactor  = 41.9538
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.01833
  Prefactor  = 25.5865
  Prefactor  = 7.76049
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100335
  norm       = 2.35649
  Prefactor  = 0.0001
  Prefactor  = 2.75339
  Normalizat = 1.49397
  Prefactor  = 0.70809
 **********
 **   18 **HESSE 
 **********

 FCN=   5336.308     FROM HESSE     STATUS=OK           368 CALLS     2939 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     121.21        88.386        .18282E-03   -1.3502    
   4  norm          3.3856        6.6937        .10993E-02   -1.5340    
   5  norm          1.2424        .47308        .28233E-04   -1.5485    
   6  Prefactor     .10000E-03    3.8340        .13963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8661        20.020        .82911E-03   -1.5224    
   8  Prefactor     .10000E-03    3.3444        .13012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.954        84.047        .30984E-03   -1.4412    
  10  norm          .10000E-03    11.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.0183        4.1231        .10271E-03   -1.5260    
  14  Prefactor     25.586        75.727        .79261E-04   -1.4696    
  15  Prefactor     7.7605        12.903        .14396E-03   -1.5151    
  16  norm          .10001E-03    8.8503        .27089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.0838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10034E-03    37.162        .40511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.3565        .97994        .39330E-04   -1.5401    
  20  Prefactor     .10000E-03    17.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7534        11.375        .24559E-03   -1.5376    
  22  Normalizat    1.4940        .28484        .24305E-03   -.77948    
  23  Prefactor     .70809        .24007        .29642E-03   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11302e-08
Minuit parameter uncertainties:
  1  0.000496813
  2  8.27689e-05
  3  88.4823
  4  6.69522
  5  0.473084
  6  2.93631e-06
  7  20.0432
  8  1.11477e-05
  9  84.286
  10  2.22439e-05
  11  8.79213e-05
  12  2.57949e-05
  13  4.12338
  14  76.0133
  15  12.9073
  16  0.000575075
  17  3.17512e-05
  18  0.00706405
  19  0.979945
  20  1.84178e-05
  21  11.1961
  22  0.285149
  23  0.240422
Done.

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

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  1.000e-04  2.224e-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:  7.081e-01  2.404e-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.494e+00  2.851e-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: 4.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/354483/likelihoodResults_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.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) = 5336.3081106
delta logL = -0.000418995880864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5336.30769158
delta logL = 1.51158019435e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9645       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70809       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=   5336.308     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      245 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    54.578        .18142E-01** at limit **
   2  alpha         2.2566        3.5655        .50000       -.15370E-07
   3  Normalizat    1.4940        .11703E-01    .24305E-03   -.43472E-04
   4  Prefactor     .70809        .10291E-01    .29642E-03   -.37126E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.2566
  Normalizat = 1.49397
  Prefactor  = 0.708089
 **********
 **   18 **HESSE 
 **********

 FCN=   5336.308     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    462.47        .24480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2566        3.6216        .50000       -.97516E-01
   3  Normalizat    1.4940        .35253E-01    .48611E-04   -.77948    
   4  Prefactor     .70809        .30999E-01    .11857E-04   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.47301e-10
Minuit parameter uncertainties:
  1  0.000985544
  2  1911.19
  3  0.035254
  4  0.0309996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354483': 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) = 5336.30769133
delta logL = 2.69436895906e-07

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  1.000e-04  9.855e-04  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  2.257e+00  1.911e+03  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:  7.081e-01  3.100e-02  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.494e+00  3.525e-02  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/354483/cmap_HighResolution_550886401_551145601_4FGL_J2234.1-2656_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-05', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2021-09-28 14:36:44.254478', job_id='354483', GAL2='0.71', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1632865004.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1202' AND source_name='4FGL J2234.1-2656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:36:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 354483: <4FGL_J2234.1-2656_daily_bin1202> in cluster <slac> Done

Job <4FGL_J2234.1-2656_daily_bin1202> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:25:35 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:25:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:25:36 2021
Terminated at Tue Sep 28 14:36:44 2021
Results reported at Tue Sep 28 14:36:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.1-2656_daily_bin1202 338.543 -26.9375 550886401 551145601 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 :                                   579.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             349.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            669 sec.

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

