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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin153
RA = 338.691, Dec = 9.732
tmin = 278985601, tmax = 279244801
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='363373', job_status='RUN', time_executed='2021-09-28 14:57:33.200042', time_epoch_executed='1632866253.2' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363373/ft1_4FGL_J2234.7+0943_daily_bin153.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363373/ft2_4FGL_J2234.7+0943_daily_bin153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363373/ft1_4FGL_J2234.7+0943_daily_bin153.fits outfile=/scratch/kocevski/363373/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin153.fits ra=338.691 dec=9.732 rad=12.0 tmin=278985601.0 tmax=279244801.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.83
user 3.54
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/363373/ft2_4FGL_J2234.7+0943_daily_bin153.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/363373/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin153.fits evtable="EVENTS" outfile="/scratch/kocevski/363373/ft1_filtered_4FGL_J2234.7+0943_daily_bin153.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/363373/ft1_filtered_4FGL_J2234.7+0943_daily_bin153.fits" evtable="EVENTS" scfile=/scratch/kocevski/363373/ft2_4FGL_J2234.7+0943_daily_bin153.fits sctable="SC_DATA" outfile=/scratch/kocevski/363373/ltcube_278985601_279244801_4FGL_J2234.7+0943_daily_bin153.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/363373/ft2_4FGL_J2234.7+0943_daily_bin153.fits
.....................!
real 12.07
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363373/ft1_filtered_4FGL_J2234.7+0943_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/363373/ft2_4FGL_J2234.7+0943_daily_bin153.fits sctable="SC_DATA" expcube=/scratch/kocevski/363373/ltcube_278985601_279244801_4FGL_J2234.7+0943_daily_bin153.fits outfile=/scratch/kocevski/363373/expmap_278985601_279244801_4FGL_J2234.7+0943_daily_bin153.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/363373/ltcube_278985601_279244801_4FGL_J2234.7+0943_daily_bin153.fits
.....................!
real 191.44
user 186.05
sys 4.97

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/363373/ft1_filtered_4FGL_J2234.7+0943_daily_bin153.fits scfile=/scratch/kocevski/363373/ft2_4FGL_J2234.7+0943_daily_bin153.fits outfile=/scratch/kocevski/363373/cmap_278985601_279244801_4FGL_J2234.7+0943_daily_bin153.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.691 yref=9.732 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363373/ft1_filtered_4FGL_J2234.7+0943_daily_bin153.fits scfile=/scratch/kocevski/363373/ft2_4FGL_J2234.7+0943_daily_bin153.fits outfile=/scratch/kocevski/363373/cmap_HighResolution_278985601_279244801_4FGL_J2234.7+0943_daily_bin153.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/363373/ft1_filtered_4FGL_J2234.7+0943_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/363373/ft2_4FGL_J2234.7+0943_daily_bin153.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/363373/Model_4FGL_J2234.7+0943_daily_bin153.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/363373/ft1_filtered_4FGL_J2234.7+0943_daily_bin153.fits.....................!
real 93.79
user 92.22
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8091       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1410       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.851       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4412       1.0000         .10000E-03   10000.    
     7 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3271       1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.903       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .45897       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4141       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.575       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.177       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12388E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5927       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2251       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1896       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84937       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0465       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=   9056.739     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2402 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8065        3.5110       -.98114E-07   -.22242E-03
   2  norm          1.1490        88.685        .55428E-05    .68487E-05
   3  norm          2.8531        1.0849        .24345E-07    .97652E-05
   4  Prefactor     14.855        25.643       -.51539E-05   -.10938E-03
   5  Prefactor     .10000E-03    25.834        .14116E-05** at limit **
   6  Prefactor     2.3037        92.279        .11166E-04    .14080E-04
   7  norm          .10000E-03    1.4796        .69318E-07** at limit **
   8  Prefactor     2.3263        7.5117        .56168E-05    .23543E-03
   9  Prefactor     48.870        19.787       -.12143E-05   -.34697E-04
  10  Prefactor     .10000E-03    .63270E-01   -.64373E-07** at limit **
  11  Prefactor     .43894        6.9173        .33847E-05   -.75962E-03
  12  norm          1.4149        1.3697        .15855E-06    .19508E-03
  13  Prefactor     26.527        27.069        .17060E-06   -.42495E-05
  14  Prefactor     10.149        14.206       -.18365E-05   -.21878E-04
  15  Prefactor     .10000E-03    21.549       -.57330E-06** at limit **
  16  Prefactor     4.5926        .34692        .87310E-08   -.36257E-03
  17  Prefactor     7.2641        36.033        .42094E-06   -.16394E-05
  18  Prefactor     7.2031        6.5937        .50139E-07   -.35388E-06
  19  Prefactor     .10000E-03    2.6305        .43953E-08** at limit **
  20  Prefactor     .10000E-03    12.929       -.46746E-07** at limit **
  21  Normalizat    .84956        .24116       -.10391E-05   -.19928E-03
  22  Prefactor     1.0463        .12619        .57047E-07   -.36650E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.80652
  norm       = 1.14905
  norm       = 2.85307
  Prefactor  = 14.8551
  Prefactor  = 0.0001
  Prefactor  = 2.30371
  norm       = 0.0001
  Prefactor  = 2.32634
  Prefactor  = 48.8701
  Prefactor  = 0.0001
  Prefactor  = 0.438938
  norm       = 1.41489
  Prefactor  = 26.5267
  Prefactor  = 10.1488
  Prefactor  = 0.0001
  Prefactor  = 4.59261
  Prefactor  = 7.26407
  Prefactor  = 7.20307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.849565
  Prefactor  = 1.04635
 **********
 **   18 **HESSE 
 **********

 FCN=   9056.739     FROM HESSE     STATUS=OK           354 CALLS     2756 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8065        3.4774        .11931E-03   -1.5186    
   2  norm          1.1490        90.339        .43513E-03   -1.5494    
   3  norm          2.8531        1.0851        .58999E-04   -1.5370    
   4  Prefactor     14.855        25.780        .10393E-03   -1.4937    
   5  Prefactor     .10000E-03    26.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3037        93.103        .26186E-03   -1.5404    
   7  norm          .10000E-03    1.4843        .11304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3263        7.6474        .13443E-02   -1.5403    
   9  Prefactor     48.870        19.744        .57343E-04   -1.4309    
  10  Prefactor     .10000E-03    .94441E-01    .45996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .43894        27.893        .41717E-02   -1.5575    
  12  norm          1.4149        1.3517        .10549E-03   -1.5470    
  13  Prefactor     26.527        27.098        .77710E-04   -1.4677    
  14  Prefactor     10.149        14.162        .12560E-03   -1.5071    
  15  Prefactor     .10000E-03    21.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5926        .34827        .14357E-04   -1.5279    
  17  Prefactor     7.2641        36.162        .14923E-03   -1.5169    
  18  Prefactor     7.2031        6.5931        .14960E-03   -1.5171    
  19  Prefactor     .10000E-03    2.6329        .15074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .84956        .27524        .41920E-03   -.98256    
  22  Prefactor     1.0463        .14694        .21315E-03   -.91200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38286e-09
