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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin473
RA = 338.691, Dec = 9.732
tmin = 361929601, tmax = 362188801
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='364997', job_status='RUN', time_executed='2021-09-28 15:04:00.379781', time_epoch_executed='1632866640.38' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364997

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364997/ft1_4FGL_J2234.7+0943_daily_bin473.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364997/ft2_4FGL_J2234.7+0943_daily_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364997/ft1_4FGL_J2234.7+0943_daily_bin473.fits outfile=/scratch/kocevski/364997/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin473.fits ra=338.691 dec=9.732 rad=12.0 tmin=361929601.0 tmax=362188801.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 5.50
user 5.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/364997/ft2_4FGL_J2234.7+0943_daily_bin473.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/364997/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin473.fits evtable="EVENTS" outfile="/scratch/kocevski/364997/ft1_filtered_4FGL_J2234.7+0943_daily_bin473.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364997/ft1_filtered_4FGL_J2234.7+0943_daily_bin473.fits" evtable="EVENTS" scfile=/scratch/kocevski/364997/ft2_4FGL_J2234.7+0943_daily_bin473.fits sctable="SC_DATA" outfile=/scratch/kocevski/364997/ltcube_361929601_362188801_4FGL_J2234.7+0943_daily_bin473.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/364997/ft2_4FGL_J2234.7+0943_daily_bin473.fits
.....................!
real 11.70
user 11.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364997/ft1_filtered_4FGL_J2234.7+0943_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/364997/ft2_4FGL_J2234.7+0943_daily_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/364997/ltcube_361929601_362188801_4FGL_J2234.7+0943_daily_bin473.fits outfile=/scratch/kocevski/364997/expmap_361929601_362188801_4FGL_J2234.7+0943_daily_bin473.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/364997/ltcube_361929601_362188801_4FGL_J2234.7+0943_daily_bin473.fits
.....................!
real 189.95
user 185.29
sys 4.30

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/364997/ft1_filtered_4FGL_J2234.7+0943_daily_bin473.fits scfile=/scratch/kocevski/364997/ft2_4FGL_J2234.7+0943_daily_bin473.fits outfile=/scratch/kocevski/364997/cmap_361929601_362188801_4FGL_J2234.7+0943_daily_bin473.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364997/ft1_filtered_4FGL_J2234.7+0943_daily_bin473.fits scfile=/scratch/kocevski/364997/ft2_4FGL_J2234.7+0943_daily_bin473.fits outfile=/scratch/kocevski/364997/cmap_HighResolution_361929601_362188801_4FGL_J2234.7+0943_daily_bin473.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/364997/ft1_filtered_4FGL_J2234.7+0943_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/364997/ft2_4FGL_J2234.7+0943_daily_bin473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/364997/Model_4FGL_J2234.7+0943_daily_bin473.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/364997/ft1_filtered_4FGL_J2234.7+0943_daily_bin473.fits.....................!
real 71.48
user 70.20
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    50.788       1.0000         .10000E-03   10000.    
     3 'norm      '    .10900E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15632E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.953       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.264       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2475       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9109       1.0000         .10000E-03   10000.    
    12 'norm      '    .54807       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.801       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11727E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.077       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.415       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5233       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64920       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=   6886.043     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     3237 TOTAL
                     EDM=   .87E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4762       -.35727E-07** at limit **
   2  norm          50.786        29.553       -.49379E-07    .19094E-04
   3  norm          .33661E-03    .40422       -.34563E-07** at limit **
   4  Prefactor     .10000E-03    18.385       -.57120E-06** at limit **
   5  Prefactor     18.951        23.407        .11251E-05    .17915E-04
   6  Prefactor     16.258        28.085        .66697E-06    .19832E-04
   7  norm          .10000E-03    .91388       -.94877E-08** at limit **
   8  Prefactor     .10000E-03    31.459        .75931E-07** at limit **
   9  Prefactor     3.2095        11.258        .57009E-06   -.67156E-04
  10  Prefactor     1.2474        .26211        .36442E-07   -.96548E-04
  11  Prefactor     4.9109        6.8575       -.33460E-05   -.74121E-05
  12  norm          .54837        1.3232       -.55003E-07   -.65118E-04
  13  Prefactor     .10000E-03    16.942       -.81237E-07** at limit **
  14  Prefactor     10.801        12.396        .29877E-06    .10285E-05
  15  Prefactor     .10000E-03    5.4733        .11233E-07** at limit **
  16  Prefactor     .11636E-01    .30342E-01   -.15693E-07   -.17294E-02
  17  Prefactor     6.0959        47.914        .34638E-06   -.55234E-05
  18  Prefactor     .10000E-03    4.4995        .77745E-07** at limit **
  19  Prefactor     20.079        13.021       -.54912E-07   -.36858E-06
  20  Prefactor     26.418        30.180       -.14730E-05   -.53879E-06
  21  Normalizat    1.5231        .22337       -.12315E-06    .71115E-04
  22  Prefactor     .64924        .11804        .26048E-06    .54266E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 50.7861
  norm       = 0.000336608
  Prefactor  = 0.000100003
  Prefactor  = 18.9513
  Prefactor  = 16.2582
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.20945
  Prefactor  = 1.24735
  Prefactor  = 4.91093
  norm       = 0.548368
  Prefactor  = 0.0001
  Prefactor  = 10.8008
  Prefactor  = 0.0001
  Prefactor  = 0.0116361
  Prefactor  = 6.09593
  Prefactor  = 0.0001
  Prefactor  = 20.0787
  Prefactor  = 26.4179
  Normalizat = 1.52315
  Prefactor  = 0.649243
 **********
 **   18 **HESSE 
 **********

 FCN=   6886.043     FROM HESSE     STATUS=OK           364 CALLS     3601 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5144        .19675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          50.786        29.504        .56274E-04   -1.4281    
   3  norm          .33661E-03    .87332        .18401E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    212.17        .66774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.951        23.363        .91998E-04   -1.4837    
   6  Prefactor     16.258        27.853        .99312E-04   -1.4901    
   7  norm          .10000E-03    .91436        .77469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2095        11.824        .11309E-02   -1.5350    
  10  Prefactor     1.2474        .26253        .18319E-04   -1.5485    
  11  Prefactor     4.9109        6.8547        .18150E-03   -1.5265    
  12  norm          .54837        1.2468        .13870E-02   -1.5560    
  13  Prefactor     .10000E-03    17.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.801        12.319        .12191E-03   -1.5051    
  15  Prefactor     .10000E-03    5.4756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11636E-01    .21852        .18163E-03   -1.5686    
  17  Prefactor     6.0959        48.941        .81343E-03   -1.5214    
  18  Prefactor     .10000E-03    4.5575        .17182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.079        13.041        .89389E-04   -1.4811    
  20  Prefactor     26.418        30.318        .77945E-04   -1.4680    
  21  Normalizat    1.5231        .27120        .27461E-03   -.77130    
  22  Prefactor     .64924        .14085        .21821E-03   -1.0555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16038e-08
