/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 6 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.7+0943_daily_bin353
RA = 338.691, Dec = 9.732
tmin = 330825601, tmax = 331084801
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='364800', job_status='RUN', time_executed='2021-09-28 15:00:59.427683', time_epoch_executed='1632866459.43' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364800/ft1_4FGL_J2234.7+0943_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364800/ft2_4FGL_J2234.7+0943_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364800/ft1_4FGL_J2234.7+0943_daily_bin353.fits outfile=/scratch/kocevski/364800/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin353.fits ra=338.691 dec=9.732 rad=12.0 tmin=330825601.0 tmax=331084801.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.38
user 3.16
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/364800/ft2_4FGL_J2234.7+0943_daily_bin353.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/364800/ft2_4FGL_J2234.7+0943_daily_bin353.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/364800/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin353.fits evtable="EVENTS" outfile="/scratch/kocevski/364800/ft1_filtered_4FGL_J2234.7+0943_daily_bin353.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364800/ft1_filtered_4FGL_J2234.7+0943_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/364800/ft2_4FGL_J2234.7+0943_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/364800/ltcube_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.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/364800/ft2_4FGL_J2234.7+0943_daily_bin353.fits
.....................!
real 11.83
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364800/ft1_filtered_4FGL_J2234.7+0943_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/364800/ft2_4FGL_J2234.7+0943_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/364800/ltcube_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.fits outfile=/scratch/kocevski/364800/expmap_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.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/364800/ltcube_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.fits
.....................!
real 191.21
user 185.78
sys 4.98

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

Setting source of interest to:
4FGL J2234.7+0943 @ 338.691 9.732

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/364800/ft1_filtered_4FGL_J2234.7+0943_daily_bin353.fits scfile=/scratch/kocevski/364800/ft2_4FGL_J2234.7+0943_daily_bin353.fits outfile=/scratch/kocevski/364800/cmap_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.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.691 yref=9.732 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364800/ft1_filtered_4FGL_J2234.7+0943_daily_bin353.fits scfile=/scratch/kocevski/364800/ft2_4FGL_J2234.7+0943_daily_bin353.fits outfile=/scratch/kocevski/364800/cmap_HighResolution_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.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.691 yref=9.732 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.58
user 0.39
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/364800/ft1_filtered_4FGL_J2234.7+0943_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/364800/ft2_4FGL_J2234.7+0943_daily_bin353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/364800/Model_4FGL_J2234.7+0943_daily_bin353.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/364800/ft1_filtered_4FGL_J2234.7+0943_daily_bin353.fits.....................!
real 68.79
user 67.35
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/364800/ft1_filtered_4FGL_J2234.7+0943_daily_bin353.fits', '/scratch/kocevski/364800/ft2_4FGL_J2234.7+0943_daily_bin353.fits', expMap='/scratch/kocevski/364800/expmap_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.fits', expCube='/scratch/kocevski/364800/ltcube_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/364800/Model_4FGL_J2234.7+0943_daily_bin353.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.7+0943'

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.256e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/364800/ft1_filtered_4FGL_J2234.7+0943_daily_bin353.fits
Spacecraft file(s): /scratch/kocevski/364800/ft2_4FGL_J2234.7+0943_daily_bin353.fits
Exposure map: /scratch/kocevski/364800/expmap_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.fits
Exposure cube: /scratch/kocevski/364800/ltcube_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/364800/Model_4FGL_J2234.7+0943_daily_bin353.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) = 6743.20200549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7737       1.0000         .10000E-03   10000.    
     2 'norm      '    22.297       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1759       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5586       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.379       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .37904       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31375       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9163       1.0000         .10000E-03   10000.    
    12 'norm      '    .72605       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0063       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76210       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3765       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .66529       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6742.831     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2110 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7741        3.9322       -.66320E-07    .23966E-03
   2  norm          22.298        17.946       -.80404E-07    .26552E-04
   3  norm          2.1757        1.2602        .30290E-07    .10973E-03
   4  Prefactor     2.5575        9.4824        .52603E-05    .21804E-04
   5  Prefactor     12.380        13.364       -.84256E-07   -.41397E-05
   6  Prefactor     .10000E-03    30.248        .66042E-06** at limit **
   7  norm          .40879        2.5460       -.68870E-06    .24095E-04
   8  Prefactor     .10000E-03    23.457       -.77847E-07** at limit **
   9  Prefactor     .10000E-03    6.7486        .21074E-06** at limit **
  10  Prefactor     .31375        .19355        .31491E-07    .15878E-02
  11  Prefactor     1.9171        6.4459        .41910E-06    .13265E-04
  12  norm          .72692        1.4947       -.57704E-10    .74226E-04
  13  Prefactor     .10000E-03    10.670        .29201E-06** at limit **
  14  Prefactor     4.0046        10.217        .23583E-05    .74823E-05
  15  Prefactor     .10000E-03    4.5551        .21436E-06** at limit **
  16  Prefactor     .76210        .16458       -.43888E-08   -.58884E-03
  17  Prefactor     .10000E-03    7.7679       -.37468E-06** at limit **
  18  Prefactor     .10000E-03    1.7794        .42785E-09** at limit **
  19  Prefactor     .10000E-03    4.5996       -.20135E-06** at limit **
  20  Prefactor     .10000E-03    26.793       -.18535E-06** at limit **
  21  Normalizat    1.3765        .21045       -.20946E-06    .65063E-04
  22  Prefactor     .66522        .11257       -.17040E-06    .93737E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.77413
  norm       = 22.2981
  norm       = 2.17568
  Prefactor  = 2.55747
  Prefactor  = 12.3804
  Prefactor  = 0.000100001
  norm       = 0.408789
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.313754
  Prefactor  = 1.91712
  norm       = 0.72692
  Prefactor  = 0.0001
  Prefactor  = 4.00456
  Prefactor  = 0.0001
  Prefactor  = 0.762104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37654
  Prefactor  = 0.665223
 **********
 **   18 **HESSE 
 **********

 FCN=   6742.831     FROM HESSE     STATUS=OK           348 CALLS     2458 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7741        3.9414        .11843E-03   -1.5187    
   2  norm          22.298        17.947        .84827E-04   -1.4763    
   3  norm          2.1757        1.2505        .66790E-04   -1.5413    
   4  Prefactor     2.5575        9.5151        .12762E-02   -1.5388    
   5  Prefactor     12.380        13.368        .11385E-03   -1.5004    
   6  Prefactor     .10000E-03    30.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .40879        10.758        .24591E-02   -1.5580    
   8  Prefactor     .10000E-03    23.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .31375        .18921        .26444E-04   -1.5596    
  11  Prefactor     1.9171        6.4233        .30023E-03   -1.5431    
  12  norm          .72692        1.2782        .13597E-02   -1.5537    
  13  Prefactor     .10000E-03    10.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0046        10.096        .10074E-02   -1.5308    
  15  Prefactor     .10000E-03    4.5646        .17132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .76210        .16482        .14800E-04   -1.5533    
  17  Prefactor     .10000E-03    7.7963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7836        .10697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6301        .17213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3765        .24908        .27512E-03   -.81310    
  22  Prefactor     .66522        .13327        .20817E-03   -1.0491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37198e-10
