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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin636
RA = 338.691, Dec = 9.732
tmin = 404179201, tmax = 404438401
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='366339', job_status='RUN', time_executed='2021-09-28 15:06:54.504385', time_epoch_executed='1632866814.5' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='636'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366339/ft1_4FGL_J2234.7+0943_daily_bin636.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366339/ft2_4FGL_J2234.7+0943_daily_bin636.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366339/ft1_4FGL_J2234.7+0943_daily_bin636.fits outfile=/scratch/kocevski/366339/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin636.fits ra=338.691 dec=9.732 rad=12.0 tmin=404179201.0 tmax=404438401.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.70
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366339/ft1_filtered_4FGL_J2234.7+0943_daily_bin636.fits" evtable="EVENTS" scfile=/scratch/kocevski/366339/ft2_4FGL_J2234.7+0943_daily_bin636.fits sctable="SC_DATA" outfile=/scratch/kocevski/366339/ltcube_404179201_404438401_4FGL_J2234.7+0943_daily_bin636.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/366339/ft2_4FGL_J2234.7+0943_daily_bin636.fits
.....................!
real 11.90
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366339/ft1_filtered_4FGL_J2234.7+0943_daily_bin636.fits evtable="EVENTS" scfile=/scratch/kocevski/366339/ft2_4FGL_J2234.7+0943_daily_bin636.fits sctable="SC_DATA" expcube=/scratch/kocevski/366339/ltcube_404179201_404438401_4FGL_J2234.7+0943_daily_bin636.fits outfile=/scratch/kocevski/366339/expmap_404179201_404438401_4FGL_J2234.7+0943_daily_bin636.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/366339/ltcube_404179201_404438401_4FGL_J2234.7+0943_daily_bin636.fits
.....................!
real 190.87
user 185.73
sys 4.81

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/366339/ft1_filtered_4FGL_J2234.7+0943_daily_bin636.fits scfile=/scratch/kocevski/366339/ft2_4FGL_J2234.7+0943_daily_bin636.fits outfile=/scratch/kocevski/366339/cmap_404179201_404438401_4FGL_J2234.7+0943_daily_bin636.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/366339/ft1_filtered_4FGL_J2234.7+0943_daily_bin636.fits scfile=/scratch/kocevski/366339/ft2_4FGL_J2234.7+0943_daily_bin636.fits outfile=/scratch/kocevski/366339/cmap_HighResolution_404179201_404438401_4FGL_J2234.7+0943_daily_bin636.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/366339/ft1_filtered_4FGL_J2234.7+0943_daily_bin636.fits evtable="EVENTS" scfile=/scratch/kocevski/366339/ft2_4FGL_J2234.7+0943_daily_bin636.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366339/Model_4FGL_J2234.7+0943_daily_bin636.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/366339/ft1_filtered_4FGL_J2234.7+0943_daily_bin636.fits.....................!
real 81.00
user 79.44
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    60.845       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.068       1.0000         .10000E-03   10000.    
     7 'norm      '    .12261E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4771       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.343       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .67708       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0855       1.0000         .10000E-03   10000.    
    12 'norm      '    .41983       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.376       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8751       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4088       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14559E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1525       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86637       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=   7442.084     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2420 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0907       -.19585E-06** at limit **
   2  norm          60.842        30.098        .67883E-06    .19193E-03
   3  norm          .10000E-03    .51102       -.33596E-07** at limit **
   4  Prefactor     .10000E-03    7.2622        .88372E-06** at limit **
   5  Prefactor     .10000E-03    11.441        .12886E-05** at limit **
   6  Prefactor     16.067        26.106        .36944E-06    .48299E-04
   7  norm          .10000E-03    4.2703        .16374E-05** at limit **
   8  Prefactor     5.4773        8.9670       -.13295E-06    .69049E-03
   9  Prefactor     19.344        15.898       -.59811E-07   -.38978E-05
  10  Prefactor     .67708        .21955       -.55114E-08    .62507E-04
  11  Prefactor     5.0854        5.1944        .11305E-06    .33624E-04
  12  norm          .42004        1.1728        .15395E-06    .64127E-03
  13  Prefactor     32.373        42.041        .99203E-06    .70921E-04
  14  Prefactor     .10000E-03    6.7026       -.37115E-06** at limit **
  15  Prefactor     .10000E-03    29.541        .44739E-05** at limit **
  16  Prefactor     2.8750        .30674        .21758E-07   -.43797E-05
  17  Prefactor     9.4085        25.017        .18971E-06    .20051E-04
  18  Prefactor     .10002E-03    17.968        .78946E-05** at limit **
  19  Prefactor     .10000E-03    13.155        .40822E-05** at limit **
  20  Prefactor     .10000E-03    9.8756       -.29445E-05** at limit **
  21  Normalizat    1.1525        .23781        .73896E-06   -.14219E-04
  22  Prefactor     .86637        .12739       -.10765E-06    .27112E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 60.8415
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0674
  norm       = 0.000100001
  Prefactor  = 5.4773
  Prefactor  = 19.3443
  Prefactor  = 0.677079
  Prefactor  = 5.08544
  norm       = 0.420035
  Prefactor  = 32.3727
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 2.87496
  Prefactor  = 9.40851
  Prefactor  = 0.000100018
  Prefactor  = 0.000100004
  Prefactor  = 0.000100003
  Normalizat = 1.15249
  Prefactor  = 0.866369
 **********
 **   18 **HESSE 
 **********

 FCN=   7442.084     FROM HESSE     STATUS=OK           350 CALLS     2770 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7984        .17489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          60.842        30.122        .51439E-04   -1.4146    
   3  norm          .10000E-03    .90334        .11904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.067        26.110        .99916E-04   -1.4906    
   7  norm          .10000E-03    17.396        .31762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4773        9.4686        .85844E-03   -1.5240    
   9  Prefactor     19.344        15.842        .91067E-04   -1.4828    
  10  Prefactor     .67708        .21921        .21718E-04   -1.5543    
  11  Prefactor     5.0854        5.1983        .17829E-03   -1.5257    
  12  norm          .42004        1.2607        .15184E-02   -1.5578    
  13  Prefactor     32.373        42.250        .70422E-04   -1.4569    
  14  Prefactor     .10000E-03    6.7193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8750        .30479        .14192E-04   -1.5369    
  17  Prefactor     9.4085        25.057        .13065E-03   -1.5094    
  18  Prefactor     .10002E-03    20.861        .35150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1525        .28158        .34295E-03   -.88084    
  22  Prefactor     .86637        .15231        .21620E-03   -.97326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93058e-09
