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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin815
RA = 338.691, Dec = 9.732
tmin = 450576001, tmax = 450835201
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='366613', job_status='RUN', time_executed='2021-09-28 15:06:31.985620', time_epoch_executed='1632866791.99' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='815'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366613

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366613/ft1_4FGL_J2234.7+0943_daily_bin815.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366613/ft2_4FGL_J2234.7+0943_daily_bin815.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366613/ft1_4FGL_J2234.7+0943_daily_bin815.fits outfile=/scratch/kocevski/366613/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin815.fits ra=338.691 dec=9.732 rad=12.0 tmin=450576001.0 tmax=450835201.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.30
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366613/ft1_filtered_4FGL_J2234.7+0943_daily_bin815.fits" evtable="EVENTS" scfile=/scratch/kocevski/366613/ft2_4FGL_J2234.7+0943_daily_bin815.fits sctable="SC_DATA" outfile=/scratch/kocevski/366613/ltcube_450576001_450835201_4FGL_J2234.7+0943_daily_bin815.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/366613/ft2_4FGL_J2234.7+0943_daily_bin815.fits
.....................!
real 12.38
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366613/ft1_filtered_4FGL_J2234.7+0943_daily_bin815.fits evtable="EVENTS" scfile=/scratch/kocevski/366613/ft2_4FGL_J2234.7+0943_daily_bin815.fits sctable="SC_DATA" expcube=/scratch/kocevski/366613/ltcube_450576001_450835201_4FGL_J2234.7+0943_daily_bin815.fits outfile=/scratch/kocevski/366613/expmap_450576001_450835201_4FGL_J2234.7+0943_daily_bin815.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/366613/ltcube_450576001_450835201_4FGL_J2234.7+0943_daily_bin815.fits
.....................!
real 190.95
user 185.90
sys 4.72

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/366613/ft1_filtered_4FGL_J2234.7+0943_daily_bin815.fits scfile=/scratch/kocevski/366613/ft2_4FGL_J2234.7+0943_daily_bin815.fits outfile=/scratch/kocevski/366613/cmap_450576001_450835201_4FGL_J2234.7+0943_daily_bin815.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366613/ft1_filtered_4FGL_J2234.7+0943_daily_bin815.fits scfile=/scratch/kocevski/366613/ft2_4FGL_J2234.7+0943_daily_bin815.fits outfile=/scratch/kocevski/366613/cmap_HighResolution_450576001_450835201_4FGL_J2234.7+0943_daily_bin815.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/366613/ft1_filtered_4FGL_J2234.7+0943_daily_bin815.fits evtable="EVENTS" scfile=/scratch/kocevski/366613/ft2_4FGL_J2234.7+0943_daily_bin815.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366613/Model_4FGL_J2234.7+0943_daily_bin815.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/366613/ft1_filtered_4FGL_J2234.7+0943_daily_bin815.fits.....................!
real 81.51
user 80.12
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53860       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .76398       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .99011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6663       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9127       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4445       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29870       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54534       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.132       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3735       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85325       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=   7991.867     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2397 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .68198       -.29700E-07** at limit **
   2  norm          .10000E-03    5.8752        .45170E-06** at limit **
   3  norm          1.0984        1.0176       -.34375E-06   -.13788E-02
   4  Prefactor     .10000E-03    7.4072        .18731E-05** at limit **
   5  Prefactor     .10000E-03    7.1777       -.76772E-06** at limit **
   6  Prefactor     .10000E-03    26.955        .31789E-05** at limit **
   7  norm          .10000E-03    4.4517       -.20357E-06** at limit **
   8  Prefactor     .10000E-03    7.0232       -.25354E-05** at limit **
   9  Prefactor     .56725        6.6128       -.17405E-05   -.48204E-04
  10  Prefactor     .76411        .22847       -.73262E-07   -.62871E-03
  11  Prefactor     .10018E-03    5.1601        .16135E-05** at limit **
  12  norm          .10000E-03    .39501        .29040E-09** at limit **
  13  Prefactor     .10000E-03    13.211       -.47059E-05** at limit **
  14  Prefactor     .10000E-03    9.3676        .25077E-05** at limit **
  15  Prefactor     4.6587        36.762       -.20922E-04   -.51330E-05
  16  Prefactor     1.9127        .25458        .47018E-07    .34503E-02
  17  Prefactor     8.4102        28.764       -.75778E-04    .38841E-05
  18  Prefactor     .29616        5.2385       -.15017E-05    .38648E-04
  19  Prefactor     .55838        5.8531        .71302E-06   -.22249E-03
  20  Prefactor     15.130        20.449       -.10558E-05    .26769E-04
  21  Normalizat    1.3738        .22358        .53751E-05    .72461E-04
  22  Prefactor     .85315        .11965        .98090E-06    .33937E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.09844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.567247
  Prefactor  = 0.764111
  Prefactor  = 0.000100175
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.65871
  Prefactor  = 1.91268
  Prefactor  = 8.41021
  Prefactor  = 0.296164
  Prefactor  = 0.558377
  Prefactor  = 15.1296
  Normalizat = 1.37379
  Prefactor  = 0.85315
 **********
 **   18 **HESSE 
 **********

 FCN=   7991.867     FROM HESSE     STATUS=OK           348 CALLS     2745 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .68545        .72092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.8782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0984        .94717        .83262E-03   -1.5498    
   4  Prefactor     .10000E-03    7.4154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.6042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .56725        44.555        .44303E-02   -1.5557    
  10  Prefactor     .76411        .22604        .22057E-04   -1.5533    
  11  Prefactor     .10018E-03    24.761        .39023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .39580        .54868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.4090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6587        36.888        .18630E-03   -1.5276    
  16  Prefactor     1.9127        .25540        .15127E-04   -1.5431    
  17  Prefactor     8.4102        28.826        .13795E-03   -1.5128    
  18  Prefactor     .29616        35.587        .38783E-02   -1.5599    
  19  Prefactor     .55838        48.092        .41445E-02   -1.5559    
  20  Prefactor     15.130        20.452        .10296E-03   -1.4930    
  21  Normalizat    1.3738        .26598        .31944E-03   -.81390    
  22  Prefactor     .85315        .14269        .21575E-03   -.97798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11679e-08
