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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin816
RA = 338.691, Dec = 9.732
tmin = 450835201, tmax = 451094401
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='366615', job_status='RUN', time_executed='2021-09-28 15:09:40.780898', time_epoch_executed='1632866980.78' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366615/ft1_4FGL_J2234.7+0943_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366615/ft2_4FGL_J2234.7+0943_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366615/ft1_4FGL_J2234.7+0943_daily_bin816.fits outfile=/scratch/kocevski/366615/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin816.fits ra=338.691 dec=9.732 rad=12.0 tmin=450835201.0 tmax=451094401.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.43
user 3.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/366615/ft2_4FGL_J2234.7+0943_daily_bin816.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/366615/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin816.fits evtable="EVENTS" outfile="/scratch/kocevski/366615/ft1_filtered_4FGL_J2234.7+0943_daily_bin816.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366615/ft1_filtered_4FGL_J2234.7+0943_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/366615/ft2_4FGL_J2234.7+0943_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/366615/ltcube_450835201_451094401_4FGL_J2234.7+0943_daily_bin816.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/366615/ft2_4FGL_J2234.7+0943_daily_bin816.fits
.....................!
real 12.76
user 12.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366615/ft1_filtered_4FGL_J2234.7+0943_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/366615/ft2_4FGL_J2234.7+0943_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/366615/ltcube_450835201_451094401_4FGL_J2234.7+0943_daily_bin816.fits outfile=/scratch/kocevski/366615/expmap_450835201_451094401_4FGL_J2234.7+0943_daily_bin816.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/366615/ltcube_450835201_451094401_4FGL_J2234.7+0943_daily_bin816.fits
.....................!
real 191.87
user 186.79
sys 4.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/366615/ft1_filtered_4FGL_J2234.7+0943_daily_bin816.fits scfile=/scratch/kocevski/366615/ft2_4FGL_J2234.7+0943_daily_bin816.fits outfile=/scratch/kocevski/366615/cmap_450835201_451094401_4FGL_J2234.7+0943_daily_bin816.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/366615/ft1_filtered_4FGL_J2234.7+0943_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/366615/ft2_4FGL_J2234.7+0943_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366615/Model_4FGL_J2234.7+0943_daily_bin816.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/366615/ft1_filtered_4FGL_J2234.7+0943_daily_bin816.fits.....................!
real 73.32
user 71.94
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2034       1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .81282       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1727       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.527       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32467       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .79258       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.982       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.859       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31256E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8105       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.212       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .81968       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.320       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .55432       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0489       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=   7449.057     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2827 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2032        2.9877        .24217E-07   -.79192E-04
   2  norm          .10000E-03    16.556       -.48807E-07** at limit **
   3  norm          .81261        1.1098        .12233E-06   -.17966E-03
   4  Prefactor     .10000E-03    31.829        .74180E-07** at limit **
   5  Prefactor     .10000E-03    6.8716       -.10945E-07** at limit **
   6  Prefactor     .10041E-03    22.584        .13511E-05** at limit **
   7  norm          4.1730        3.9717        .13456E-05   -.56762E-03
   8  Prefactor     .10000E-03    7.6019        .28021E-07** at limit **
   9  Prefactor     22.528        16.713       -.19794E-05   -.48948E-03
  10  Prefactor     .32466        .16369        .66152E-08   -.24066E-03
  11  Prefactor     .10000E-03    1.8266       -.25258E-07** at limit **
  12  norm          .79088        1.7488        .58472E-06    .12851E-04
  13  Prefactor     10.981        21.897       -.44517E-06   -.42775E-04
  14  Prefactor     10.871        21.154        .13468E-06    .42342E-04
  15  Prefactor     .10437E-03    15.113       -.66903E-06** at limit **
  16  Prefactor     1.8107        .25618       -.62138E-08    .20071E-03
  17  Prefactor     39.215        35.102        .25165E-06    .20093E-04
  18  Prefactor     .79890        3.8203        .15630E-06   -.54336E-04
  19  Prefactor     .10000E-03    3.1136        .34877E-07** at limit **
  20  Prefactor     20.319        19.760        .46855E-06    .81406E-04
  21  Normalizat    .55413        .22896        .17637E-06   -.82323E-04
  22  Prefactor     1.0491        .12320       -.35842E-06   -.98131E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.20318
  norm       = 0.0001
  norm       = 0.812608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100406
  norm       = 4.17296
  Prefactor  = 0.0001
  Prefactor  = 22.5276
  Prefactor  = 0.324661
  Prefactor  = 0.0001
  norm       = 0.790884
  Prefactor  = 10.9809
  Prefactor  = 10.8709
  Prefactor  = 0.000104374
  Prefactor  = 1.81067
  Prefactor  = 39.2146
  Prefactor  = 0.798901
  Prefactor  = 0.0001
  Prefactor  = 20.3186
  Normalizat = 0.554132
  Prefactor  = 1.04905
 **********
 **   18 **HESSE 
 **********

 FCN=   7449.057     FROM HESSE     STATUS=OK           366 CALLS     3193 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2032        2.9848        .10899E-03   -1.5252    
   2  norm          .10000E-03    16.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .81261        1.0867        .10027E-03   -1.5528    
   4  Prefactor     .10000E-03    32.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10041E-03    24.265        .11321       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.1730        4.0196        .81984E-03   -1.5299    
   8  Prefactor     .10000E-03    7.6681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.528        17.635        .84392E-04   -1.4758    
  10  Prefactor     .32466        .16069        .23651E-04   -1.5594    
  11  Prefactor     .10000E-03    1.8279        .11392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .79088        1.6440        .15657E-02   -1.5530    
  13  Prefactor     10.981        21.963        .12089E-03   -1.5045    
  14  Prefactor     10.871        20.738        .12158E-03   -1.5048    
  15  Prefactor     .10437E-03    17.871        .10158       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8107        .25624        .14871E-04   -1.5439    
  17  Prefactor     39.215        35.084        .64009E-04   -1.4455    
  18  Prefactor     .79890        14.464        .31806E-02   -1.5529    
  19  Prefactor     .10000E-03    3.1175        .14873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.319        19.796        .88852E-04   -1.4806    
  21  Normalizat    .55413        .25031        .42575E-03   -1.0997    
  22  Prefactor     1.0491        .13846        .17894E-03   -.91112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0582e-08
