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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin581
RA = 338.691, Dec = 9.732
tmin = 389923201, tmax = 390182401
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='365162', job_status='RUN', time_executed='2021-09-28 15:04:30.555133', time_epoch_executed='1632866670.56' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365162

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365162/ft1_4FGL_J2234.7+0943_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365162/ft2_4FGL_J2234.7+0943_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365162/ft1_4FGL_J2234.7+0943_daily_bin581.fits outfile=/scratch/kocevski/365162/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin581.fits ra=338.691 dec=9.732 rad=12.0 tmin=389923201.0 tmax=390182401.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.50
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365162/ft2_4FGL_J2234.7+0943_daily_bin581.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/365162/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin581.fits evtable="EVENTS" outfile="/scratch/kocevski/365162/ft1_filtered_4FGL_J2234.7+0943_daily_bin581.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365162/ft1_filtered_4FGL_J2234.7+0943_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/365162/ft2_4FGL_J2234.7+0943_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/365162/ltcube_389923201_390182401_4FGL_J2234.7+0943_daily_bin581.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/365162/ft2_4FGL_J2234.7+0943_daily_bin581.fits
.....................!
real 11.89
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365162/ft1_filtered_4FGL_J2234.7+0943_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/365162/ft2_4FGL_J2234.7+0943_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/365162/ltcube_389923201_390182401_4FGL_J2234.7+0943_daily_bin581.fits outfile=/scratch/kocevski/365162/expmap_389923201_390182401_4FGL_J2234.7+0943_daily_bin581.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/365162/ltcube_389923201_390182401_4FGL_J2234.7+0943_daily_bin581.fits
.....................!
real 190.66
user 184.77
sys 5.52

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/365162/ft1_filtered_4FGL_J2234.7+0943_daily_bin581.fits scfile=/scratch/kocevski/365162/ft2_4FGL_J2234.7+0943_daily_bin581.fits outfile=/scratch/kocevski/365162/cmap_389923201_390182401_4FGL_J2234.7+0943_daily_bin581.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365162/ft1_filtered_4FGL_J2234.7+0943_daily_bin581.fits scfile=/scratch/kocevski/365162/ft2_4FGL_J2234.7+0943_daily_bin581.fits outfile=/scratch/kocevski/365162/cmap_HighResolution_389923201_390182401_4FGL_J2234.7+0943_daily_bin581.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.691 yref=9.732 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/365162/ft1_filtered_4FGL_J2234.7+0943_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/365162/ft2_4FGL_J2234.7+0943_daily_bin581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/365162/Model_4FGL_J2234.7+0943_daily_bin581.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/365162/ft1_filtered_4FGL_J2234.7+0943_daily_bin581.fits.....................!
real 70.79
user 69.34
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6006       1.0000         .10000E-03   10000.    
     2 'norm      '    13.266       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5136       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1794       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5132       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.900       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0290       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .81979E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.517       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0018       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9104       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3121       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4956       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8107       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96099       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90853       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=   7088.626     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2412 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6003        3.1354        .56143E-07   -.12248E-04
   2  norm          13.265        18.481        .18082E-06   -.25106E-05
   3  norm          1.5135        .91972        .13375E-07   -.39841E-05
   4  Prefactor     .10000E-03    10.709        .95885E-07** at limit **
   5  Prefactor     .10000E-03    14.835        .33047E-06** at limit **
   6  Prefactor     6.1768        18.708        .49577E-06   -.32220E-05
   7  norm          2.5129        4.0612        .18617E-05    .86262E-04
   8  Prefactor     15.660        15.067        .14271E-06   -.28814E-04
   9  Prefactor     19.899        16.400       -.18424E-07   -.42362E-05
  10  Prefactor     1.0294        .27371        .99132E-08   -.16498E-02
  11  Prefactor     .10007E-03    6.8553        .11648E-05** at limit **
  12  norm          2.0200        1.6237        .29853E-07   -.82687E-05
  13  Prefactor     .10000E-03    12.612       -.19009E-06** at limit **
  14  Prefactor     .10000E-03    4.5487        .90185E-08** at limit **
  15  Prefactor     13.517        18.687        .14868E-06   -.64260E-05
  16  Prefactor     1.0018        .19506        .47473E-09   -.38906E-03
  17  Prefactor     6.8683        32.515        .87016E-05    .36021E-05
  18  Prefactor     2.3105        5.7473        .75496E-06    .11482E-04
  19  Prefactor     8.4965        10.050       -.31680E-07   -.20762E-04
  20  Prefactor     5.8137        19.247       -.52088E-06   -.11675E-04
  21  Normalizat    .96080        .22641       -.52662E-07   -.57100E-04
  22  Prefactor     .90870        .12311       -.77520E-06   -.14156E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.60026
  norm       = 13.2648
  norm       = 1.51346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.17677
  norm       = 2.51288
  Prefactor  = 15.6598
  Prefactor  = 19.8986
  Prefactor  = 1.02945
  Prefactor  = 0.000100069
  norm       = 2.02004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5165
  Prefactor  = 1.00177
  Prefactor  = 6.86834
  Prefactor  = 2.31046
  Prefactor  = 8.49651
  Prefactor  = 5.81375
  Normalizat = 0.960798
  Prefactor  = 0.908699
 **********
 **   18 **HESSE 
 **********

 FCN=   7088.626     FROM HESSE     STATUS=OK           354 CALLS     2766 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6003        3.1324        .11715E-03   -1.5279    
   2  norm          13.265        18.473        .10997E-03   -1.4979    
   3  norm          1.5135        .91511        .60817E-04   -1.5462    
   4  Prefactor     .10000E-03    10.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1768        18.699        .16150E-03   -1.5211    
   7  norm          2.5129        4.0816        .10468E-02   -1.5391    
   8  Prefactor     15.660        15.121        .10120E-03   -1.4916    
   9  Prefactor     19.899        16.425        .89786E-04   -1.4816    
  10  Prefactor     1.0294        .26871        .20273E-04   -1.5505    
  11  Prefactor     .10007E-03    50.531        .40316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0200        1.6180        .93548E-04   -1.5424    
  13  Prefactor     .10000E-03    12.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5514        .17536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.517        18.711        .10895E-03   -1.4973    
  16  Prefactor     1.0018        .19543        .15411E-04   -1.5508    
  17  Prefactor     6.8683        32.690        .15262E-03   -1.5184    
  18  Prefactor     2.3105        5.7310        .26982E-03   -1.5404    
  19  Prefactor     8.4965        10.049        .13753E-03   -1.5125    
  20  Prefactor     5.8137        19.261        .16661E-03   -1.5226    
  21  Normalizat    .96080        .26669        .34144E-03   -.94356    
  22  Prefactor     .90870        .14458        .19779E-03   -.95838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33103e-09
