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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin971
RA = 338.691, Dec = 9.732
tmin = 491011201, tmax = 491270401
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='369168', job_status='RUN', time_executed='2021-09-28 15:14:17.841885', time_epoch_executed='1632867257.84' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369168

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369168/ft1_4FGL_J2234.7+0943_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369168/ft2_4FGL_J2234.7+0943_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369168/ft1_4FGL_J2234.7+0943_daily_bin971.fits outfile=/scratch/kocevski/369168/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin971.fits ra=338.691 dec=9.732 rad=12.0 tmin=491011201.0 tmax=491270401.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 2.90
user 2.66
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369168/ft2_4FGL_J2234.7+0943_daily_bin971.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/369168/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin971.fits evtable="EVENTS" outfile="/scratch/kocevski/369168/ft1_filtered_4FGL_J2234.7+0943_daily_bin971.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.42
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369168/ft1_filtered_4FGL_J2234.7+0943_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/369168/ft2_4FGL_J2234.7+0943_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/369168/ltcube_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.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/369168/ft2_4FGL_J2234.7+0943_daily_bin971.fits
.....................!
real 9.98
user 9.68
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369168/ft1_filtered_4FGL_J2234.7+0943_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/369168/ft2_4FGL_J2234.7+0943_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/369168/ltcube_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.fits outfile=/scratch/kocevski/369168/expmap_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.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/369168/ltcube_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.fits
.....................!
real 152.34
user 148.47
sys 3.61

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/369168/ft1_filtered_4FGL_J2234.7+0943_daily_bin971.fits scfile=/scratch/kocevski/369168/ft2_4FGL_J2234.7+0943_daily_bin971.fits outfile=/scratch/kocevski/369168/cmap_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.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.45
user 0.32
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369168/ft1_filtered_4FGL_J2234.7+0943_daily_bin971.fits scfile=/scratch/kocevski/369168/ft2_4FGL_J2234.7+0943_daily_bin971.fits outfile=/scratch/kocevski/369168/cmap_HighResolution_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.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.50
user 0.30
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/369168/ft1_filtered_4FGL_J2234.7+0943_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/369168/ft2_4FGL_J2234.7+0943_daily_bin971.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/369168/Model_4FGL_J2234.7+0943_daily_bin971.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/369168/ft1_filtered_4FGL_J2234.7+0943_daily_bin971.fits.....................!
real 81.21
user 80.10
sys 0.97

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/369168/ft1_filtered_4FGL_J2234.7+0943_daily_bin971.fits', '/scratch/kocevski/369168/ft2_4FGL_J2234.7+0943_daily_bin971.fits', expMap='/scratch/kocevski/369168/expmap_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.fits', expCube='/scratch/kocevski/369168/ltcube_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/369168/Model_4FGL_J2234.7+0943_daily_bin971.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/369168/ft1_filtered_4FGL_J2234.7+0943_daily_bin971.fits
Spacecraft file(s): /scratch/kocevski/369168/ft2_4FGL_J2234.7+0943_daily_bin971.fits
Exposure map: /scratch/kocevski/369168/expmap_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.fits
Exposure cube: /scratch/kocevski/369168/ltcube_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/369168/Model_4FGL_J2234.7+0943_daily_bin971.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) = 9435.59072086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.5118       1.0000         .10000E-03   10000.    
     3 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.467       1.0000         .10000E-03   10000.    
     7 'norm      '    5.0656       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2321       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8802       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4554       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.349       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30950       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5606       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8375       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4647       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .69864       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=   9435.538     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2478 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5522       -.11694E-08** at limit **
   2  norm          8.5132        22.376       -.22944E-06   -.20443E-05
   3  norm          .10000E-03    .41129       -.24965E-07** at limit **
   4  Prefactor     .10000E-03    6.8295       -.89684E-07** at limit **
   5  Prefactor     .10000E-03    6.1027       -.70864E-07** at limit **
   6  Prefactor     43.464        27.648        .60541E-06   -.50455E-05
   7  norm          5.0652        4.8442        .78850E-08   -.68921E-04
   8  Prefactor     9.3973        17.070        .63874E-05   -.93915E-05
   9  Prefactor     .10000E-03    38.392       -.66121E-06** at limit **
  10  Prefactor     2.2322        .35217       -.75222E-07    .63520E-03
  11  Prefactor     1.8805        3.6369        .13872E-06   -.26010E-03
  12  norm          1.4556        1.2821        .39672E-07   -.30154E-05
  13  Prefactor     17.351        28.531       -.66195E-06   -.15726E-05
  14  Prefactor     .10000E-03    4.6825       -.62752E-07** at limit **
  15  Prefactor     .36318        13.608        .22185E-06   -.32223E-04
  16  Prefactor     6.5604        .41315        .89714E-08   -.42474E-03
  17  Prefactor     .10000E-03    10.698       -.35847E-06** at limit **
  18  Prefactor     1.8379        4.4443       -.18803E-06   -.20726E-03
  19  Prefactor     .10000E-03    17.139        .20479E-06** at limit **
  20  Prefactor     .10000E-03    9.8532        .18153E-06** at limit **
  21  Normalizat    1.4651        .23891       -.59134E-06    .63389E-06
  22  Prefactor     .69839        .12537       -.80813E-07   -.39452E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 8.51316
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.4645
  norm       = 5.06522
  Prefactor  = 9.39729
  Prefactor  = 0.0001
  Prefactor  = 2.23223
  Prefactor  = 1.88046
  norm       = 1.45557
  Prefactor  = 17.3514
  Prefactor  = 0.0001
  Prefactor  = 0.363178
  Prefactor  = 6.56036
  Prefactor  = 0.0001
  Prefactor  = 1.8379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.46511
  Prefactor  = 0.698389
 **********
 **   18 **HESSE 
 **********

 FCN=   9435.538     FROM HESSE     STATUS=OK           358 CALLS     2836 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0357        .23246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.5132        22.160        .13740E-03   -1.5124    
   3  norm          .10000E-03    1.8314        .12035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     43.464        27.686        .60807E-04   -1.4388    
   7  norm          5.0652        4.8792        .89325E-03   -1.5258    
   8  Prefactor     9.3973        17.075        .13066E-03   -1.5095    
   9  Prefactor     .10000E-03    39.983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2322        .35312        .20856E-04   -1.5409    
  11  Prefactor     1.8805        4.7475        .15180E-02   -1.5434    
  12  norm          1.4556        1.2963        .10066E-03   -1.5467    
  13  Prefactor     17.351        28.554        .96156E-04   -1.4875    
  14  Prefactor     .10000E-03    4.6861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .36318        15.660        .11849       -1.5587    
  16  Prefactor     6.5604        .41645        .14665E-04   -1.5196    
  17  Prefactor     .10000E-03    10.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8379        6.7443        .15388E-02   -1.5437    
  19  Prefactor     .10000E-03    17.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.8630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4651        .29334        .36344E-03   -.78764    
  22  Prefactor     .69839        .15469        .27091E-03   -1.0359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0769e-10