Minuit parameter uncertainties:
  1  3.94156
  2  17.951
  3  1.25048
  4  9.52075
  5  13.3717
  6  0.000301708
  7  4.1944
  8  0.000285984
  9  4.82875e-05
  10  0.189211
  11  6.42562
  12  1.2782
  13  6.54881e-05
  14  10.1001
  15  2.95318e-05
  16  0.164816
  17  6.63963e-05
  18  4.89114e-07
  19  3.49734e-05
  20  0.00010518
  21  0.2493
  22  0.133336
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.917e+00  6.426e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  6.652e-01  1.333e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.377e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 338.691 9.732
Photon Flux Upper Limit: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/364800/likelihoodResults_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.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) = 6740.2319226
delta logL = 2.59887314704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6739.72947785
delta logL = 3.10131789593

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 'Index1    '    6.5696       1.0000          .0000       10.000    
     3 'Normalizat'    1.1992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73243       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6739.729     FROM MIGRAD    STATUS=CONVERGED    333 CALLS      627 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .39758E-03    .47778E-07** at limit **
   2  Index1        6.5695        .18845       -.18688E-04    .15767E-03
   3  Normalizat    1.1995        .24779        .28866E-04   -.19682E-03
   4  Prefactor     .73229        .13551        .17265E-04    .74910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index1     = 6.5695
  Normalizat = 1.19948
  Prefactor  = 0.732287
 **********
 **   18 **HESSE 
 **********

 FCN=   6739.729     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      670 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .23579E-02    .25714E-03   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        6.5695        1.7933        .68777E-01   -37.380    
   3  Normalizat    1.1995        .70051E-01    .65652E-01   -.86619    
   4  Prefactor     .73229        .37664E-01    .42831E-01   -2.1188    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27231e-08
Minuit parameter uncertainties:
  1  4.44271e-08
  2  1.83898
  3  0.070056
  4  0.037665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364800': 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) = 6739.72947591
delta logL = 3.1013198341

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  4.443e-08  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  6.570e+00  1.839e+00  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.323e-01  3.766e-02  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.199e+00  7.006e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.69
Ra Dec: 338.691 9.732
Photon Index (Free Index): 6.57 +/- 1.84
Photon Flux (Free Index): 1.39e-07 +/- 6.61e-07
Energy Flux (Free Index): 1.67e-05 +/- 7.89e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/364800/cmap_HighResolution_330825601_331084801_4FGL_J2234.7+0943_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-05', comment='SUCCESS', energy_flux2='1.67e-05', dlogl='3.10e+00', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-28 15:12:03.417093', photon_index_error2='1.84', photon_index2='6.57', ts='0.11', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='5.38e-08', energy_flux_error2='7.89e-05', EG='1.38', time_epoch_completed='1632867123.42', return_code='0', job_id='364800', GAL2='0.73', EG2='1.20', return_code2='102', photon_flux_error2='6.61e-07', ts2='6.69', photon_index='0.94' WHERE bin_id='353' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:12:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 364800: <4FGL_J2234.7+0943_daily_bin353> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin353> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 15:00:43 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:00:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:00:45 2021
Terminated at Tue Sep 28 15:12:04 2021
Results reported at Tue Sep 28 15:12:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin353 338.691 9.732 330825601 331084801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.7+0943 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            681 sec.

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

