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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin968
RA = 338.691, Dec = 9.732
tmin = 490233601, tmax = 490492801
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='369164', job_status='RUN', time_executed='2021-09-28 15:11:21.624742', time_epoch_executed='1632867081.62' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369164

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369164/ft1_4FGL_J2234.7+0943_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369164/ft2_4FGL_J2234.7+0943_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369164/ft1_4FGL_J2234.7+0943_daily_bin968.fits outfile=/scratch/kocevski/369164/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin968.fits ra=338.691 dec=9.732 rad=12.0 tmin=490233601.0 tmax=490492801.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.73
user 3.45
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369164/ft2_4FGL_J2234.7+0943_daily_bin968.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/369164/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin968.fits evtable="EVENTS" outfile="/scratch/kocevski/369164/ft1_filtered_4FGL_J2234.7+0943_daily_bin968.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/369164/ft1_filtered_4FGL_J2234.7+0943_daily_bin968.fits" evtable="EVENTS" scfile=/scratch/kocevski/369164/ft2_4FGL_J2234.7+0943_daily_bin968.fits sctable="SC_DATA" outfile=/scratch/kocevski/369164/ltcube_490233601_490492801_4FGL_J2234.7+0943_daily_bin968.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/369164/ft2_4FGL_J2234.7+0943_daily_bin968.fits
.....................!
real 12.05
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369164/ft1_filtered_4FGL_J2234.7+0943_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/369164/ft2_4FGL_J2234.7+0943_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/369164/ltcube_490233601_490492801_4FGL_J2234.7+0943_daily_bin968.fits outfile=/scratch/kocevski/369164/expmap_490233601_490492801_4FGL_J2234.7+0943_daily_bin968.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/369164/ltcube_490233601_490492801_4FGL_J2234.7+0943_daily_bin968.fits
.....................!
real 190.78
user 185.08
sys 5.32

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/369164/ft1_filtered_4FGL_J2234.7+0943_daily_bin968.fits scfile=/scratch/kocevski/369164/ft2_4FGL_J2234.7+0943_daily_bin968.fits outfile=/scratch/kocevski/369164/cmap_490233601_490492801_4FGL_J2234.7+0943_daily_bin968.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.40
sys 0.13

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/369164/ft1_filtered_4FGL_J2234.7+0943_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/369164/ft2_4FGL_J2234.7+0943_daily_bin968.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/369164/Model_4FGL_J2234.7+0943_daily_bin968.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/369164/ft1_filtered_4FGL_J2234.7+0943_daily_bin968.fits.....................!
real 104.14
user 102.67
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10287E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .80911       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.851       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.680       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.986       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2421       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1545       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0851       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0792       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29560E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0010       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3787       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80879       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=   9862.730     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     2751 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9228        .26494E-03** at limit **
   2  norm          .10000E-03    14.768        .18142E-02** at limit **
   3  norm          .80863        1.0716        .11549E-03    .37839E-03
   4  Prefactor     15.847        16.098        .10060E-03   -.47464E-05
   5  Prefactor     .10000E-03    7.5600        .18142E-02** at limit **
   6  Prefactor     37.670        35.998        .65292E-04    .30297E-04
   7  norm          .10000E-03    3.0154        .16709E-02** at limit **
   8  Prefactor     14.985        15.167        .10346E-03    .29888E-04
   9  Prefactor     4.2552        12.706        .19564E-03    .98790E-04
  10  Prefactor     3.1551        .38582        .20082E-04    .21512E-03
  11  Prefactor     .10000E-03    3.9846        .18142E-02** at limit **
  12  norm          2.0851        1.6074        .10737E-03    .42989E-04
  13  Prefactor     5.0699        28.442        .17841E-03    .17588E-04
  14  Prefactor     .10001E-03    13.474        .10574    ** at limit **
  15  Prefactor     .10000E-03    5.4990        .18142E-02** at limit **
  16  Prefactor     5.0012        .36841        .15310E-04    .33563E-03
  17  Prefactor     .10000E-03    20.917        .18142E-02** at limit **
  18  Prefactor     .10000E-03    3.2228        .17383E-02** at limit **
  19  Prefactor     .10005E-03    92.819        .47396E-02** at limit **
  20  Prefactor     .10000E-03    7.7897        .18142E-02** at limit **
  21  Normalizat    1.3780        .28896        .38332E-03    .14497E-03
  22  Prefactor     .80938        .15054        .25913E-03    .72303E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.808629
  Prefactor  = 15.8467
  Prefactor  = 0.0001
  Prefactor  = 37.6697
  norm       = 0.0001
  Prefactor  = 14.9855
  Prefactor  = 4.25521
  Prefactor  = 3.15512
  Prefactor  = 0.0001
  norm       = 2.08506
  Prefactor  = 5.06986
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 5.00118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  Normalizat = 1.37799
  Prefactor  = 0.809382
 **********
 **   18 **HESSE 
 **********

 FCN=   9862.730     FROM HESSE     STATUS=OK           330 CALLS     3081 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9228        .52987E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.769        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .80863        1.0715        .46197E-05   -1.5528    
   4  Prefactor     15.847        16.099        .40240E-05   -1.4912    
   5  Prefactor     .10000E-03    7.5604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.670        36.004        .26117E-05   -1.4480    
   7  norm          .10000E-03    3.0170        .33418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.985        15.166        .41385E-05   -1.4934    
   9  Prefactor     4.2552        12.705        .78254E-05   -1.5295    
  10  Prefactor     3.1551        .38582        .80329E-06   -1.5353    
  11  Prefactor     .10000E-03    3.9853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0851        1.6074        .42947E-05   -1.5419    
  13  Prefactor     5.0699        28.436        .71363E-05   -1.5258    
  14  Prefactor     .10001E-03    13.011        .10873       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0012        .36843        .61241E-06   -1.5261    
  17  Prefactor     .10000E-03    20.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2232        .34767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    95.800        .18958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3780        .28923        .15333E-04   -.81268    
  22  Prefactor     .80938        .15072        .10365E-04   -.99383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72006e-10
