/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 154 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.7+0943_daily_bin248
RA = 338.691, Dec = 9.732
tmin = 303609601, tmax = 303868801
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='364627', job_status='RUN', time_executed='2021-09-28 15:03:11.818780', time_epoch_executed='1632866591.82' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364627

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364627/ft1_4FGL_J2234.7+0943_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364627/ft2_4FGL_J2234.7+0943_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364627/ft1_4FGL_J2234.7+0943_daily_bin248.fits outfile=/scratch/kocevski/364627/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin248.fits ra=338.691 dec=9.732 rad=12.0 tmin=303609601.0 tmax=303868801.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.41
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364627/ft1_filtered_4FGL_J2234.7+0943_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/364627/ft2_4FGL_J2234.7+0943_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/364627/ltcube_303609601_303868801_4FGL_J2234.7+0943_daily_bin248.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/364627/ft2_4FGL_J2234.7+0943_daily_bin248.fits
.....................!
real 12.03
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364627/ft1_filtered_4FGL_J2234.7+0943_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/364627/ft2_4FGL_J2234.7+0943_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/364627/ltcube_303609601_303868801_4FGL_J2234.7+0943_daily_bin248.fits outfile=/scratch/kocevski/364627/expmap_303609601_303868801_4FGL_J2234.7+0943_daily_bin248.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/364627/ltcube_303609601_303868801_4FGL_J2234.7+0943_daily_bin248.fits
.....................!
real 191.25
user 185.56
sys 5.20

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/364627/ft1_filtered_4FGL_J2234.7+0943_daily_bin248.fits scfile=/scratch/kocevski/364627/ft2_4FGL_J2234.7+0943_daily_bin248.fits outfile=/scratch/kocevski/364627/cmap_303609601_303868801_4FGL_J2234.7+0943_daily_bin248.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364627/ft1_filtered_4FGL_J2234.7+0943_daily_bin248.fits scfile=/scratch/kocevski/364627/ft2_4FGL_J2234.7+0943_daily_bin248.fits outfile=/scratch/kocevski/364627/cmap_HighResolution_303609601_303868801_4FGL_J2234.7+0943_daily_bin248.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/364627/ft1_filtered_4FGL_J2234.7+0943_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/364627/ft2_4FGL_J2234.7+0943_daily_bin248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/364627/Model_4FGL_J2234.7+0943_daily_bin248.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/364627/ft1_filtered_4FGL_J2234.7+0943_daily_bin248.fits.....................!
real 96.78
user 95.32
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12135E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .28893E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .61945       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .36585E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.033       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7678       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .48617E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .80920E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4311       1.0000         .10000E-03   10000.    
    12 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.942       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11348E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7709       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .93003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20410       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.120       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99730       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0098       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=   9120.386     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2464 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1.3614        .14264E-06** at limit **
   2  norm          .10000E-03    12.363       -.44230E-06** at limit **
   3  norm          .61998        .87033        .16632E-06    .22196E-03
   4  Prefactor     .10000E-03    5.4405        .63782E-07** at limit **
   5  Prefactor     .10000E-03    11.349        .16910E-06** at limit **
   6  Prefactor     21.133        32.943        .30618E-05    .13768E-03
   7  norm          3.7661        3.7360        .55521E-07   -.62461E-04
   8  Prefactor     .10000E-03    12.719        .15379E-06** at limit **
   9  Prefactor     .10000E-03    4.9941        .10420E-07** at limit **
  10  Prefactor     .80958E-01    .13999        .16663E-06    .11532E-02
  11  Prefactor     4.4294        4.5869       -.13847E-05    .59021E-03
  12  norm          .10000E-03    1.1256        .50059E-07** at limit **
  13  Prefactor     .10000E-03    17.211       -.10292E-06** at limit **
  14  Prefactor     16.963        16.100        .17262E-06    .28090E-04
  15  Prefactor     .10000E-03    14.838       -.29271E-07** at limit **
  16  Prefactor     5.7707        .39411       -.12115E-09   -.19492E-03
  17  Prefactor     .10000E-03    42.760        .16880E-06** at limit **
  18  Prefactor     .16305        3.6867       -.19413E-06    .17373E-03
  19  Prefactor     .10000E-03    3.7061       -.42390E-08** at limit **
  20  Prefactor     53.248        28.171       -.87842E-06   -.18562E-03
  21  Normalizat    .99671        .23927       -.75751E-06   -.75304E-04
  22  Prefactor     1.0099        .12776       -.51010E-07   -.11828E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  norm       = 0.0001
  norm       = 0.619976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1329
  norm       = 3.7661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0809584
  Prefactor  = 4.42939
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9628
  Prefactor  = 0.0001
  Prefactor  = 5.77069
  Prefactor  = 0.0001
  Prefactor  = 0.163052
  Prefactor  = 0.0001
  Prefactor  = 53.2481
  Normalizat = 0.996714
  Prefactor  = 1.00992
 **********
 **   18 **HESSE 
 **********

 FCN=   9120.386     FROM HESSE     STATUS=OK           348 CALLS     2812 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    22.204        .21385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.416        .21406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .61998        .74903        .10271E-02   -1.5550    
   4  Prefactor     .10000E-03    5.4421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.408        .21304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.133        34.232        .87336E-04   -1.4788    
   7  norm          3.7661        3.7288        .17827E-03   -1.5320    
   8  Prefactor     .10000E-03    12.927        .21171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .80958E-01    .12749        .46565E-03   -1.5651    
  11  Prefactor     4.4294        4.6573        .95652E-03   -1.5287    
  12  norm          .10000E-03    2.1262        .19162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.963        15.664        .97304E-04   -1.4884    
  15  Prefactor     .10000E-03    14.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7707        .39470        .14769E-04   -1.5227    
  17  Prefactor     .10000E-03    43.055        .20809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16305        66.659        .35086E-02   -1.5627    
  19  Prefactor     .10000E-03    3.7120        .17955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     53.248        28.500        .27515E-03   -1.4247    
  21  Normalizat    .99671        .27956        .40897E-03   -.93141    
  22  Prefactor     1.0099        .15215        .22308E-03   -.92400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41922e-09
