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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1073
RA = 338.691, Dec = 9.732
tmin = 517449601, tmax = 517708801
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='370812', job_status='RUN', time_executed='2021-09-28 15:17:38.222494', time_epoch_executed='1632867458.22' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1073'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/370812

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/370812/ft1_4FGL_J2234.7+0943_daily_bin1073.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/370812/ft2_4FGL_J2234.7+0943_daily_bin1073.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/370812/ft1_4FGL_J2234.7+0943_daily_bin1073.fits outfile=/scratch/kocevski/370812/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1073.fits ra=338.691 dec=9.732 rad=12.0 tmin=517449601.0 tmax=517708801.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 5.69
user 5.33
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/370812/ft1_filtered_4FGL_J2234.7+0943_daily_bin1073.fits" evtable="EVENTS" scfile=/scratch/kocevski/370812/ft2_4FGL_J2234.7+0943_daily_bin1073.fits sctable="SC_DATA" outfile=/scratch/kocevski/370812/ltcube_517449601_517708801_4FGL_J2234.7+0943_daily_bin1073.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/370812/ft2_4FGL_J2234.7+0943_daily_bin1073.fits
.....................!
real 11.67
user 11.25
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/370812/ft1_filtered_4FGL_J2234.7+0943_daily_bin1073.fits evtable="EVENTS" scfile=/scratch/kocevski/370812/ft2_4FGL_J2234.7+0943_daily_bin1073.fits sctable="SC_DATA" expcube=/scratch/kocevski/370812/ltcube_517449601_517708801_4FGL_J2234.7+0943_daily_bin1073.fits outfile=/scratch/kocevski/370812/expmap_517449601_517708801_4FGL_J2234.7+0943_daily_bin1073.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/370812/ltcube_517449601_517708801_4FGL_J2234.7+0943_daily_bin1073.fits
.....................!
real 190.34
user 185.45
sys 4.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/370812/ft1_filtered_4FGL_J2234.7+0943_daily_bin1073.fits scfile=/scratch/kocevski/370812/ft2_4FGL_J2234.7+0943_daily_bin1073.fits outfile=/scratch/kocevski/370812/cmap_517449601_517708801_4FGL_J2234.7+0943_daily_bin1073.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/370812/ft1_filtered_4FGL_J2234.7+0943_daily_bin1073.fits scfile=/scratch/kocevski/370812/ft2_4FGL_J2234.7+0943_daily_bin1073.fits outfile=/scratch/kocevski/370812/cmap_HighResolution_517449601_517708801_4FGL_J2234.7+0943_daily_bin1073.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/370812/ft1_filtered_4FGL_J2234.7+0943_daily_bin1073.fits evtable="EVENTS" scfile=/scratch/kocevski/370812/ft2_4FGL_J2234.7+0943_daily_bin1073.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/370812/Model_4FGL_J2234.7+0943_daily_bin1073.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/370812/ft1_filtered_4FGL_J2234.7+0943_daily_bin1073.fits.....................!
real 88.66
user 87.06
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7923       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .59042       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9022       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.726       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7576       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5355       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7932       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.844       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1341       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.345       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7960       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.629       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2612       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38873       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4843       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.831       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99365       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85857       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=   8658.690     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2411 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7925        2.7074       -.10574E-07    .70539E-04
   2  norm          .10000E-03    13.483        .20078E-07** at limit **
   3  norm          .59049        .77808       -.12389E-07   -.13981E-03
   4  Prefactor     5.9015        21.851       -.12874E-05   -.14107E-03
   5  Prefactor     26.726        24.387        .25001E-07   -.72618E-04
   6  Prefactor     .10000E-03    25.552       -.48288E-09** at limit **
   7  norm          1.7579        5.4994       -.74079E-06    .10341E-02
   8  Prefactor     5.5356        9.9740       -.75708E-06   -.30389E-03
   9  Prefactor     .10000E-03    6.2126        .13523E-07** at limit **
  10  Prefactor     4.7931        .43425        .25618E-08    .13561E-03
  11  Prefactor     12.845        8.0307       -.77416E-08   -.25726E-04
  12  norm          2.1340        1.3375        .88214E-08    .21782E-04
  13  Prefactor     36.345        26.739       -.11290E-06    .26318E-03
  14  Prefactor     7.7957        10.323       -.27329E-06   -.17371E-03
  15  Prefactor     12.628        14.990       -.94112E-07    .25511E-03
  16  Prefactor     1.2612        .21958        .56336E-09    .49723E-03
  17  Prefactor     .10000E-03    8.9432       -.21833E-07** at limit **
  18  Prefactor     .39217        4.8597       -.24838E-06    .69138E-04
  19  Prefactor     5.4839        7.9303       -.72525E-06   -.49512E-03
  20  Prefactor     12.831        16.260       -.21074E-07   -.69283E-04
  21  Normalizat    .99368        .23412        .44770E-06    .29627E-04
  22  Prefactor     .85855        .12441        .10410E-06    .54797E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.79252
  norm       = 0.0001
  norm       = 0.590492
  Prefactor  = 5.90154
  Prefactor  = 26.726
  Prefactor  = 0.0001
  norm       = 1.75788
  Prefactor  = 5.53558
  Prefactor  = 0.0001
  Prefactor  = 4.79314
  Prefactor  = 12.8445
  norm       = 2.13404
  Prefactor  = 36.3449
  Prefactor  = 7.79573
  Prefactor  = 12.6284
  Prefactor  = 1.26116
  Prefactor  = 0.0001
  Prefactor  = 0.392169
  Prefactor  = 5.48385
  Prefactor  = 12.8315
  Normalizat = 0.993676
  Prefactor  = 0.85855
 **********
 **   18 **HESSE 
 **********

 FCN=   8658.690     FROM HESSE     STATUS=OK           356 CALLS     2767 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7925        2.7083        .11163E-03   -1.5270    
   2  norm          .10000E-03    13.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .59049        .66688        .90905E-03   -1.5554    
   4  Prefactor     5.9015        24.675        .82648E-03   -1.5222    
   5  Prefactor     26.726        24.382        .77491E-04   -1.4674    
   6  Prefactor     .10000E-03    25.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7579        5.6303        .31612E-03   -1.5443    
   8  Prefactor     5.5356        11.554        .85382E-03   -1.5237    
   9  Prefactor     .10000E-03    6.2296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7931        .43666        .17268E-04   -1.5270    
  11  Prefactor     12.845        8.0368        .11177E-03   -1.4991    
  12  norm          2.1340        1.3439        .82560E-04   -1.5416    
  13  Prefactor     36.345        26.763        .66477E-04   -1.4501    
  14  Prefactor     7.7957        10.612        .71807E-03   -1.5149    
  15  Prefactor     12.628        14.995        .11272E-03   -1.4997    
  16  Prefactor     1.2612        .21981        .16783E-04   -1.5483    
  17  Prefactor     .10000E-03    8.9503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .39217        23.151        .38804E-02   -1.5583    
  19  Prefactor     5.4839        9.7587        .85787E-03   -1.5240    
  20  Prefactor     12.831        16.266        .11182E-03   -1.4991    
  21  Normalizat    .99368        .28038        .38309E-03   -.93243    
  22  Prefactor     .85855        .14848        .22401E-03   -.97605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28226e-09
