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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin589
RA = 338.691, Dec = 9.732
tmin = 391996801, tmax = 392256001
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='365176', job_status='RUN', time_executed='2021-09-28 15:04:03.125238', time_epoch_executed='1632866643.13' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365176/ft1_4FGL_J2234.7+0943_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365176/ft2_4FGL_J2234.7+0943_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365176/ft1_4FGL_J2234.7+0943_daily_bin589.fits outfile=/scratch/kocevski/365176/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin589.fits ra=338.691 dec=9.732 rad=12.0 tmin=391996801.0 tmax=392256001.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.35
user 5.10
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365176/ft1_filtered_4FGL_J2234.7+0943_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/365176/ft2_4FGL_J2234.7+0943_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/365176/ltcube_391996801_392256001_4FGL_J2234.7+0943_daily_bin589.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/365176/ft2_4FGL_J2234.7+0943_daily_bin589.fits
.....................!
real 11.50
user 11.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365176/ft1_filtered_4FGL_J2234.7+0943_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/365176/ft2_4FGL_J2234.7+0943_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/365176/ltcube_391996801_392256001_4FGL_J2234.7+0943_daily_bin589.fits outfile=/scratch/kocevski/365176/expmap_391996801_392256001_4FGL_J2234.7+0943_daily_bin589.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/365176/ltcube_391996801_392256001_4FGL_J2234.7+0943_daily_bin589.fits
.....................!
real 189.30
user 185.01
sys 3.97

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365176/ft1_filtered_4FGL_J2234.7+0943_daily_bin589.fits scfile=/scratch/kocevski/365176/ft2_4FGL_J2234.7+0943_daily_bin589.fits outfile=/scratch/kocevski/365176/cmap_HighResolution_391996801_392256001_4FGL_J2234.7+0943_daily_bin589.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.56
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38904       1.0000         .10000E-03   10000.    
     2 'norm      '    5.1269       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11532E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.119       1.0000         .10000E-03   10000.    
     7 'norm      '    5.0669       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.758       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5631       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10516E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.853       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1303       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.733       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76736       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3688       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.541       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2777       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82617       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95884       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=   8017.464     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2441 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38268        2.0401       -.71288E-06   -.60607E-03
   2  norm          5.1057        22.681        .18198E-05   -.26407E-05
   3  norm          .10000E-03    .44322       -.85211E-07** at limit **
   4  Prefactor     .10029E-03    8.3103        .13019E-05** at limit **
   5  Prefactor     .10000E-03    9.1352       -.45219E-06** at limit **
   6  Prefactor     37.101        33.344       -.12983E-04   -.50032E-04
   7  norm          5.0685        6.0201        .29633E-05   -.30665E-03
   8  Prefactor     21.758        20.593       -.45093E-06   -.86021E-05
   9  Prefactor     .10000E-03    27.246       -.12370E-05** at limit **
  10  Prefactor     2.5631        .37466        .27971E-07   -.35775E-03
  11  Prefactor     .10000E-03    2.5947       -.60476E-07** at limit **
  12  norm          .10000E-03    1.0877       -.67853E-06** at limit **
  13  Prefactor     38.856        34.820        .20021E-05   -.28085E-04
  14  Prefactor     3.1001        22.514        .30318E-04   -.41801E-04
  15  Prefactor     26.725        25.149       -.38716E-05   -.30873E-04
  16  Prefactor     .76744        .22410       -.78067E-07   -.22140E-02
  17  Prefactor     .10000E-03    8.8406        .25193E-06** at limit **
  18  Prefactor     5.3682        8.8808        .65376E-06   -.19120E-03
  19  Prefactor     15.541        13.386       -.24170E-06   -.32892E-04
  20  Prefactor     7.2774        13.545       -.43049E-06   -.30604E-04
  21  Normalizat    .82613        .22892        .13952E-05   -.16022E-03
  22  Prefactor     .95891        .12045       -.94859E-06   -.71270E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.382677
  norm       = 5.10568
  norm       = 0.0001
  Prefactor  = 0.000100294
  Prefactor  = 0.0001
  Prefactor  = 37.101
  norm       = 5.06847
  Prefactor  = 21.7577
  Prefactor  = 0.000100001
  Prefactor  = 2.56308
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 38.8559
  Prefactor  = 3.1001
  Prefactor  = 26.7254
  Prefactor  = 0.767438
  Prefactor  = 0.0001
  Prefactor  = 5.36824
  Prefactor  = 15.5411
  Prefactor  = 7.27735
  Normalizat = 0.826125
  Prefactor  = 0.958906
 **********
 **   18 **HESSE 
 **********

 FCN=   8017.464     FROM HESSE     STATUS=OK           354 CALLS     2795 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38268        4.0161        .23580E-02   -1.5584    
   2  norm          5.1057        21.995        .17756E-03   -1.5256    
   3  norm          .10000E-03    .45753        .11630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10029E-03    91.144        .49592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.101        33.262        .65783E-04   -1.4489    
   7  norm          5.0685        5.9827        .17863E-03   -1.5258    
   8  Prefactor     21.758        20.696        .85869E-04   -1.4775    
   9  Prefactor     .10000E-03    27.952        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5631        .37718        .18876E-04   -1.5388    
  11  Prefactor     .10000E-03    2.5981        .14085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1314        .18292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.856        34.922        .64302E-04   -1.4460    
  14  Prefactor     3.1001        22.044        .22914E-03   -1.5356    
  15  Prefactor     26.725        25.215        .77481E-04   -1.4674    
  16  Prefactor     .76744        .22450        .20151E-04   -1.5533    
  17  Prefactor     .10000E-03    8.8445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.3682        8.8624        .17344E-03   -1.5245    
  19  Prefactor     15.541        13.381        .10160E-03   -1.4919    
  20  Prefactor     7.2774        13.540        .14868E-03   -1.5168    
  21  Normalizat    .82613        .26323        .38772E-03   -.99107    
  22  Prefactor     .95891        .14056        .19935E-03   -.94112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74918e-09
