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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1430
RA = 338.691, Dec = 9.732
tmin = 609984001, tmax = 610243201
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='371384', job_status='RUN', time_executed='2021-09-28 15:18:54.439432', time_epoch_executed='1632867534.44' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371384/ft1_4FGL_J2234.7+0943_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371384/ft2_4FGL_J2234.7+0943_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371384/ft1_4FGL_J2234.7+0943_daily_bin1430.fits outfile=/scratch/kocevski/371384/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1430.fits ra=338.691 dec=9.732 rad=12.0 tmin=609984001.0 tmax=610243201.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.17
user 4.88
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371384/ft1_filtered_4FGL_J2234.7+0943_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/371384/ft2_4FGL_J2234.7+0943_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/371384/ltcube_609984001_610243201_4FGL_J2234.7+0943_daily_bin1430.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/371384/ft2_4FGL_J2234.7+0943_daily_bin1430.fits
.....................!
real 11.79
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371384/ft1_filtered_4FGL_J2234.7+0943_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/371384/ft2_4FGL_J2234.7+0943_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/371384/ltcube_609984001_610243201_4FGL_J2234.7+0943_daily_bin1430.fits outfile=/scratch/kocevski/371384/expmap_609984001_610243201_4FGL_J2234.7+0943_daily_bin1430.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/371384/ltcube_609984001_610243201_4FGL_J2234.7+0943_daily_bin1430.fits
.....................!
real 193.40
user 187.84
sys 5.06

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/371384/ft1_filtered_4FGL_J2234.7+0943_daily_bin1430.fits scfile=/scratch/kocevski/371384/ft2_4FGL_J2234.7+0943_daily_bin1430.fits outfile=/scratch/kocevski/371384/cmap_609984001_610243201_4FGL_J2234.7+0943_daily_bin1430.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.691 yref=9.732 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371384/ft1_filtered_4FGL_J2234.7+0943_daily_bin1430.fits scfile=/scratch/kocevski/371384/ft2_4FGL_J2234.7+0943_daily_bin1430.fits outfile=/scratch/kocevski/371384/cmap_HighResolution_609984001_610243201_4FGL_J2234.7+0943_daily_bin1430.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371384/ft1_filtered_4FGL_J2234.7+0943_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/371384/ft2_4FGL_J2234.7+0943_daily_bin1430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371384/Model_4FGL_J2234.7+0943_daily_bin1430.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/371384/ft1_filtered_4FGL_J2234.7+0943_daily_bin1430.fits.....................!
real 64.45
user 63.06
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85627       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.306       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54711       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.675       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18991       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.071       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4301       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.678       1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.651       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6802       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29269       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0028       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .65320       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0795       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=   6822.758     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2047 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85677        2.6994        .12648E-01    .13791E-02
   2  norm          .10000E-03    9.1289        .90712E-02** at limit **
   3  norm          .10000E-03    .46158        .18967E-01** at limit **
   4  Prefactor     .10000E-03    7.9499        .90712E-02** at limit **
   5  Prefactor     36.306        21.590        .16628E-02   -.69054E-03
   6  Prefactor     .10000E-03    10.668        .90712E-02** at limit **
   7  norm          .10000E-03    1.6993        .90712E-02** at limit **
   8  Prefactor     .57556        8.3569        .11462        .26025E-03
   9  Prefactor     21.676        15.103        .21508E-02   -.43640E-03
  10  Prefactor     .18987        .15420        .60438E-02    .42703E-03
  11  Prefactor     20.070        9.4125        .22351E-02   -.28901E-03
  12  norm          1.4302        1.2678        .90315E-02   -.95616E-04
  13  Prefactor     23.680        21.385        .20580E-02   -.67030E-03
  14  Prefactor     40.652        20.151        .15717E-02   -.10297E-02
  15  Prefactor     9.6809        12.793        .32200E-02   -.62864E-04
  16  Prefactor     .29270        .13611        .43370E-02    .10453E-02
  17  Prefactor     7.0036        34.649        .37900E-02   -.78374E-03
  18  Prefactor     .10000E-03    5.5119        .90712E-02** at limit **
  19  Prefactor     .10000E-03    3.1408        .90712E-02** at limit **
  20  Prefactor     .10000E-03    8.1106        .90712E-02** at limit **
  21  Normalizat    .65312        .21498        .83383E-01    .33960E-04
  22  Prefactor     1.0795        .11861        .38424E-01    .24793E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.856771
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.3059
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.57556
  Prefactor  = 21.6756
  Prefactor  = 0.189873
  Prefactor  = 20.0702
  norm       = 1.43018
  Prefactor  = 23.6796
  Prefactor  = 40.6519
  Prefactor  = 9.68091
  Prefactor  = 0.2927
  Prefactor  = 7.00363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.653117
  Prefactor  = 1.07945
 **********
 **   18 **HESSE 
 **********

 FCN=   6822.758     FROM HESSE     STATUS=OK           340 CALLS     2387 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85677        2.7034        .22880E-03   -1.5523    
   2  norm          .10000E-03    9.1392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.4847        .10893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.9668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.306        21.589        .66512E-04   -1.4502    
   6  Prefactor     .10000E-03    10.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7077        .10513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .57556        82.844        .42508E-02   -1.5556    
   9  Prefactor     21.676        15.107        .86034E-04   -1.4776    
  10  Prefactor     .18987        .15370        .26508E-04   -1.5621    
  11  Prefactor     20.070        9.4064        .89403E-04   -1.4812    
  12  norm          1.4302        1.2778        .83772E-04   -1.5469    
  13  Prefactor     23.680        21.385        .82319E-04   -1.4734    
  14  Prefactor     40.652        20.084        .62870E-04   -1.4432    
  15  Prefactor     9.6809        12.788        .12880E-03   -1.5086    
  16  Prefactor     .29270        .13435        .19361E-04   -1.5600    
  17  Prefactor     7.0036        34.670        .15160E-03   -1.5179    
  18  Prefactor     .10000E-03    5.6300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.1478        .14296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .65312        .24093        .36929E-03   -1.0577    
  22  Prefactor     1.0795        .13523        .17150E-03   -.90126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24357e-08