Minuit parameter uncertainties:
  1  2.70836
  2  3.74278e-05
  3  0.666886
  4  24.1518
  5  24.3909
  6  2.13754e-05
  7  5.63196
  8  11.5588
  9  7.13033e-06
  10  0.43666
  11  8.03744
  12  1.3439
  13  26.7723
  14  10.6142
  15  14.999
  16  0.219814
  17  2.80953e-05
  18  6.02796
  19  9.76157
  20  16.272
  21  0.280799
  22  0.148547
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.284e+01  8.037e+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.586e-01  1.485e-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.937e-01  2.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.16
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.52e-05

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) = 8658.66469774
delta logL = 0.0248414576799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8658.66287446
delta logL = 0.0266647339522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.316       1.0000         .10000E-03   10000.    
     2 'Index1    '    .75149       1.0000          .0000       10.000    
     3 'Normalizat'    .99552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85896       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8658.663     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      264 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.317        8.6004        .10977E-03   -.36250E-04
   2  Index1        .75148        .81405        .23328E-01    .10000E-04
   3  Normalizat    .99550        .26668        .38287E-03    .64138E-05
   4  Prefactor     .85897        .14729        .22403E-03    .16442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3166
  Index1     = 0.751475
  Normalizat = 0.995502
  Prefactor  = 0.85897
 **********
 **   18 **HESSE 
 **********

 FCN=   8658.663     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .96E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.317        8.5435        .43906E-05   -1.4978    
   2  Index1        .75148        .80920        .93312E-03   -1.0154    
   3  Normalizat    .99550        .26693        .15315E-04   -.93181    
   4  Prefactor     .85897        .14744        .89611E-05   -.97590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57991e-13
Minuit parameter uncertainties:
  1  8.54428
  2  0.822478
  3  0.267287
  4  0.147512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/370812': 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) = 8658.66287446
delta logL = 0.0266647368517

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.332e+01  8.544e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  7.515e-01  8.225e-01  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.590e-01  1.475e-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.955e-01  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.24
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.75 +/- 0.82
Photon Flux (Free Index): 2.68e-08 +/- 2.91e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.62e-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/370812/cmap_HighResolution_517449601_517708801_4FGL_J2234.7+0943_daily_bin1073.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='2.50e-05', photon_flux_error='2.06e-08', dlogl='2.67e-02', energy_flux='2.43e-05', photon_flux2='2.68e-08', job_status='DONE', time_completed='2021-09-28 15:29:21.068206', photon_index_error2='0.82', photon_index2='0.75', ts='9.16', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='0.99', time_epoch_completed='1632868161.07', return_code='0', job_id='370812', GAL2='0.86', EG2='1.00', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='2.91e-08', ts2='9.24', photon_index='0.94' WHERE bin_id='1073' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:29:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 370812: <4FGL_J2234.7+0943_daily_bin1073> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1073 338.691 9.732 517449601 517708801 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 :                                   700.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

