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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin898
RA = 338.691, Dec = 9.732
tmin = 472089601, tmax = 472348801
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='369002', job_status='RUN', time_executed='2021-09-28 15:13:31.023906', time_epoch_executed='1632867211.02' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369002

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369002/ft1_4FGL_J2234.7+0943_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369002/ft2_4FGL_J2234.7+0943_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369002/ft1_4FGL_J2234.7+0943_daily_bin898.fits outfile=/scratch/kocevski/369002/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin898.fits ra=338.691 dec=9.732 rad=12.0 tmin=472089601.0 tmax=472348801.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.48
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369002/ft2_4FGL_J2234.7+0943_daily_bin898.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/369002/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin898.fits evtable="EVENTS" outfile="/scratch/kocevski/369002/ft1_filtered_4FGL_J2234.7+0943_daily_bin898.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/369002/ft1_filtered_4FGL_J2234.7+0943_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/369002/ft2_4FGL_J2234.7+0943_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/369002/ltcube_472089601_472348801_4FGL_J2234.7+0943_daily_bin898.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/369002/ft2_4FGL_J2234.7+0943_daily_bin898.fits
.....................!
real 13.05
user 12.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369002/ft1_filtered_4FGL_J2234.7+0943_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/369002/ft2_4FGL_J2234.7+0943_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/369002/ltcube_472089601_472348801_4FGL_J2234.7+0943_daily_bin898.fits outfile=/scratch/kocevski/369002/expmap_472089601_472348801_4FGL_J2234.7+0943_daily_bin898.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/369002/ltcube_472089601_472348801_4FGL_J2234.7+0943_daily_bin898.fits
.....................!
real 190.92
user 185.63
sys 4.70

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/369002/ft1_filtered_4FGL_J2234.7+0943_daily_bin898.fits scfile=/scratch/kocevski/369002/ft2_4FGL_J2234.7+0943_daily_bin898.fits outfile=/scratch/kocevski/369002/cmap_472089601_472348801_4FGL_J2234.7+0943_daily_bin898.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369002/ft1_filtered_4FGL_J2234.7+0943_daily_bin898.fits scfile=/scratch/kocevski/369002/ft2_4FGL_J2234.7+0943_daily_bin898.fits outfile=/scratch/kocevski/369002/cmap_HighResolution_472089601_472348801_4FGL_J2234.7+0943_daily_bin898.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.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/369002/ft1_filtered_4FGL_J2234.7+0943_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/369002/ft2_4FGL_J2234.7+0943_daily_bin898.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/369002/Model_4FGL_J2234.7+0943_daily_bin898.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/369002/ft1_filtered_4FGL_J2234.7+0943_daily_bin898.fits.....................!
real 92.00
user 90.49
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27323       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .88050       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29457E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.122       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4861       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9733       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9230       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4776       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2330       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7786       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39605       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3962       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.488       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3358       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0125       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0664       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=   8842.297     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2081 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26754        1.2899       -.12550E-06   -.56116E-04
   2  norm          .10000E-03    7.5545       -.11610E-06** at limit **
   3  norm          .88077        1.0926       -.76436E-06   -.34302E-03
   4  Prefactor     .10000E-03    14.265       -.24636E-05** at limit **
   5  Prefactor     16.135        16.430        .35107E-05    .52506E-04
   6  Prefactor     .10000E-03    18.385        .28785E-05** at limit **
   7  norm          .10000E-03    1.5652       -.62465E-07** at limit **
   8  Prefactor     4.4902        14.960        .11637E-05    .12384E-04
   9  Prefactor     7.9701        17.159       -.19436E-06    .24296E-04
  10  Prefactor     2.9229        .37484       -.14753E-07    .90536E-03
  11  Prefactor     9.4791        7.9532       -.12506E-06    .77226E-05
  12  norm          1.2332        1.1706       -.54952E-08    .50635E-05
  13  Prefactor     .10000E-03    13.105        .47523E-06** at limit **
  14  Prefactor     6.7723        9.6114       -.11707E-06    .77031E-05
  15  Prefactor     .41114        58.695       -.21555E-04    .69634E-05
  16  Prefactor     2.3961        .27265        .26184E-07    .44848E-03
  17  Prefactor     2.3020        39.583       -.42204E-05   -.80130E-05
  18  Prefactor     17.489        9.6013       -.16009E-05    .15747E-03
  19  Prefactor     .10000E-03    15.853       -.39385E-05** at limit **
  20  Prefactor     1.2487        154.66        .13417E-04   -.23308E-04
  21  Normalizat    1.0127        .25424        .48721E-06    .27932E-03
  22  Prefactor     1.0663        .13599        .12926E-05    .19438E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.267535
  norm       = 0.0001
  norm       = 0.880765
  Prefactor  = 0.000100004
  Prefactor  = 16.1346
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.49016
  Prefactor  = 7.97012
  Prefactor  = 2.92295
  Prefactor  = 9.47912
  norm       = 1.23319
  Prefactor  = 0.0001
  Prefactor  = 6.7723
  Prefactor  = 0.411145
  Prefactor  = 2.3961
  Prefactor  = 2.30195
  Prefactor  = 17.4892
  Prefactor  = 0.0001
  Prefactor  = 1.2487
  Normalizat = 1.01268
  Prefactor  = 1.06633
 **********
 **   18 **HESSE 
 **********

 FCN=   8842.297     FROM HESSE     STATUS=OK           354 CALLS     2435 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26754        5.1739        .20573E-02   -1.5605    
   2  norm          .10000E-03    7.5602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .88077        1.0886        .10600E-03   -1.5520    
   4  Prefactor     .10000E-03    139.85        .67753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.135        16.582        .99750E-04   -1.4904    
   6  Prefactor     .10000E-03    18.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5713        .11487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4902        15.038        .19010E-03   -1.5284    
   9  Prefactor     7.9701        17.199        .14200E-03   -1.5143    
  10  Prefactor     2.9229        .37662        .18814E-04   -1.5366    
  11  Prefactor     9.4791        7.9604        .13017E-03   -1.5092    
  12  norm          1.2332        1.1732        .96298E-04   -1.5486    
  13  Prefactor     .10000E-03    13.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7723        9.6023        .15411E-03   -1.5187    
  15  Prefactor     .41114        57.623        .54240E-02   -1.5580    
  16  Prefactor     2.3961        .27251        .15468E-04   -1.5398    
  17  Prefactor     2.3020        39.700        .27057E-03   -1.5405    
  18  Prefactor     17.489        9.7093        .47888E-03   -1.4871    
  19  Prefactor     .10000E-03    15.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2487        161.80        .37959E-03   -1.5484    
  21  Normalizat    1.0127        .29461        .40710E-03   -.92607    
  22  Prefactor     1.0663        .15868        .22136E-03   -.90550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80618e-08