Minuit parameter uncertainties:
  1  3.47748
  2  20.4079
  3  1.08506
  4  25.7991
  5  9.12503e-05
  6  29.3389
  7  3.43392e-06
  8  7.65063
  9  19.7465
  10  2.89611e-06
  11  7.00068
  12  1.35168
  13  27.1104
  14  14.1668
  15  1.56092e-05
  16  0.348275
  17  32.4461
  18  6.59379
  19  1.1014e-06
  20  7.25192e-06
  21  0.275698
  22  0.146997
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.389e-01  7.001e+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.046e+00  1.470e-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.496e-01  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/363373/likelihoodResults_278985601_279244801_4FGL_J2234.7+0943_daily_bin153.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9055.29851497
delta logL = 1.44086945057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9054.84162207
delta logL = 1.89776234556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10735E-02   1.0000         .10000E-03   10000.    
     2 'Index1    '    5.5738       1.0000          .0000       10.000    
     3 'Normalizat'    .69441       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1004       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=   9054.842     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      306 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10660E-02    .87837E-02    .49489E-03** at limit **
   2  Index1        5.5765        1.6399        .95541E-01   -.12401E-03
   3  Normalizat    .69463        .53367E-01    .10368        .21420E-04
   4  Prefactor     1.1003        .29962E-01    .37570E-01   -.98648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00106597
  Index1     = 5.57652
  Normalizat = 0.694628
  Prefactor  = 1.10032
 **********
 **   18 **HESSE 
 **********

 FCN=   9054.842     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      339 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10660E-02    .21866E-01    .20091E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        5.5765        3.0438        .36065E-02    .11556    
   3  Normalizat    .69463        .20136        .45963E-03   -1.0411    
   4  Prefactor     1.1003        .11153        .20841E-03   -.89456    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.3916e-10
Minuit parameter uncertainties:
  1  0.00919166
  2  3.27627
  3  0.201576
  4  0.111549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363373': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9054.84162105
delta logL = 1.89776337287

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.100e+00  1.115e-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:  6.946e-01  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.11
Ra Dec: 338.691 9.732
Photon Index (Free Index): 5.58 +/- 3.28
Photon Flux (Free Index): 1.10e-07 +/- 6.56e-08
Energy Flux (Free Index): 1.39e-05 +/- 9.06e-06

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/363373/cmap_HighResolution_278985601_279244801_4FGL_J2234.7+0943_daily_bin153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='1.90e+00', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-28 15:11:15.847096', photon_index_error2='3.28', photon_index2='5.58', ts='0.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='5.32e-08', energy_flux_error2='9.06e-06', EG='0.85', time_epoch_completed='1632867075.85', return_code='0', job_id='363373', GAL2='1.10', EG2='0.69', return_code2='102', photon_flux_error2='6.56e-08', ts2='4.11', photon_index='0.94' WHERE bin_id='153' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:11:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 363373: <4FGL_J2234.7+0943_daily_bin153> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin153> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:56:03 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:56:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:56:05 2021
Terminated at Tue Sep 28 15:11:16 2021
Results reported at Tue Sep 28 15:11:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin153 338.691 9.732 278985601 279244801 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 :                                   821.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

