/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 130 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.1-2656_daily_bin20
RA = 338.543, Dec = -26.9375
tmin = 244512001, tmax = 244771201
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='349651', job_status='RUN', time_executed='2021-09-28 14:12:39.115972', time_epoch_executed='1632863559.12' WHERE source_name='4FGL J2234.1-2656' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349651

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349651/ft1_4FGL_J2234.1-2656_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349651/ft2_4FGL_J2234.1-2656_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349651/ft1_4FGL_J2234.1-2656_daily_bin20.fits outfile=/scratch/kocevski/349651/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin20.fits ra=338.543 dec=-26.9375 rad=12.0 tmin=244512001.0 tmax=244771201.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 1.45
user 1.27
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349651/ft2_4FGL_J2234.1-2656_daily_bin20.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/349651/ft1_filteredMKT_4FGL_J2234.1-2656_daily_bin20.fits evtable="EVENTS" outfile="/scratch/kocevski/349651/ft1_filtered_4FGL_J2234.1-2656_daily_bin20.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/349651/ft1_filtered_4FGL_J2234.1-2656_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/349651/ft2_4FGL_J2234.1-2656_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/349651/ltcube_244512001_244771201_4FGL_J2234.1-2656_daily_bin20.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/349651/ft2_4FGL_J2234.1-2656_daily_bin20.fits
.....................!
real 12.83
user 12.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349651/ft1_filtered_4FGL_J2234.1-2656_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/349651/ft2_4FGL_J2234.1-2656_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/349651/ltcube_244512001_244771201_4FGL_J2234.1-2656_daily_bin20.fits outfile=/scratch/kocevski/349651/expmap_244512001_244771201_4FGL_J2234.1-2656_daily_bin20.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/349651/ltcube_244512001_244771201_4FGL_J2234.1-2656_daily_bin20.fits
.....................!
real 192.49
user 186.34
sys 5.75

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/349651/ft1_filtered_4FGL_J2234.1-2656_daily_bin20.fits scfile=/scratch/kocevski/349651/ft2_4FGL_J2234.1-2656_daily_bin20.fits outfile=/scratch/kocevski/349651/cmap_244512001_244771201_4FGL_J2234.1-2656_daily_bin20.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/349651/ft1_filtered_4FGL_J2234.1-2656_daily_bin20.fits scfile=/scratch/kocevski/349651/ft2_4FGL_J2234.1-2656_daily_bin20.fits outfile=/scratch/kocevski/349651/cmap_HighResolution_244512001_244771201_4FGL_J2234.1-2656_daily_bin20.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/349651/ft1_filtered_4FGL_J2234.1-2656_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/349651/ft2_4FGL_J2234.1-2656_daily_bin20.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/349651/Model_4FGL_J2234.1-2656_daily_bin20.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/349651/ft1_filtered_4FGL_J2234.1-2656_daily_bin20.fits.....................!
real 50.81
user 49.43
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10792E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4490       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3591       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.291       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26707E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15077E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .89158       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3591       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .51352       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.

 FCN=   6476.170     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2233 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.1941        .90712E-02** at limit **
   2  Prefactor     .10000E-03    5.0659        .90712E-02** at limit **
   3  Prefactor     .10001E-03    12.625        .90712E-02** at limit **
   4  norm          .10000E-03    1.7177        .54707E-01** at limit **
   5  norm          1.4490        .38240        .54754E-02    .17144E-03
   6  Prefactor     .10000E-03    3.7923        .90712E-02** at limit **
   7  Prefactor     8.3527        15.469        .34665E-02   -.11580E-03
   8  Prefactor     .10000E-03    5.5169        .90712E-02** at limit **
   9  Prefactor     .10002E-03    68.846        .90712E-02** at limit **
  10  norm          .10002E-03    8.3465        .90712E-02** at limit **
  11  Prefactor     31.292        24.114        .17907E-02   -.69225E-04
  12  Prefactor     .10013E-03    5.2435        .64827E-01** at limit **
  13  norm          .10000E-03    .82721        .90712E-02** at limit **
  14  Prefactor     .10007E-03    23.243        .90712E-02** at limit **
  15  Prefactor     .10000E-03    4.1227        .90712E-02** at limit **
  16  norm          .10000E-03    2.3168        .39068E-01** at limit **
  17  Prefactor     .10003E-03    11.169        .90712E-02** at limit **
  18  Prefactor     .10006E-03    6.8971        .57866E-01** at limit **
  19  norm          .89202        .51524        .86118E-02    .30606E-03
  20  Prefactor     .10000E-03    36.009        .90712E-02** at limit **
  21  Prefactor     .10000E-03    3.1254        .90712E-02** at limit **
  22  Normalizat    1.3589        .16820        .31823E-01   -.13908E-03
  23  Prefactor     .51373        .14348        .61981E-01   -.64966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 0.000100004
  Prefactor  = 0.000100012
  norm       = 0.000100001
  norm       = 1.44898
  Prefactor  = 0.0001
  Prefactor  = 8.35268
  Prefactor  = 0.000100001
  Prefactor  = 0.000100018
  norm       = 0.000100016
  Prefactor  = 31.2921
  Prefactor  = 0.000100135
  norm       = 0.0001
  Prefactor  = 0.000100065
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100027
  Prefactor  = 0.000100063
  norm       = 0.892023
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.35886
  Prefactor  = 0.513734
 **********
 **   18 **HESSE 
 **********

 FCN=   6476.170     FROM HESSE     STATUS=OK           366 CALLS     2599 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.2543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0784        .17689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    12.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.6340        .19910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4490        .37455        .24170E-04   -1.5467    
   6  Prefactor     .10000E-03    3.8175        .15300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.3527        15.458        .13866E-03   -1.5130    
   8  Prefactor     .10000E-03    5.6126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    69.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10002E-03    8.3771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.292        24.131        .71629E-04   -1.4589    
  12  Prefactor     .10013E-03    22.562        .35510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .84826        .14286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10007E-03    23.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1386        .15955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.7106        .22829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    11.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10006E-03    37.519        .35157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .89202        .46624        .38188E-04   -1.5519    
  20  Prefactor     .10000E-03    36.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.1377        .13883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3589        .18807        .20000E-03   -.81826    
  23  Prefactor     .51373        .16322        .27426E-03   -1.1135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81206e-08
