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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1095
RA = 338.691, Dec = 9.732
tmin = 523152001, tmax = 523411201
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='370847', job_status='RUN', time_executed='2021-09-28 15:19:24.182296', time_epoch_executed='1632867564.18' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/370847

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/370847/ft1_4FGL_J2234.7+0943_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/370847/ft2_4FGL_J2234.7+0943_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/370847/ft1_4FGL_J2234.7+0943_daily_bin1095.fits outfile=/scratch/kocevski/370847/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1095.fits ra=338.691 dec=9.732 rad=12.0 tmin=523152001.0 tmax=523411201.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 4.26
user 4.01
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/370847/ft1_filtered_4FGL_J2234.7+0943_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/370847/ft2_4FGL_J2234.7+0943_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/370847/ltcube_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.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/370847/ft2_4FGL_J2234.7+0943_daily_bin1095.fits
.....................!
real 13.12
user 12.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/370847/ft1_filtered_4FGL_J2234.7+0943_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/370847/ft2_4FGL_J2234.7+0943_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/370847/ltcube_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.fits outfile=/scratch/kocevski/370847/expmap_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.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/370847/ltcube_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.fits
.....................!
real 190.96
user 185.34
sys 4.75

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/370847/ft1_filtered_4FGL_J2234.7+0943_daily_bin1095.fits scfile=/scratch/kocevski/370847/ft2_4FGL_J2234.7+0943_daily_bin1095.fits outfile=/scratch/kocevski/370847/cmap_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/370847/ft1_filtered_4FGL_J2234.7+0943_daily_bin1095.fits scfile=/scratch/kocevski/370847/ft2_4FGL_J2234.7+0943_daily_bin1095.fits outfile=/scratch/kocevski/370847/cmap_HighResolution_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.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/370847/ft1_filtered_4FGL_J2234.7+0943_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/370847/ft2_4FGL_J2234.7+0943_daily_bin1095.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/370847/Model_4FGL_J2234.7+0943_daily_bin1095.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/370847/ft1_filtered_4FGL_J2234.7+0943_daily_bin1095.fits.....................!
real 77.32
user 75.93
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/370847/ft1_filtered_4FGL_J2234.7+0943_daily_bin1095.fits', '/scratch/kocevski/370847/ft2_4FGL_J2234.7+0943_daily_bin1095.fits', expMap='/scratch/kocevski/370847/expmap_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.fits', expCube='/scratch/kocevski/370847/ltcube_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/370847/Model_4FGL_J2234.7+0943_daily_bin1095.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/370847/ft1_filtered_4FGL_J2234.7+0943_daily_bin1095.fits
Spacecraft file(s): /scratch/kocevski/370847/ft2_4FGL_J2234.7+0943_daily_bin1095.fits
Exposure map: /scratch/kocevski/370847/expmap_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.fits
Exposure cube: /scratch/kocevski/370847/ltcube_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/370847/Model_4FGL_J2234.7+0943_daily_bin1095.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7552.48273847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10601E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    41.554       1.0000         .10000E-03   10000.    
     3 'norm      '    .14797       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.796       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.264       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0822       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.615       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5504       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4418       1.0000         .10000E-03   10000.    
    12 'norm      '    .61249       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8517       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .74154       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.754       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1919       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .69136       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=   7552.327     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2089 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3964        .21619E-06** at limit **
   2  norm          41.562        26.047        .43879E-07    .68157E-04
   3  norm          .14805        .66974        .96950E-06    .18210E-04
   4  Prefactor     .10000E-03    8.6679       -.22503E-06** at limit **
   5  Prefactor     24.796        17.385       -.79606E-08   -.54097E-06
   6  Prefactor     18.255        30.802       -.35818E-06   -.71261E-04
   7  norm          2.0828        3.6481        .40347E-06   -.11877E-04
   8  Prefactor     .10000E-03    12.699       -.70144E-07** at limit **
   9  Prefactor     12.612        14.764       -.94921E-07   -.30055E-04
  10  Prefactor     6.5505        .51916       -.51188E-08   -.30202E-03
  11  Prefactor     6.4403        11.030        .22787E-06    .42437E-06
  12  norm          .61462        1.6718       -.18011E-07   -.87445E-04
  13  Prefactor     .10000E-03    24.362       -.96548E-07** at limit **
  14  Prefactor     4.8355        17.294        .58490E-06   -.60505E-04
  15  Prefactor     .10000E-03    23.127        .14733E-06** at limit **
  16  Prefactor     .74155        .18026        .74518E-08   -.17194E-03
  17  Prefactor     25.754        26.676        .51383E-07   -.70908E-05
  18  Prefactor     .10000E-03    8.7170        .53016E-06** at limit **
  19  Prefactor     .10000E-03    20.193        .56345E-06** at limit **
  20  Prefactor     .10000E-03    16.752        .23369E-07** at limit **
  21  Normalizat    1.1916        .24336        .68747E-06   -.11036E-03
  22  Prefactor     .69153        .12846       -.82277E-06   -.70015E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 41.5615
  norm       = 0.148046
  Prefactor  = 0.0001
  Prefactor  = 24.7965
  Prefactor  = 18.2548
  norm       = 2.08277
  Prefactor  = 0.0001
  Prefactor  = 12.6122
  Prefactor  = 6.55046
  Prefactor  = 6.44032
  norm       = 0.61462
  Prefactor  = 0.0001
  Prefactor  = 4.83554
  Prefactor  = 0.0001
  Prefactor  = 0.741545
  Prefactor  = 25.7539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19156
  Prefactor  = 0.691532
 **********
 **   18 **HESSE 
 **********

 FCN=   7552.327     FROM HESSE     STATUS=OK           346 CALLS     2435 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3378        .19701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          41.562        25.949        .62185E-04   -1.4418    
   3  norm          .14805        .67680        .13548E-03   -1.5631    
   4  Prefactor     .10000E-03    8.6790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.796        17.393        .80445E-04   -1.4712    
   6  Prefactor     18.255        30.776        .93717E-04   -1.4853    
   7  norm          2.0828        3.6211        .21225E-03   -1.5419    
   8  Prefactor     .10000E-03    12.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.612        14.776        .11278E-03   -1.4998    
  10  Prefactor     6.5505        .52135        .16498E-04   -1.5196    
  11  Prefactor     6.4403        11.046        .15813E-03   -1.5200    
  12  norm          .61462        1.6186        .16647E-03   -1.5551    
  13  Prefactor     .10000E-03    24.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8355        16.730        .18263E-03   -1.5268    
  15  Prefactor     .10000E-03    23.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .74155        .18021        .17313E-04   -1.5536    
  17  Prefactor     25.754        26.705        .78936E-04   -1.4693    
  18  Prefactor     .10000E-03    8.9516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1916        .28733        .34193E-03   -.86864    
  22  Prefactor     .69153        .15119        .23766E-03   -1.0386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50438e-10