Minuit parameter uncertainties:
  1  3.26725e-06
  2  1.58992e-05
  3  1.0715
  4  16.1029
  5  4.52258e-06
  6  36.0249
  7  1.00555e-06
  8  15.17
  9  12.7134
  10  0.385816
  11  3.66364e-06
  12  1.60742
  13  24.0313
  14  0.0006342
  15  8.53332e-07
  16  0.368428
  17  5.21134e-06
  18  7.11974e-07
  19  0.00447333
  20  1.54463e-06
  21  0.28957
  22  0.150795
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  3.664e-06  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.094e-01  1.508e-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.378e+00  2.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/369164/likelihoodResults_490233601_490492801_4FGL_J2234.7+0943_daily_bin968.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9862.73147599
delta logL = -0.00118973090139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9862.73028619
delta logL = 7.46476871427e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    .92284       1.0000          .0000       10.000    
     3 'Normalizat'    1.3780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80939       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=   9862.730     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      261 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    141.28        .76649E-01** at limit **
   2  Index1        .22101E-07    7.6242        .50000    ** at limit **
   3  Normalizat    1.3780        .40907E-01    .38332E-03    .16727E-03
   4  Prefactor     .80938        .22021E-01    .25913E-03    .25060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index1     = 2.2101e-08
  Normalizat = 1.37798
  Prefactor  = 0.809384
 **********
 **   18 **HESSE 
 **********

 FCN=   9862.730     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      292 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    509.80        .35840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        .22101E-07    7.4651        .50000       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3780        .64043E-01    .15333E-04   -.81268    
   4  Prefactor     .80938        .34435E-01    .10365E-04   -.99383    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64841e-11
Minuit parameter uncertainties:
  1  3.78448e-05
  2  1.02867
  3  0.0640465
  4  0.0344357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369164': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9862.73028225
delta logL = 4.01031138608e-06

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  3.784e-05  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.210e-08  1.029e+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.094e-01  3.444e-02  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.378e+00  6.405e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.691 9.732

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/369164/cmap_HighResolution_490233601_490492801_4FGL_J2234.7+0943_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-05', job_status='DONE', photon_flux_upper_limit='4.33e-08', time_completed='2021-09-28 15:26:20.770669', job_id='369164', GAL2='0.81', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632867980.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='0.94' WHERE bin_id='968' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:26:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 369164: <4FGL_J2234.7+0943_daily_bin968> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin968> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 15:10:35 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:10:37 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:10:37 2021
Terminated at Tue Sep 28 15:26:21 2021
Results reported at Tue Sep 28 15:26:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin968 338.691 9.732 490233601 490492801 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 :                                   896.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            946 sec.

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