Minuit parameter uncertainties:
  1  3.14398e-06
  2  9.31885e-06
  3  0.947186
  4  2.53587e-05
  5  1.95942e-05
  6  0.000163445
  7  3.61372e-05
  8  2.44445e-05
  9  10.0615
  10  0.226038
  11  0.00416993
  12  9.68507e-07
  13  5.59007e-06
  14  3.78003e-05
  15  26.2404
  16  0.2554
  17  28.8738
  18  6.49577
  19  10.3718
  20  20.4613
  21  0.266243
  22  0.142749
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.002e-04  4.170e-03  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:  8.532e-01  1.427e-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.374e+00  2.662e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/366613/likelihoodResults_450576001_450835201_4FGL_J2234.7+0943_daily_bin815.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) = 7991.86759885
delta logL = -0.000189964443052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7991.86739571
delta logL = 1.31750457513e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16716E-02   1.0000         .10000E-03   10000.    
     2 'Index1    '    1.1226       1.0000          .0000       10.000    
     3 'Normalizat'    1.3734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85335       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7991.731     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      237 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74010        3.4246       -.72982E-06   -.16516E-04
   2  Index1        2.3197        2.1101        .75416E-05   -.24642E-05
   3  Normalizat    1.3608        .26239        .51148E-05    .26211E-04
   4  Prefactor     .85197        .14307       -.27180E-05    .36999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.740096
  Index1     = 2.3197
  Normalizat = 1.36083
  Prefactor  = 0.851971
 **********
 **   18 **HESSE 
 **********

 FCN=   7991.731     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      280 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74010        69.029        .10192E-01   -1.5536    
   2  Index1        2.3197        5.2118        .74123E-01   -.56576    
   3  Normalizat    1.3608        .62671E-01    .72444E-01   -.81768    
   4  Prefactor     .85197        .33622E-01    .44408E-01   -.97840    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.35947e-08
Minuit parameter uncertainties:
  1  14.3113
  2  8.89588
  3  0.0626747
  4  0.0336226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366613': 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) = 7991.73108542
delta logL = 0.136323461123

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  7.401e-01  1.431e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.320e+00  8.896e+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:  8.520e-01  3.362e-02  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.361e+00  6.267e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.691 9.732

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/366613/cmap_HighResolution_450576001_450835201_4FGL_J2234.7+0943_daily_bin815.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-05', job_status='DONE', photon_flux_upper_limit='5.13e-08', time_completed='2021-09-28 15:18:37.065309', job_id='366613', GAL2='0.85', fit_tolerance='1e-08', EG2='1.36', EG='1.37', time_epoch_completed='1632867517.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.36e-01', ts2='0.28', photon_index_error='0.00', photon_index='0.94' WHERE bin_id='815' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:18:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 366613: <4FGL_J2234.7+0943_daily_bin815> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin815> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:05:36 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:05:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:05:37 2021
Terminated at Tue Sep 28 15:18:37 2021
Results reported at Tue Sep 28 15:18:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin815 338.691 9.732 450576001 450835201 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 :                                   724.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            781 sec.

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