Minuit parameter uncertainties:
  1  2.35284
  2  6.75195e-06
  3  1.08863
  4  0.00145004
  5  16.5868
  6  6.32895e-05
  7  4.23385e-07
  8  15.0508
  9  17.2101
  10  0.376624
  11  7.96124
  12  1.17325
  13  1.39981e-05
  14  9.60451
  15  9.74317
  16  0.272515
  17  19.1339
  18  9.71016
  19  5.0803e-05
  20  28.5059
  21  0.295085
  22  0.158745
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  9.479e+00  7.961e+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:  1.066e+00  1.587e-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.013e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 2.43e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/369002/likelihoodResults_472089601_472348801_4FGL_J2234.7+0943_daily_bin898.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) = 8841.90483184
delta logL = 0.392196593317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8841.88918269
delta logL = 0.407845741918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0647       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.6745       1.0000          .0000       10.000    
     3 'Normalizat'    .99450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0695       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8841.889     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      292 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0644        7.6539        .16191E-03   -.96615E-04
   2  Index1        1.6746        .89835        .95669E-02    .48765E-03
   3  Normalizat    .99445        .28221        .40997E-03   -.47808E-04
   4  Prefactor     1.0695        .15737        .22087E-03   -.13490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.06445
  Index1     = 1.67458
  Normalizat = 0.994453
  Prefactor  = 1.0695
 **********
 **   18 **HESSE 
 **********

 FCN=   8841.889     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0644        6.8940        .64766E-05   -1.5215    
   2  Index1        1.6746        .81056        .19134E-02   -.72761    
   3  Normalizat    .99445        .28176        .16399E-04   -.93216    
   4  Prefactor     1.0695        .15734        .44174E-04   -.90447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73236e-11
Minuit parameter uncertainties:
  1  6.89489
  2  0.817068
  3  0.282181
  4  0.157406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369002': 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) = 8841.88918268
delta logL = 0.407845756807

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  6.064e+00  6.895e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.675e+00  8.171e-01  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:  1.069e+00  1.574e-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:  9.945e-01  2.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.67 +/- 0.82
Photon Flux (Free Index): 5.38e-08 +/- 5.41e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.33e-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/369002/cmap_HighResolution_472089601_472348801_4FGL_J2234.7+0943_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-05', comment='SUCCESS', photon_flux='2.43e-08', energy_flux2='1.84e-05', photon_flux_error='2.05e-08', dlogl='4.08e-01', energy_flux='1.80e-05', photon_flux2='5.38e-08', job_status='DONE', time_completed='2021-09-28 15:26:08.430914', photon_index_error2='0.82', photon_index2='1.67', ts='2.82', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='7.58e-08', energy_flux_error2='1.33e-05', EG='1.01', time_epoch_completed='1632867968.43', return_code='0', job_id='369002', GAL2='1.07', EG2='0.99', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.41e-08', ts2='3.63', photon_index='0.94' WHERE bin_id='898' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:26:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 369002: <4FGL_J2234.7+0943_daily_bin898> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin898 338.691 9.732 472089601 472348801 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 :                                   758.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