Minuit parameter uncertainties:
  1  2.70383
  2  3.57815e-05
  3  3.23318e-06
  4  8.14382e-05
  5  21.5936
  6  2.95415e-05
  7  9.97624e-07
  8  13.8287
  9  15.1093
  10  0.153699
  11  9.40709
  12  1.27783
  13  21.3923
  14  20.0876
  15  12.7921
  16  0.134353
  17  31.1938
  18  1.44178e-06
  19  9.63925e-07
  20  0.000115169
  21  0.241319
  22  0.13527
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  2.007e+01  9.407e+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:  1.079e+00  1.353e-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:  6.531e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.83
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 5.16e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 3.80e-05 +/- 1.78e-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) = 6822.73356346
delta logL = 0.0248362959082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6822.73290574
delta logL = 0.0254940161913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.050       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.0622       1.0000          .0000       10.000    
     3 'Normalizat'    .64855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0795       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=   6822.733     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      299 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.058        10.308        .91764E-04   -.17295E-04
   2  Index1        1.0628        .54372        .97280E-02    .37244E-03
   3  Normalizat    .64849        .22857        .37047E-03   -.29767E-05
   4  Prefactor     1.0795        .13430        .17146E-03   -.65641E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0579
  Index1     = 1.0628
  Normalizat = 0.648493
  Prefactor  = 1.07949
 **********
 **   18 **HESSE 
 **********

 FCN=   6822.733     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.058        10.100        .18353E-04   -1.4835    
   2  Index1        1.0628        .53254        .19456E-02   -.90664    
   3  Normalizat    .64849        .22856        .14819E-04   -1.0596    
   4  Prefactor     1.0795        .13438        .68585E-05   -.90125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27314e-13
Minuit parameter uncertainties:
  1  10.1011
  2  0.535222
  3  0.228893
  4  0.134421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371384': 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) = 6822.73290371
delta logL = 0.0254960521179

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.906e+01  1.010e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.063e+00  5.352e-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:  1.079e+00  1.344e-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:  6.485e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.85
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.06 +/- 0.54
Photon Flux (Free Index): 5.84e-08 +/- 4.09e-08
Energy Flux (Free Index): 3.73e-05 +/- 1.73e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/371384/cmap_HighResolution_609984001_610243201_4FGL_J2234.7+0943_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.16e-08', energy_flux2='3.73e-05', photon_flux_error='2.42e-08', dlogl='2.55e-02', energy_flux='3.80e-05', photon_flux2='5.84e-08', job_status='DONE', time_completed='2021-09-28 15:28:33.011335', photon_index_error2='0.54', photon_index2='1.06', ts='15.83', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='0.65', time_epoch_completed='1632868113.01', return_code='0', job_id='371384', GAL2='1.08', EG2='0.65', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='4.09e-08', ts2='15.85', photon_index='0.94' WHERE bin_id='1430' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:28:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 371384: <4FGL_J2234.7+0943_daily_bin1430> in cluster <slac> Done

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

Your job looked like:

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

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

