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


Performing analysis on: 4FGL_J2334.8+1432_daily_bin1630
RA = 353.723, Dec = 14.5346
tmin = 661824001, tmax = 662083201
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='500142', job_status='RUN', time_executed='2021-12-25 01:04:23.990543', time_epoch_executed='1640423063.99' WHERE source_name='4FGL J2334.8+1432' and cadence='daily' and bin_id='1630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500142

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500142/ft1_4FGL_J2334.8+1432_daily_bin1630.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500142/ft2_4FGL_J2334.8+1432_daily_bin1630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500142/ft1_4FGL_J2334.8+1432_daily_bin1630.fits outfile=/scratch/kocevski/500142/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin1630.fits ra=353.723 dec=14.5346 rad=12.0 tmin=661824001.0 tmax=662083201.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 4.66
user 4.42
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500142/ft1_filtered_4FGL_J2334.8+1432_daily_bin1630.fits" evtable="EVENTS" scfile=/scratch/kocevski/500142/ft2_4FGL_J2334.8+1432_daily_bin1630.fits sctable="SC_DATA" outfile=/scratch/kocevski/500142/ltcube_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.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/500142/ft2_4FGL_J2334.8+1432_daily_bin1630.fits
.....................!
real 14.13
user 13.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500142/ft1_filtered_4FGL_J2334.8+1432_daily_bin1630.fits evtable="EVENTS" scfile=/scratch/kocevski/500142/ft2_4FGL_J2334.8+1432_daily_bin1630.fits sctable="SC_DATA" expcube=/scratch/kocevski/500142/ltcube_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.fits outfile=/scratch/kocevski/500142/expmap_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.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/500142/ltcube_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.fits
.....................!
real 199.72
user 194.31
sys 5.03

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/500142/ft1_filtered_4FGL_J2334.8+1432_daily_bin1630.fits scfile=/scratch/kocevski/500142/ft2_4FGL_J2334.8+1432_daily_bin1630.fits outfile=/scratch/kocevski/500142/cmap_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500142/ft1_filtered_4FGL_J2334.8+1432_daily_bin1630.fits scfile=/scratch/kocevski/500142/ft2_4FGL_J2334.8+1432_daily_bin1630.fits outfile=/scratch/kocevski/500142/cmap_HighResolution_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.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.55
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/500142/ft1_filtered_4FGL_J2334.8+1432_daily_bin1630.fits', '/scratch/kocevski/500142/ft2_4FGL_J2334.8+1432_daily_bin1630.fits', expMap='/scratch/kocevski/500142/expmap_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.fits', expCube='/scratch/kocevski/500142/ltcube_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/500142/Model_4FGL_J2334.8+1432_daily_bin1630.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/500142/ft1_filtered_4FGL_J2334.8+1432_daily_bin1630.fits
Spacecraft file(s): /scratch/kocevski/500142/ft2_4FGL_J2334.8+1432_daily_bin1630.fits
Exposure map: /scratch/kocevski/500142/expmap_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.fits
Exposure cube: /scratch/kocevski/500142/ltcube_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/500142/Model_4FGL_J2334.8+1432_daily_bin1630.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) = 7308.0431742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15956E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1132       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .66197E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.549       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43244       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10611E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3788       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5255       1.0000         .10000E-03   10000.    
    16 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0058       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1339       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.

 FCN=   7307.918     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     1965 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4304        .37258E-07** at limit **
   2  Prefactor     .10000E-03    13.368       -.43388E-06** at limit **
   3  Prefactor     .10000E-03    9.2211       -.43177E-05** at limit **
   4  Prefactor     .10000E-03    10.969       -.39575E-08** at limit **
   5  Prefactor     .10000E-03    56.851        .22634E-05** at limit **
   6  Prefactor     1.1133        .22321        .21946E-07   -.23814E-02
   7  Prefactor     .10016E-03    73.785       -.14525E-04** at limit **
   8  Prefactor     .10000E-03    5.8181        .16488E-06** at limit **
   9  Prefactor     13.556        16.467       -.74673E-06   -.15293E-04
  10  Prefactor     .10001E-03    4.1231        .20789E-05** at limit **
  11  Prefactor     .42316        123.01        .28464E-04   -.59827E-04
  12  Prefactor     .10000E-03    59.460       -.14625E-05** at limit **
  13  norm          .10000E-03    14.319        .38517E-05** at limit **
  14  Prefactor     7.3749        8.8562       -.21803E-05   -.14852E-03
  15  Prefactor     2.5361        51.469       -.45966E-05    .66161E-04
  16  norm          .10000E-03    30.787       -.53553E-06** at limit **
  17  Prefactor     .10000E-03    25.024        .12740E-05** at limit **
  18  Prefactor     .10000E-03    11.858        .52610E-06** at limit **
  19  Prefactor     .10000E-03    2.5751        .13242E-07** at limit **
  20  Normalizat    1.0059        .22442       -.25110E-05   -.27993E-03
  21  Prefactor     1.1339        .12941       -.43204E-06   -.59818E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.11325
  Prefactor  = 0.000100156
  Prefactor  = 0.0001
  Prefactor  = 13.5559
  Prefactor  = 0.00010001
  Prefactor  = 0.423161
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 7.37491
  Prefactor  = 2.53612
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00591
  Prefactor  = 1.13393
 **********
 **   18 **HESSE 
 **********

 FCN=   7307.918     FROM HESSE     STATUS=OK           323 CALLS     2288 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4476        .99780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    71.190        .39638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    59.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1133        .22290        .17366E-04   -1.5497    
   7  Prefactor     .10016E-03    35.119        .14238       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.556        16.448        .10882E-03   -1.4971    
  10  Prefactor     .10001E-03    18.802        .31952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .42316        151.62        .46969E-02   -1.5578    
  12  Prefactor     .10000E-03    59.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    14.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3749        8.9634        .14765E-03   -1.5165    
  15  Prefactor     2.5361        53.781        .25705E-03   -1.5389    
  16  norm          .10000E-03    31.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5806        .13396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0059        .25747        .34399E-03   -.92833    
  21  Prefactor     1.1339        .15031        .19691E-03   -.88389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13626e-09