Minuit parameter uncertainties:
  1  1.46855e-05
  2  22.181
  3  1.27915e-05
  4  1.48325e-07
  5  8.82389e-07
  6  27.6943
  7  4.87959
  8  17.0835
  9  4.22353e-05
  10  0.353125
  11  4.74848
  12  1.29629
  13  28.5767
  14  1.1653e-07
  15  4.77028
  16  0.416453
  17  2.73645e-06
  18  6.74704
  19  1.53765e-05
  20  2.18252e-06
  21  0.293679
  22  0.154784
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.880e+00  4.748e+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.984e-01  1.548e-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.465e+00  2.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/369168/likelihoodResults_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.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): 0
logL (Free Index) = 9435.15505004
delta logL = 0.382918773214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9435.09723753
delta logL = 0.440731280758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2441       1.0000         .10000E-03   10000.    
     2 'Index1    '    .10504E-04   1.0000          .0000       10.000    
     3 'Normalizat'    1.4710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69453       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.

 FCN=   9435.097     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      204 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2468        4.5414        .56219E-02    .55146E-04
   2  Index1        .32237E-10    1.0116        .50000    ** at limit **
   3  Normalizat    1.4711        .23185        .81963E-01    .10309E-03
   4  Prefactor     .69452        .12500        .61370E-01    .10774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24677
  Index1     = 3.2237e-11
  Normalizat = 1.47107
  Prefactor  = 0.694516
 **********
 **   18 **HESSE 
 **********

 FCN=   9435.097     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2468        4.5160        .22488E-03   -1.5348    
   2  Index1        .32237E-10    1.1297        .61172E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4711        .28476        .36279E-03   -.78595    
   4  Prefactor     .69452        .15357        .27146E-03   -1.0374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22034e-11
Minuit parameter uncertainties:
  1  4.51649
  2  1.23093e-05
  3  0.285065
  4  0.153659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369168': 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) = 9435.09723289
delta logL = 0.440735918439

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.247e+00  4.516e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  3.224e-11  1.231e-05  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:  6.945e-01  1.537e-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.471e+00  2.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.78e-09 +/- 5.26e-09
Energy Flux (Free Index): 8.64e-06 +/- 1.20e-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/369168/cmap_HighResolution_491011201_491270401_4FGL_J2234.7+0943_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-05', comment='SUCCESS', energy_flux2='8.64e-06', dlogl='4.41e-01', photon_flux2='3.78e-09', job_status='DONE', time_completed='2021-09-28 15:25:24.082341', photon_index_error2='0.00', photon_index2='0.00', ts='0.21', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='4.86e-08', energy_flux_error2='1.20e-05', EG='1.47', time_epoch_completed='1632867924.08', return_code='0', job_id='369168', GAL2='0.69', EG2='1.47', return_code2='0', photon_flux_error2='5.26e-09', ts2='1.10', photon_index='0.94' WHERE bin_id='971' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:25:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 369168: <4FGL_J2234.7+0943_daily_bin971> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin971> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 15:10:35 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:10:37 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:10:37 2021
Terminated at Tue Sep 28 15:25:24 2021
Results reported at Tue Sep 28 15:25:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin971 338.691 9.732 491011201 491270401 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 :                                   664.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             248.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

