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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin720
RA = 338.691, Dec = 9.732
tmin = 425952001, tmax = 426211201
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='366469', job_status='RUN', time_executed='2021-09-28 15:06:24.220730', time_epoch_executed='1632866784.22' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366469

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366469/ft1_4FGL_J2234.7+0943_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366469/ft2_4FGL_J2234.7+0943_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366469/ft1_4FGL_J2234.7+0943_daily_bin720.fits outfile=/scratch/kocevski/366469/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin720.fits ra=338.691 dec=9.732 rad=12.0 tmin=425952001.0 tmax=426211201.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.69
user 3.45
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366469/ft1_filtered_4FGL_J2234.7+0943_daily_bin720.fits" evtable="EVENTS" scfile=/scratch/kocevski/366469/ft2_4FGL_J2234.7+0943_daily_bin720.fits sctable="SC_DATA" outfile=/scratch/kocevski/366469/ltcube_425952001_426211201_4FGL_J2234.7+0943_daily_bin720.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/366469/ft2_4FGL_J2234.7+0943_daily_bin720.fits
.....................!
real 11.91
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366469/ft1_filtered_4FGL_J2234.7+0943_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/366469/ft2_4FGL_J2234.7+0943_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/366469/ltcube_425952001_426211201_4FGL_J2234.7+0943_daily_bin720.fits outfile=/scratch/kocevski/366469/expmap_425952001_426211201_4FGL_J2234.7+0943_daily_bin720.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/366469/ltcube_425952001_426211201_4FGL_J2234.7+0943_daily_bin720.fits
.....................!
real 190.55
user 185.81
sys 4.37

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/366469/ft1_filtered_4FGL_J2234.7+0943_daily_bin720.fits scfile=/scratch/kocevski/366469/ft2_4FGL_J2234.7+0943_daily_bin720.fits outfile=/scratch/kocevski/366469/cmap_425952001_426211201_4FGL_J2234.7+0943_daily_bin720.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366469/ft1_filtered_4FGL_J2234.7+0943_daily_bin720.fits scfile=/scratch/kocevski/366469/ft2_4FGL_J2234.7+0943_daily_bin720.fits outfile=/scratch/kocevski/366469/cmap_HighResolution_425952001_426211201_4FGL_J2234.7+0943_daily_bin720.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/366469/ft1_filtered_4FGL_J2234.7+0943_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/366469/ft2_4FGL_J2234.7+0943_daily_bin720.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366469/Model_4FGL_J2234.7+0943_daily_bin720.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/366469/ft1_filtered_4FGL_J2234.7+0943_daily_bin720.fits.....................!
real 125.97
user 123.79
sys 1.69

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6008       1.0000         .10000E-03   10000.    
     2 'norm      '    27.821       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4626       1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.723       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2743       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.384       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .55221       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.733       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.180       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.450       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.672       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.459       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89099       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96103       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=   11869.44     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2331 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6010        4.2180        .17891E-06   -.17018E-03
   2  norm          27.818        33.799       -.57930E-05    .94359E-05
   3  norm          1.7610        1.0231       -.12274E-06   -.35150E-03
   4  Prefactor     38.433        25.487        .10046E-05    .54767E-04
   5  Prefactor     6.4553        24.365       -.22623E-04   -.16958E-04
   6  Prefactor     45.719        32.714       -.56104E-05    .24852E-04
   7  norm          2.2747        3.8502       -.84895E-06   -.78477E-03
   8  Prefactor     .10000E-03    2.7896       -.57109E-08** at limit **
   9  Prefactor     64.385        25.703        .54924E-06    .12542E-04
  10  Prefactor     .55226        .21344       -.42321E-07   -.59951E-03
  11  Prefactor     14.732        8.2450       -.12654E-06    .27046E-04
  12  norm          .10000E-03    .48313       -.12776E-07** at limit **
  13  Prefactor     19.178        27.781       -.37920E-05   -.65612E-05
  14  Prefactor     .10000E-03    6.8855       -.10863E-06** at limit **
  15  Prefactor     .10000E-03    11.452        .10623E-06** at limit **
  16  Prefactor     11.450        .52542       -.19773E-07    .30537E-03
  17  Prefactor     11.669        38.246       -.95822E-05    .10193E-05
  18  Prefactor     .10000E-03    2.1164        .78803E-09** at limit **
  19  Prefactor     .10000E-03    4.0177       -.76646E-08** at limit **
  20  Prefactor     17.460        17.563        .20407E-05    .17356E-04
  21  Normalizat    .89075        .26216        .49353E-05   -.23432E-04
  22  Prefactor     .96117        .13036        .55790E-06    .12062E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.60099
  norm       = 27.8179
  norm       = 1.76103
  Prefactor  = 38.4335
  Prefactor  = 6.45535
  Prefactor  = 45.7187
  norm       = 2.27466
  Prefactor  = 0.0001
  Prefactor  = 64.3848
  Prefactor  = 0.552258
  Prefactor  = 14.7323
  norm       = 0.0001
  Prefactor  = 19.1784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4504
  Prefactor  = 11.6686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4601
  Normalizat = 0.890746
  Prefactor  = 0.961166
 **********
 **   18 **HESSE 
 **********

 FCN=   11869.44     FROM HESSE     STATUS=OK           348 CALLS     2679 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6010        4.2146        .13668E-03   -1.5121    
   2  norm          27.818        33.740        .75953E-04   -1.4653    
   3  norm          1.7610        1.0195        .81121E-04   -1.5443    
   4  Prefactor     38.433        25.494        .64652E-04   -1.4467    
   5  Prefactor     6.4553        24.394        .15787E-03   -1.5200    
   6  Prefactor     45.719        32.662        .59294E-04   -1.4355    
   7  norm          2.2747        3.8636        .27075E-03   -1.5406    
   8  Prefactor     .10000E-03    2.7908        .17770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     64.385        25.736        .50013E-04   -1.4101    
  10  Prefactor     .55226        .21147        .29679E-04   -1.5559    
  11  Prefactor     14.732        8.2507        .10435E-03   -1.4940    
  12  norm          .10000E-03    .48388        .73949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.178        27.795        .91453E-04   -1.4832    
  14  Prefactor     .10000E-03    6.8928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.450        .52613        .15961E-04   -1.5031    
  17  Prefactor     11.669        38.398        .11726E-03   -1.5025    
  18  Prefactor     .10000E-03    2.1195        .15478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.460        17.570        .95855E-04   -1.4872    
  21  Normalizat    .89075        .29951        .50814E-03   -.96786    
  22  Prefactor     .96117        .15106        .26218E-03   -.94035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16923e-10