Minuit parameter uncertainties:
  1  4.76047e-05
  2  25.9559
  3  0.632881
  4  3.88072e-05
  5  17.3962
  6  30.8026
  7  3.62152
  8  2.38175e-05
  9  14.7804
  10  0.521354
  11  11.0494
  12  1.61868
  13  4.58091e-05
  14  16.7457
  15  1.68706e-05
  16  0.180214
  17  26.7177
  18  5.35134e-05
  19  8.63211e-05
  20  1.3458e-05
  21  0.287707
  22  0.151279
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  6.440e+00  1.105e+01  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.915e-01  1.513e-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.192e+00  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/370847/likelihoodResults_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.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) = 7551.66283837
delta logL = 0.664248150675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7551.65031944
delta logL = 0.676767081665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3619       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3168       1.0000          .0000       10.000    
     3 'Normalizat'    1.1384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70465       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=   7551.650     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      231 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3619        59.080        .55177E-02    .84910E-03
   2  Index1        2.3165        2.9320        .10474        .19548E-03
   3  Normalizat    1.1387        .78764E-01    .78475E-01    .82343E-06
   4  Prefactor     .70447        .40289E-01    .42463E-01    .21935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.36188
  Index1     = 2.31648
  Normalizat = 1.13874
  Prefactor  = 0.704475
 **********
 **   18 **HESSE 
 **********

 FCN=   7551.650     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3619        11.685        .12237E-03   -1.5341    
   2  Index1        2.3165        1.6290        .60990E-02   -.56653    
   3  Normalizat    1.1387        .28309        .34737E-03   -.88517    
   4  Prefactor     .70447        .15387        .23500E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59651e-08
Minuit parameter uncertainties:
  1  11.6926
  2  1.67249
  3  0.283471
  4  0.153958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/370847': 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) = 7551.65031847
delta logL = 0.676768050247

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.362e+00  1.169e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.316e+00  1.672e+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:  7.045e-01  1.540e-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.139e+00  2.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 338.691 9.732
Photon Index (Free Index): 2.32 +/- 1.67
Photon Flux (Free Index): 1.14e-07 +/- 9.75e-08
Energy Flux (Free Index): 2.55e-05 +/- 2.45e-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/370847/cmap_HighResolution_523152001_523411201_4FGL_J2234.7+0943_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-05', comment='SUCCESS', energy_flux2='2.55e-05', dlogl='6.77e-01', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-28 15:31:02.323415', photon_index_error2='1.67', photon_index2='2.32', ts='0.48', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='9.10e-08', energy_flux_error2='2.45e-05', EG='1.19', time_epoch_completed='1632868262.32', return_code='0', job_id='370847', GAL2='0.70', EG2='1.14', return_code2='0', photon_flux_error2='9.75e-08', ts2='1.84', photon_index='0.94' WHERE bin_id='1095' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:31:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 370847: <4FGL_J2234.7+0943_daily_bin1095> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1095> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:15:23 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:15:25 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:15:25 2021
Terminated at Tue Sep 28 15:31:03 2021
Results reported at Tue Sep 28 15:31:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1095 338.691 9.732 523152001 523411201 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 :                                   695.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            940 sec.

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

