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


Performing analysis on: 4FGL_J2334.8+1432_daily_bin1074
RA = 353.723, Dec = 14.5346
tmin = 517708801, tmax = 517968001
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='27112', job_status='RUN', time_executed='2021-09-30 00:02:48.326447', time_epoch_executed='1632985368.33' WHERE source_name='4FGL J2334.8+1432' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27112/ft1_4FGL_J2334.8+1432_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27112/ft2_4FGL_J2334.8+1432_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27112/ft1_4FGL_J2334.8+1432_daily_bin1074.fits outfile=/scratch/kocevski/27112/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin1074.fits ra=353.723 dec=14.5346 rad=12.0 tmin=517708801.0 tmax=517968001.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.71
user 3.43
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/27112/ft2_4FGL_J2334.8+1432_daily_bin1074.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/27112/ft2_4FGL_J2334.8+1432_daily_bin1074.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/27112/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin1074.fits evtable="EVENTS" outfile="/scratch/kocevski/27112/ft1_filtered_4FGL_J2334.8+1432_daily_bin1074.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27112/ft1_filtered_4FGL_J2334.8+1432_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/27112/ft2_4FGL_J2334.8+1432_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/27112/ltcube_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.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/27112/ft2_4FGL_J2334.8+1432_daily_bin1074.fits
.....................!
real 12.07
user 11.66
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27112/ft1_filtered_4FGL_J2334.8+1432_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/27112/ft2_4FGL_J2334.8+1432_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/27112/ltcube_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.fits outfile=/scratch/kocevski/27112/expmap_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.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/27112/ltcube_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.fits
.....................!
real 190.55
user 185.08
sys 4.99

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2334.8+1432 @ 353.723 14.5346

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/27112/ft1_filtered_4FGL_J2334.8+1432_daily_bin1074.fits scfile=/scratch/kocevski/27112/ft2_4FGL_J2334.8+1432_daily_bin1074.fits outfile=/scratch/kocevski/27112/cmap_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.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=353.723 yref=14.5346 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27112/ft1_filtered_4FGL_J2334.8+1432_daily_bin1074.fits scfile=/scratch/kocevski/27112/ft2_4FGL_J2334.8+1432_daily_bin1074.fits outfile=/scratch/kocevski/27112/cmap_HighResolution_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.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=353.723 yref=14.5346 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/27112/ft1_filtered_4FGL_J2334.8+1432_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/27112/ft2_4FGL_J2334.8+1432_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27112/Model_4FGL_J2334.8+1432_daily_bin1074.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/27112/ft1_filtered_4FGL_J2334.8+1432_daily_bin1074.fits....................!
real 84.90
user 83.20
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/27112/ft1_filtered_4FGL_J2334.8+1432_daily_bin1074.fits', '/scratch/kocevski/27112/ft2_4FGL_J2334.8+1432_daily_bin1074.fits', expMap='/scratch/kocevski/27112/expmap_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.fits', expCube='/scratch/kocevski/27112/ltcube_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/27112/Model_4FGL_J2334.8+1432_daily_bin1074.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2334.8+1432'

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  4.331e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  1.902e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
451         beta:  8.816e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  1.535e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/27112/ft1_filtered_4FGL_J2334.8+1432_daily_bin1074.fits
Spacecraft file(s): /scratch/kocevski/27112/ft2_4FGL_J2334.8+1432_daily_bin1074.fits
Exposure map: /scratch/kocevski/27112/expmap_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.fits
Exposure cube: /scratch/kocevski/27112/ltcube_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/27112/Model_4FGL_J2334.8+1432_daily_bin1074.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) = 7547.3743359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5603       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9521       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.992       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3645       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9650       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11646E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .24579E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.077       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.429       1.0000         .10000E-03   10000.    
    16 'norm      '    9.5983       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8251       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8474       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4675       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .67176       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7547.293     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     1891 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5601        3.0515        .53549E-02    .44623E-03
   2  Prefactor     7.9512        9.7120        .35547E-02    .10700E-03
   3  Prefactor     14.991        11.449        .25861E-02    .11822E-03
   4  Prefactor     .10000E-03    46.395        .90712E-02** at limit **
   5  Prefactor     .10000E-03    10.346        .90712E-02** at limit **
   6  Prefactor     1.3644        .21398        .34370E-02    .48107E-04
   7  Prefactor     3.9625        49.488        .50641E-02    .15384E-03
   8  Prefactor     .10000E-03    2.5354        .90712E-02** at limit **
   9  Prefactor     .10000E-03    2.9544        .90712E-02** at limit **
  10  Prefactor     .10000E-03    2.2146        .90712E-02** at limit **
  11  Prefactor     .10000E-03    3.9826        .90712E-02** at limit **
  12  Prefactor     .10000E-03    20.817        .90712E-02** at limit **
  13  norm          .10000E-03    4.0782        .91453E-01** at limit **
  14  Prefactor     10.079        7.0369        .31557E-02    .31035E-03
  15  Prefactor     13.428        13.507        .27326E-02    .28117E-03
  16  norm          9.5981        9.4905        .32337E-02   -.92648E-04
  17  Prefactor     .10000E-03    23.939        .90712E-02** at limit **
  18  Prefactor     5.8243        10.971        .41600E-02    .14035E-02
  19  Prefactor     1.8465        9.0368        .76698E-02    .87031E-03
  20  Normalizat    1.4676        .20456        .61293E-01    .11693E-04
  21  Prefactor     .67170        .11599        .42024E-01    .24098E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.56006
  Prefactor  = 7.95122
  Prefactor  = 14.9907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.36444
  Prefactor  = 3.96253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0786
  Prefactor  = 13.4283
  norm       = 9.59806
  Prefactor  = 0.0001
  Prefactor  = 5.82435
  Prefactor  = 1.84652
  Normalizat = 1.46765
  Prefactor  = 0.671696
 **********
 **   18 **HESSE 
 **********

 FCN=   7547.293     FROM HESSE     STATUS=OK           327 CALLS     2218 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5601        3.0420        .12998E-03   -1.5331    
   2  Prefactor     7.9512        9.6853        .14219E-03   -1.5144    
   3  Prefactor     14.991        11.452        .10344E-03   -1.4933    
   4  Prefactor     .10000E-03    46.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3644        .21424        .15200E-04   -1.5474    
   7  Prefactor     3.9625        49.518        .20257E-03   -1.5310    
   8  Prefactor     .10000E-03    2.5437        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9566        .14583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2343        .12622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9926        .16925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.6177        .56291E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.079        7.0616        .12623E-03   -1.5073    
  15  Prefactor     13.428        13.510        .10930E-03   -1.4975    
  16  norm          9.5981        9.4885        .12935E-03   -1.5088    
  17  Prefactor     .10000E-03    23.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.8243        10.964        .83200E-03   -1.5225    
  19  Prefactor     1.8465        9.0212        .30679E-03   -1.5436    
  20  Normalizat    1.4676        .24198        .27107E-03   -.78692    
  21  Prefactor     .67170        .13645        .22764E-03   -1.0465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14692e-09