Minuit parameter uncertainties:
  1  4.21471
  2  33.7633
  3  1.01952
  4  25.5011
  5  24.4322
  6  32.6751
  7  3.86405
  8  1.69002e-06
  9  25.74
  10  0.211471
  11  8.25129
  12  7.85563e-07
  13  27.8134
  14  8.70719e-06
  15  5.27037e-06
  16  0.526128
  17  38.4793
  18  2.30269e-06
  19  4.754e-06
  20  17.575
  21  0.30007
  22  0.151125
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.473e+01  8.251e+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:  9.612e-01  1.511e-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:  8.907e-01  3.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.29
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 3.78e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 1.56e-05

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) = 11868.8561606
delta logL = 0.579758625554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11868.7975672
delta logL = 0.638351964028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.864       1.0000         .10000E-03   10000.    
     2 'Index1    '    .29822E-06   1.0000          .0000       10.000    
     3 'Normalizat'    .89877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96622       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=   11868.80     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      240 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.867        7.9795        .27920E-02   -.79620E-04
   2  Index1        .37371E-10    .95612        .50000    ** at limit **
   3  Normalizat    .89893        .24150        .11415        .16313E-04
   4  Prefactor     .96618        .12987        .45843E-01   -.42474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8672
  Index1     = 3.73712e-11
  Normalizat = 0.898931
  Prefactor  = 0.96618
 **********
 **   18 **HESSE 
 **********

 FCN=   11868.80     FROM HESSE     STATUS=OK            35 CALLS      275 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.867        7.9772        .11168E-03   -1.4990    
   2  Index1        .37371E-10    .95518        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89893        .27761        .50633E-03   -.96498    
   4  Prefactor     .96618        .14994        .26177E-03   -.93865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27871e-12
Minuit parameter uncertainties:
  1  7.97789
  2  1.21482e-05
  3  0.278053
  4  0.15
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366469': 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) = 11868.7975668
delta logL = 0.638352383539

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.287e+01  7.978e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  3.737e-11  1.215e-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:  9.662e-01  1.500e-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:  8.989e-01  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.52
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 1.50e-08 +/- 9.30e-09
Energy Flux (Free Index): 3.43e-05 +/- 2.12e-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/366469/cmap_HighResolution_425952001_426211201_4FGL_J2234.7+0943_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.78e-08', energy_flux2='3.43e-05', photon_flux_error='2.12e-08', dlogl='6.38e-01', energy_flux='2.79e-05', photon_flux2='1.50e-08', job_status='DONE', time_completed='2021-09-28 15:20:47.788536', photon_index_error2='0.00', photon_index2='0.00', ts='18.29', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='0.89', time_epoch_completed='1632867647.79', return_code='0', job_id='366469', GAL2='0.97', EG2='0.90', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='9.30e-09', ts2='19.52', photon_index='0.94' WHERE bin_id='720' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:20:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 366469: <4FGL_J2234.7+0943_daily_bin720> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin720> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:05:24 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:05:26 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:05:26 2021
Terminated at Tue Sep 28 15:20:48 2021
Results reported at Tue Sep 28 15:20:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin720 338.691 9.732 425952001 426211201 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 :                                   863.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             387.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