Minuit parameter uncertainties:
  1  0.000490668
  2  0.000276871
  3  0.000764528
  4  0.000117743
  5  0.374546
  6  7.79938e-06
  7  15.4652
  8  0.000134352
  9  0.00225528
  10  0.000721698
  11  24.138
  12  0.00348585
  13  1.1101e-06
  14  0.00246792
  15  1.15651e-05
  16  0.000118982
  17  0.00110787
  18  0.00307579
  19  0.466237
  20  0.000688218
  21  4.78505e-07
  22  0.188168
  23  0.16337
Done.

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

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  1.000e-04  7.217e-04  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.137e-01  1.634e-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.359e+00  1.882e-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: 3.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/349651/likelihoodResults_244512001_244771201_4FGL_J2234.1-2656_daily_bin20.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) = 6476.17082268
delta logL = -0.000567810799112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6476.17025486
delta logL = 6.05905370321e-09

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.9484       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51374       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=   6476.170     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      238 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1298.2        .18142E-02** at limit **
   2  alpha         1.8486        2.8518        .16998        .38926E-07
   3  Normalizat    1.3589        .65367E-01    .20000E-03    .11426E-04
   4  Prefactor     .51373        .57851E-01    .27426E-03    .82491E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.84863
  Normalizat = 1.35886
  Prefactor  = 0.513734
 **********
 **   18 **HESSE 
 **********

 FCN=   6476.170     FROM HESSE     STATUS=OK            27 CALLS      265 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.7303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8486        3.0609        .67991E-01   -.26359    
   3  Normalizat    1.3589        .18431        .79999E-05   -.81826    
   4  Prefactor     .51373        .16305        .10970E-04   -1.1135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71859e-11
Minuit parameter uncertainties:
  1  3.73177e-05
  2  271.884
  3  0.1844
  4  0.163201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349651': 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): 0
logL (Free Index) = 6476.17025479
delta logL = 8.00582711236e-08

Extracting fit parameters...

4FGL J2234.1-2656
   Spectrum: LogParabola
238         norm:  1.000e-04  3.732e-05  1.000e-04  1.000e+04 ( 1.000e-13)
239        alpha:  1.849e+00  2.719e+02  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.137e-01  1.632e-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.359e+00  1.844e-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/349651/cmap_HighResolution_244512001_244771201_4FGL_J2234.1-2656_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', job_status='DONE', photon_flux_upper_limit='3.38e-08', time_completed='2021-09-28 14:22:50.683974', job_id='349651', GAL2='0.51', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1632864170.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='8.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='20' AND source_name='4FGL J2234.1-2656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:22:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 349651: <4FGL_J2234.1-2656_daily_bin20> in cluster <slac> Done

Job <4FGL_J2234.1-2656_daily_bin20> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:10:17 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:10:19 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:10:19 2021
Terminated at Tue Sep 28 14:22:51 2021
Results reported at Tue Sep 28 14:22:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.1-2656_daily_bin20 338.543 -26.9375 244512001 244771201 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 :                                   613.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            754 sec.

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