Minuit parameter uncertainties:
  1  1.85592e-05
  2  30.1297
  3  4.91894e-06
  4  7.55192e-05
  5  0.000143259
  6  26.1289
  7  0.000291063
  8  9.47123
  9  15.8454
  10  0.219208
  11  5.19877
  12  1.26073
  13  42.2892
  14  3.62539e-05
  15  0.000745373
  16  0.304788
  17  25.0854
  18  0.00122021
  19  0.000468538
  20  0.000327584
  21  0.281951
  22  0.152389
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  5.085e+00  5.199e+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:  8.664e-01  1.524e-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.152e+00  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.31e-08 +/- 1.34e-08
Energy Flux (Fixed Index): 9.64e-06 +/- 9.85e-06

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) = 7442.07907399
delta logL = 0.00513875817887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7442.06291049
delta logL = 0.0213022616254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0899       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.7778       1.0000          .0000       10.000    
     3 'Normalizat'    1.1277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86956       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=   7442.063     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      243 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0899        98.364        .49838E-02    .13796E-02
   2  Index1        1.7780        5.6269        .12404        .17213E-03
   3  Normalizat    1.1277        .17591        .78141E-01    .17721E-04
   4  Prefactor     .86957        .62006E-01    .44616E-01    .91759E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0899
  Index1     = 1.77805
  Normalizat = 1.12769
  Prefactor  = 0.869575
 **********
 **   18 **HESSE 
 **********

 FCN=   7442.063     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0899        8.6955        .14372E-03   -1.5303    
   2  Index1        1.7780        2.3665        .14485E-01   -.70023    
   3  Normalizat    1.1277        .30587        .34588E-03   -.88868    
   4  Prefactor     .86957        .15402        .21568E-03   -.97212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74782e-07
Minuit parameter uncertainties:
  1  8.69814
  2  2.55172
  3  0.306356
  4  0.154099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366339': 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) = 7442.06291046
delta logL = 0.0213022886874

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.090e+00  8.698e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.778e+00  2.552e+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.696e-01  1.541e-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.128e+00  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.38
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.78 +/- 2.55
Photon Flux (Free Index): 4.44e-08 +/- 1.44e-07
Energy Flux (Free Index): 1.40e-05 +/- 2.00e-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/366339/cmap_HighResolution_404179201_404438401_4FGL_J2234.7+0943_daily_bin636.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-08', energy_flux2='1.40e-05', photon_flux_error='1.34e-08', dlogl='2.13e-02', energy_flux='9.64e-06', photon_flux2='4.44e-08', job_status='DONE', time_completed='2021-09-28 15:17:33.259274', photon_index_error2='2.55', photon_index2='1.78', ts='4.35', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.15', time_epoch_completed='1632867453.26', return_code='0', job_id='366339', GAL2='0.87', EG2='1.13', return_code2='0', energy_flux_error='9.85e-06', photon_flux_error2='1.44e-07', ts2='4.38', photon_index='0.94' WHERE bin_id='636' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:17:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 366339: <4FGL_J2234.7+0943_daily_bin636> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin636> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:05:14 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:05:15 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:15 2021
Terminated at Tue Sep 28 15:17:33 2021
Results reported at Tue Sep 28 15:17:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin636 338.691 9.732 404179201 404438401 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 :                                   639.42 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             314.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            739 sec.

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