Minuit parameter uncertainties:
  1  0.00114349
  2  5.4389e-05
  3  0.74904
  4  8.78253e-06
  5  1.12469e-05
  6  34.2637
  7  3.72899
  8  4.51235e-06
  9  2.25678e-06
  10  0.127491
  11  4.65768
  12  9.98212e-06
  13  9.98468e-06
  14  15.6676
  15  1.17018e-06
  16  0.394696
  17  0.000137121
  18  6.59896
  19  2.37064e-06
  20  28.5076
  21  0.279974
  22  0.152218
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.429e+00  4.658e+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.010e+00  1.522e-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.967e-01  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.35
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.14e-08 +/- 1.20e-08
Energy Flux (Fixed Index): 8.39e-06 +/- 8.83e-06

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

Saving results to:
/scratch/kocevski/364627/likelihoodResults_303609601_303868801_4FGL_J2234.7+0943_daily_bin248.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9120.37435426
delta logL = 0.0120074547922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9120.37238961
delta logL = 0.0139721024752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1205       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.2898       1.0000          .0000       10.000    
     3 'Normalizat'    .99190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       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=   9120.372     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      247 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1203        5.1395        .19115E-03   -.39135E-04
   2  Index1        1.2897        1.9618        .15247E-01   -.12556E-04
   3  Normalizat    .99190        .27613        .40984E-03   -.54924E-04
   4  Prefactor     1.0099        .15087        .22307E-03   -.11010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.12032
  Index1     = 1.28966
  Normalizat = 0.991903
  Prefactor  = 1.00987
 **********
 **   18 **HESSE 
 **********

 FCN=   9120.372     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1203        4.9129        .76460E-05   -1.5302    
   2  Index1        1.2897        1.8836        .60988E-03   -.83615    
   3  Normalizat    .99190        .27564        .16394E-04   -.93302    
   4  Prefactor     1.0099        .15100        .44614E-04   -.92401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15198e-11
Minuit parameter uncertainties:
  1  4.91337
  2  2.00025
  3  0.276035
  4  0.151059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364627': 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) = 9120.37238961
delta logL = 0.0139721082232

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.120e+00  4.913e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.290e+00  2.000e+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:  1.010e+00  1.511e-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.919e-01  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.29 +/- 2.00
Photon Flux (Free Index): 1.81e-08 +/- 5.31e-08
Energy Flux (Free Index): 8.98e-06 +/- 1.07e-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/364627/cmap_HighResolution_303609601_303868801_4FGL_J2234.7+0943_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', comment='SUCCESS', photon_flux='1.14e-08', energy_flux2='8.98e-06', photon_flux_error='1.20e-08', dlogl='1.40e-02', energy_flux='8.39e-06', photon_flux2='1.81e-08', job_status='DONE', time_completed='2021-09-28 15:16:37.671550', photon_index_error2='2.00', photon_index2='1.29', ts='3.35', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='5.14e-08', energy_flux_error2='1.07e-05', EG='1.00', time_epoch_completed='1632867397.67', return_code='0', job_id='364627', GAL2='1.01', EG2='0.99', return_code2='0', energy_flux_error='8.83e-06', photon_flux_error2='5.31e-08', ts2='3.37', photon_index='0.94' WHERE bin_id='248' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:16:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 364627: <4FGL_J2234.7+0943_daily_bin248> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin248> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 15:00:27 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:00:29 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:00:29 2021
Terminated at Tue Sep 28 15:16:38 2021
Results reported at Tue Sep 28 15:16:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin248 338.691 9.732 303609601 303868801 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 :                                   804.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