Minuit parameter uncertainties:
  1  2.47931
  2  21.2072
  3  1.89842e-06
  4  0.0103742
  5  1.70833e-05
  6  33.2791
  7  5.9834
  8  20.7029
  9  0.000289277
  10  0.37718
  11  1.77643e-06
  12  7.62633e-05
  13  34.9399
  14  16.5419
  15  25.2255
  16  0.224501
  17  1.41275e-06
  18  8.8646
  19  13.3834
  20  13.5462
  21  0.263639
  22  0.140609
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  1.776e-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:  9.589e-01  1.406e-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:  8.261e-01  2.636e-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: 3.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365176/likelihoodResults_391996801_392256001_4FGL_J2234.7+0943_daily_bin589.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) = 8017.46575002
delta logL = -0.00181111858637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8017.46393889
delta logL = 5.85532689001e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    .94450       1.0000          .0000       10.000    
     3 'Normalizat'    .82614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95890       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=   8017.464     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1967        .90712E-02** at limit **
   2  Index1        .94830        5.5109        .45570       -.51340E-05
   3  Normalizat    .82613        .21454        .87544E-01    .33985E-04
   4  Prefactor     .95890        .11888        .45751E-01    .69210E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index1     = 0.948295
  Normalizat = 0.826129
  Prefactor  = 0.958904
 **********
 **   18 **HESSE 
 **********

 FCN=   8017.464     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7422        .14090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        .94830        5.2754        .50000       -.94473    
   3  Normalizat    .82613        .24903        .38772E-03   -.99107    
   4  Prefactor     .95890        .13834        .19935E-03   -.94112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78273e-11
Minuit parameter uncertainties:
  1  1.01427e-07
  2  3.0105
  3  0.24938
  4  0.138391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365176': 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) = 8017.46393889
delta logL = 1.32886270876e-08

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  1.014e-07  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.483e-01  3.011e+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:  9.589e-01  1.384e-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:  8.261e-01  2.494e-01  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/365176/cmap_HighResolution_391996801_392256001_4FGL_J2234.7+0943_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2021-09-28 15:16:02.387787', job_id='365176', GAL2='0.96', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632867362.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.33e-08', ts2='-0.00', photon_index_error='0.00', photon_index='0.94' WHERE bin_id='589' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:16:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 365176: <4FGL_J2234.7+0943_daily_bin589> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin589 338.691 9.732 391996801 392256001 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 :                                   718.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             286.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