Minuit parameter uncertainties:
  1  3.13249
  2  18.4807
  3  0.915119
  4  8.14065e-06
  5  1.54717e-05
  6  18.7166
  7  4.08203
  8  15.1242
  9  16.429
  10  0.268712
  11  0.00373498
  12  1.61802
  13  1.00642e-06
  14  7.69608e-07
  15  18.7186
  16  0.195432
  17  29.9949
  18  5.73239
  19  10.0507
  20  19.2817
  21  0.267064
  22  0.144644
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.001e-04  3.735e-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:  9.087e-01  1.446e-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.608e-01  2.671e-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: 6.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365162/likelihoodResults_389923201_390182401_4FGL_J2234.7+0943_daily_bin581.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) = 7088.6262068
delta logL = -9.27295286601e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7087.82820079
delta logL = 0.797913284771

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2823       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5460       1.0000          .0000       10.000    
     3 'Normalizat'    .91314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91304       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=   7087.828     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      292 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2858        28.685        .97951E-03    .23536E-03
   2  Index1        2.5456        3.1534        .10432        .19150E-03
   3  Normalizat    .91326        .81088E-01    .78717E-01    .23479E-04
   4  Prefactor     .91298        .41682E-01    .45171E-01    .35771E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28584
  Index1     = 2.54558
  Normalizat = 0.91326
  Prefactor  = 0.912978
 **********
 **   18 **HESSE 
 **********

 FCN=   7087.828     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      325 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2858        47.873        .39180E-04   -1.5481    
   2  Index1        2.5456        6.1973        .60072E-02   -.51311    
   3  Normalizat    .91326        .30320        .34842E-03   -.95996    
   4  Prefactor     .91298        .16888        .19692E-03   -.95689    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56924e-09
Minuit parameter uncertainties:
  1  15.7046
  2  5.68074
  3  0.30377
  4  0.168979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365162': 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) = 7087.82819828
delta logL = 0.797915794461

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.286e+00  1.570e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.546e+00  5.681e+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:  9.130e-01  1.690e-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.133e-01  3.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 338.691 9.732
Photon Index (Free Index): 2.55 +/- 5.68
Photon Flux (Free Index): 7.25e-08 +/- 8.11e-08
Energy Flux (Free Index): 1.47e-05 +/- 2.68e-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/365162/cmap_HighResolution_389923201_390182401_4FGL_J2234.7+0943_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-05', comment='SUCCESS', energy_flux2='1.47e-05', dlogl='7.98e-01', photon_flux2='7.25e-08', job_status='DONE', time_completed='2021-09-28 15:15:41.981056', photon_index_error2='5.68', photon_index2='2.55', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='6.35e-08', energy_flux_error2='2.68e-05', EG='0.96', time_epoch_completed='1632867341.98', return_code='0', job_id='365162', GAL2='0.91', EG2='0.91', return_code2='102', photon_flux_error2='8.11e-08', ts2='1.61', photon_index='0.94' WHERE bin_id='581' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:15:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 365162: <4FGL_J2234.7+0943_daily_bin581> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin581 338.691 9.732 389923201 390182401 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 :                                   671.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            867 sec.

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