Minuit parameter uncertainties:
  1  2.43705e-07
  2  29.5127
  3  0.02875
  4  0.00148606
  5  23.3742
  6  27.8749
  7  1.78289e-07
  8  2.64194e-05
  9  11.8327
  10  0.262532
  11  6.85584
  12  1.2469
  13  1.88579e-06
  14  12.3223
  15  2.1109e-07
  16  0.100416
  17  34.5836
  18  1.18089e-06
  19  13.0432
  20  30.336
  21  0.271455
  22  0.140929
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.911e+00  6.856e+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.492e-01  1.409e-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.523e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/364997/likelihoodResults_361929601_362188801_4FGL_J2234.7+0943_daily_bin473.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) = 6885.54033803
delta logL = 0.502718212952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6885.53550467
delta logL = 0.507551573211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1726       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9075       1.0000          .0000       10.000    
     3 'Normalizat'    1.5025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65130       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=   6885.536     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      287 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1729        5.4959        .13512E-03    .29432E-03
   2  Index1        1.9077        .98813        .82497E-02    .57427E-04
   3  Normalizat    1.5024        .25543        .27590E-03    .21114E-03
   4  Prefactor     .65135        .13867        .21761E-03    .34616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17293
  Index1     = 1.90769
  Normalizat = 1.50242
  Prefactor  = 0.651347
 **********
 **   18 **HESSE 
 **********

 FCN=   6885.536     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1729        4.7296        .54047E-05   -1.5352    
   2  Index1        1.9077        .85227        .32999E-03   -.66678    
   3  Normalizat    1.5024        .25488        .55181E-04   -.77710    
   4  Prefactor     .65135        .13853        .87045E-05   -1.0547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08242e-10
Minuit parameter uncertainties:
  1  4.73018
  2  0.8591
  3  0.255098
  4  0.138607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364997': 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) = 6885.53550455
delta logL = 0.507551693581

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.173e+00  4.730e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.908e+00  8.591e-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:  6.513e-01  1.386e-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.502e+00  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.91 +/- 0.86
Photon Flux (Free Index): 4.48e-08 +/- 5.06e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.22e-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/364997/cmap_HighResolution_361929601_362188801_4FGL_J2234.7+0943_daily_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-05', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='5.08e-01', photon_flux2='4.48e-08', job_status='DONE', time_completed='2021-09-28 15:16:16.616978', photon_index_error2='0.86', photon_index2='1.91', ts='0.87', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='6.24e-08', energy_flux_error2='1.22e-05', EG='1.52', time_epoch_completed='1632867376.62', return_code='0', job_id='364997', GAL2='0.65', EG2='1.50', return_code2='0', photon_flux_error2='5.06e-08', ts2='1.88', photon_index='0.94' WHERE bin_id='473' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:16:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 364997: <4FGL_J2234.7+0943_daily_bin473> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin473> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 15:00:59 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:01:00 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:01:00 2021
Terminated at Tue Sep 28 15:16:16 2021
Results reported at Tue Sep 28 15:16:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin473 338.691 9.732 361929601 362188801 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 :                                   735.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