Minuit parameter uncertainties:
  1  1.20741e-05
  2  0.000112647
  3  0.000738074
  4  2.38595e-06
  5  0.000479617
  6  0.222905
  7  0.00468722
  8  3.581e-05
  9  16.4535
  10  0.000846464
  11  16.059
  12  0.000904672
  13  0.00011415
  14  8.96503
  15  23.3812
  16  0.000402081
  17  9.79316e-05
  18  1.45112e-05
  19  1.13735e-05
  20  0.257792
  21  0.150366
Done.

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

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  1.000e-04  4.021e-04  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:  1.134e+00  1.504e-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.006e+00  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/500142/likelihoodResults_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.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) = 7307.91772861
delta logL = -0.000153280967425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7307.91757568
delta logL = -3.55600604962e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8566       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1339       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=   7307.918     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      275 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    44.985        .18142E-02** at limit **
   2  alpha         1.9540        3.4223        .50000       -.18614E-04
   3  Normalizat    1.0059        .24392        .34399E-03   -.71518E-04
   4  Prefactor     1.1339        .14839        .19691E-03   -.11980E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100016
  alpha      = 1.95403
  Normalizat = 1.00591
  Prefactor  = 1.13393
 **********
 **   18 **HESSE 
 **********

 FCN=   7307.918     FROM HESSE     STATUS=OK            29 CALLS      304 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    40.728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9540        3.4018        .50000       -.22016    
   3  Normalizat    1.0059        .24411        .13760E-04   -.92833    
   4  Prefactor     1.1339        .14851        .39382E-04   -.88389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89924e-10
Minuit parameter uncertainties:
  1  0.00160824
  2  2.44463
  3  0.244382
  4  0.148562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500142': 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) = 7307.91757493
delta logL = 3.95332790504e-07

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  1.000e-04  1.608e-03  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  1.954e+00  2.445e+00  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:  1.134e+00  1.486e-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.006e+00  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.723 14.535

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/500142/cmap_HighResolution_661824001_662083201_4FGL_J2334.8+1432_daily_bin1630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-05', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-12-25 01:15:29.250381', job_id='500142', GAL2='1.13', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1640423729.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='3.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1630' AND source_name='4FGL J2334.8+1432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 25 01:15:29 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 500142: <4FGL_J2334.8+1432_daily_bin1630> in cluster <slac> Done

Job <4FGL_J2334.8+1432_daily_bin1630> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Dec 25 01:00:25 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 25 01:01:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 25 01:01:49 2021
Terminated at Sat Dec 25 01:15:30 2021
Results reported at Sat Dec 25 01:15:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.8+1432_daily_bin1630 353.723 14.5346 661824001 662083201 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 :                                   667.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            905 sec.

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