Minuit parameter uncertainties:
  1  2.98484
  2  1.12368e-05
  3  1.08675
  4  2.30874e-05
  5  2.93461e-06
  6  0.00627798
  7  4.01991
  8  3.17421e-06
  9  17.6391
  10  0.160694
  11  1.34122e-06
  12  1.64409
  13  21.9787
  14  20.7516
  15  0.0176873
  16  0.256245
  17  35.1025
  18  6.80006
  19  1.88005e-06
  20  19.8027
  21  0.250817
  22  0.138505
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  1.341e-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:  1.049e+00  1.385e-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:  5.541e-01  2.508e-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: 2.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/366615/likelihoodResults_450835201_451094401_4FGL_J2234.7+0943_daily_bin816.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) = 7449.0591117
delta logL = -0.00250355371372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7449.05660846
delta logL = -3.10291397909e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    .92183       1.0000          .0000       10.000    
     3 'Normalizat'    .55410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0490       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=   7449.057     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      247 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.396        .11495E-01** at limit **
   2  Index1        .37987        9.6662        .50000        .28001E-06
   3  Normalizat    .55413        .15678E-01    .42574E-03    .18505E-03
   4  Prefactor     1.0491        .89344E-02    .17894E-03    .44203E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index1     = 0.379874
  Normalizat = 0.554134
  Prefactor  = 1.04905
 **********
 **   18 **HESSE 
 **********

 FCN=   7449.057     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    159.23        .12194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        .37987        8.9586        .50000       -1.1785    
   3  Normalizat    .55413        .49053E-01    .17030E-04   -1.0997    
   4  Prefactor     1.0491        .27956E-01    .35788E-04   -.91112    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.47114e-08
Minuit parameter uncertainties:
  1  0.000351303
  2  1293.59
  3  0.049057
  4  0.0279565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366615': 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) = 7449.05660468
delta logL = 3.47463719663e-06

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  3.513e-04  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  3.799e-01  1.294e+03  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.049e+00  2.796e-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:  5.541e-01  4.906e-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/366615/cmap_HighResolution_450835201_451094401_4FGL_J2234.7+0943_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-05', job_status='DONE', photon_flux_upper_limit='2.67e-08', time_completed='2021-09-28 15:21:37.656035', job_id='366615', GAL2='1.05', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1632867697.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='0.94' WHERE bin_id='816' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:21:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 366615: <4FGL_J2234.7+0943_daily_bin816> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin816> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:05:36 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:05: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:05:37 2021
Terminated at Tue Sep 28 15:21:38 2021
Results reported at Tue Sep 28 15:21:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin816 338.691 9.732 450835201 451094401 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 :                                   716.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