Minuit parameter uncertainties:
  1  3.04215
  2  9.68719
  3  11.4541
  4  0.000122557
  5  7.45735e-06
  6  0.21424
  7  28.0439
  8  4.16883e-07
  9  2.7728e-06
  10  5.75383e-07
  11  1.48514e-06
  12  1.31922e-06
  13  3.73625e-05
  14  7.06216
  15  13.5126
  16  9.49002
  17  5.99193e-05
  18  10.9673
  19  8.16459
  20  0.242167
  21  0.136515
Done.

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

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  9.598e+00  9.490e+00  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  1.902e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
451         beta:  8.816e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  1.535e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  6.717e-01  1.365e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.468e+00  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 353.723 14.535
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.40e-08 +/- 1.38e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.17e-05

TS (Fixed Index): 2.07
Ra Dec: 353.723 14.535
Photon Flux Upper Limit: 5.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/27112/likelihoodResults_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.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) = 7547.18691499
delta logL = 0.106096617228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7547.18632454
delta logL = 0.106687068743

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7456       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2724       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67389       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+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=   7547.186     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      290 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7447        9.6388        .14408E-03    .41969E-03
   2  alpha         2.2721        .83827        .15534E-01    .48397E-04
   3  Normalizat    1.4598        .22868        .27168E-03   -.25400E-03
   4  Prefactor     .67389        .13576        .22728E-03   -.34259E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.7447
  alpha      = 2.27211
  Normalizat = 1.45976
  Prefactor  = 0.673894
 **********
 **   18 **HESSE 
 **********

 FCN=   7547.186     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7447        9.2015        .57633E-05   -1.5151    
   2  alpha         2.2721        .80143        .62138E-03   -.91284E-01
   3  Normalizat    1.4598        .22873        .54337E-04   -.78915    
   4  Prefactor     .67389        .13583        .90912E-05   -1.0456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59544e-10
Minuit parameter uncertainties:
  1  9.20322
  2  0.815965
  3  0.228889
  4  0.135898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27112': 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) = 7547.1863243
delta logL = 0.10668730779

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  7.745e+00  9.203e+00  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  2.272e+00  8.160e-01  0.000e+00  5.000e+00 ( 1.000e+00)
451         beta:  8.816e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
452           Eb:  1.535e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  6.739e-01  1.359e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.460e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 353.723 14.535
Photon Index (Free Index): 2.27 +/- 0.82
Photon Flux (Free Index): 2.09e-08 +/- 2.52e-08
Energy Flux (Free Index): 9.18e-06 +/- 9.41e-06

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/27112/cmap_HighResolution_517708801_517968001_4FGL_J2334.8+1432_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-05', comment='SUCCESS', photon_flux='1.40e-08', energy_flux2='9.18e-06', photon_flux_error='1.38e-08', dlogl='1.07e-01', energy_flux='1.18e-05', photon_flux2='2.09e-08', job_status='DONE', time_completed='2021-09-30 00:14:36.580401', photon_index_error2='0.82', photon_index2='2.27', ts='2.07', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='5.37e-08', energy_flux_error2='9.41e-06', EG='1.47', time_epoch_completed='1632986076.58', return_code='0', job_id='27112', GAL2='0.67', EG2='1.46', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='2.52e-08', ts2='2.28', photon_index='1.90' WHERE bin_id='1074' AND source_name='4FGL J2334.8+1432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:14:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 27112: <4FGL_J2334.8+1432_daily_bin1074> in cluster <slac> Done

Job <4FGL_J2334.8+1432_daily_bin1074> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:00:34 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:00:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:00:35 2021
Terminated at Thu Sep 30 00:14:37 2021
Results reported at Thu Sep 30 00:14:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.8+1432_daily_bin1074 353.723 14.5346 517708801 517968001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2334.8+1432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   662.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

