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


Performing analysis on: 4FGL_J2334.8+1432_daily_bin852
RA = 353.723, Dec = 14.5346
tmin = 460166401, tmax = 460425601
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='25740', job_status='RUN', time_executed='2021-09-29 23:55:46.580382', time_epoch_executed='1632984946.58' WHERE source_name='4FGL J2334.8+1432' and cadence='daily' and bin_id='852'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25740/ft1_4FGL_J2334.8+1432_daily_bin852.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25740/ft2_4FGL_J2334.8+1432_daily_bin852.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25740/ft1_4FGL_J2334.8+1432_daily_bin852.fits outfile=/scratch/kocevski/25740/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin852.fits ra=353.723 dec=14.5346 rad=12.0 tmin=460166401.0 tmax=460425601.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.35
user 3.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25740/ft2_4FGL_J2334.8+1432_daily_bin852.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/25740/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin852.fits evtable="EVENTS" outfile="/scratch/kocevski/25740/ft1_filtered_4FGL_J2334.8+1432_daily_bin852.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25740/ft1_filtered_4FGL_J2334.8+1432_daily_bin852.fits" evtable="EVENTS" scfile=/scratch/kocevski/25740/ft2_4FGL_J2334.8+1432_daily_bin852.fits sctable="SC_DATA" outfile=/scratch/kocevski/25740/ltcube_460166401_460425601_4FGL_J2334.8+1432_daily_bin852.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/25740/ft2_4FGL_J2334.8+1432_daily_bin852.fits
.....................!
real 11.80
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25740/ft1_filtered_4FGL_J2334.8+1432_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/25740/ft2_4FGL_J2334.8+1432_daily_bin852.fits sctable="SC_DATA" expcube=/scratch/kocevski/25740/ltcube_460166401_460425601_4FGL_J2334.8+1432_daily_bin852.fits outfile=/scratch/kocevski/25740/expmap_460166401_460425601_4FGL_J2334.8+1432_daily_bin852.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/25740/ltcube_460166401_460425601_4FGL_J2334.8+1432_daily_bin852.fits
.....................!
real 191.06
user 186.05
sys 4.70

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/25740/ft1_filtered_4FGL_J2334.8+1432_daily_bin852.fits scfile=/scratch/kocevski/25740/ft2_4FGL_J2334.8+1432_daily_bin852.fits outfile=/scratch/kocevski/25740/cmap_460166401_460425601_4FGL_J2334.8+1432_daily_bin852.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/25740/ft1_filtered_4FGL_J2334.8+1432_daily_bin852.fits scfile=/scratch/kocevski/25740/ft2_4FGL_J2334.8+1432_daily_bin852.fits outfile=/scratch/kocevski/25740/cmap_HighResolution_460166401_460425601_4FGL_J2334.8+1432_daily_bin852.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.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8241       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6576       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5251       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.243       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9610       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.496       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.551       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.912       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9269       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.105       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9339       1.0000         .10000E-03   10000.    
    15 'Prefactor '    64.593       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.508       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86723       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88583       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=   9445.705     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2231 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8242        2.7544       -.12836E-06   -.46609E-04
   2  Prefactor     7.6575        9.1664        .17303E-05   -.27544E-03
   3  Prefactor     9.5253        8.9641        .41744E-06   -.15229E-03
   4  Prefactor     .10000E-03    17.955        .50668E-07** at limit **
   5  Prefactor     17.243        16.604        .22374E-07   -.23265E-05
   6  Prefactor     3.9610        .32957       -.78414E-09   -.10249E-03
   7  Prefactor     34.498        41.287        .29447E-06    .25390E-04
   8  Prefactor     .10000E-03    1.8769        .19311E-07** at limit **
   9  Prefactor     23.552        14.900       -.17656E-07   -.19181E-05
  10  Prefactor     16.913        8.2653        .38545E-07    .10653E-04
  11  Prefactor     8.9273        9.0860       -.35698E-07   -.99770E-05
  12  Prefactor     .10000E-03    5.7849        .25419E-07** at limit **
  13  norm          11.105        9.2157        .56913E-06   -.13503E-03
  14  Prefactor     4.9345        8.4468       -.12437E-06   -.41308E-04
  15  Prefactor     64.592        26.595       -.22567E-06   -.91583E-04
  16  norm          .10000E-03    4.6539       -.28353E-07** at limit **
  17  Prefactor     11.493        42.409       -.48545E-05   -.12138E-03
  18  Prefactor     .10000E-03    25.501       -.25408E-06** at limit **
  19  Prefactor     .10000E-03    6.0108        .10812E-06** at limit **
  20  Normalizat    .86718        .19864        .49206E-06   -.34965E-04
  21  Prefactor     .88585        .11165       -.41080E-06    .20383E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.82424
  Prefactor  = 7.65748
  Prefactor  = 9.52534
  Prefactor  = 0.0001
  Prefactor  = 17.2431
  Prefactor  = 3.96104
  Prefactor  = 34.4975
  Prefactor  = 0.0001
  Prefactor  = 23.5518
  Prefactor  = 16.9131
  Prefactor  = 8.9273
  Prefactor  = 0.0001
  norm       = 11.1046
  Prefactor  = 4.93446
  Prefactor  = 64.5915
  norm       = 0.0001
  Prefactor  = 11.4933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.867181
  Prefactor  = 0.885849
 **********
 **   18 **HESSE 
 **********

 FCN=   9445.705     FROM HESSE     STATUS=OK           321 CALLS     2552 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8242        2.7560        .11443E-03   -1.5269    
   2  Prefactor     7.6575        9.3686        .72458E-03   -1.5154    
   3  Prefactor     9.5253        8.9810        .64924E-03   -1.5091    
   4  Prefactor     .10000E-03    17.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.243        16.620        .96452E-04   -1.4877    
   6  Prefactor     3.9610        .33017        .15335E-04   -1.5310    
   7  Prefactor     34.498        41.347        .68229E-04   -1.4533    
   8  Prefactor     .10000E-03    1.8798        .13002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.552        14.897        .82540E-04   -1.4737    
  10  Prefactor     16.913        8.2807        .97390E-04   -1.4885    
  11  Prefactor     8.9273        9.0721        .13415E-03   -1.5110    
  12  Prefactor     .10000E-03    5.7893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.105        9.1798        .60112E-03   -1.5041    
  14  Prefactor     4.9345        8.3885        .18107E-03   -1.5264    
  15  Prefactor     64.592        26.597        .49933E-04   -1.4099    
  16  norm          .10000E-03    4.6614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.493        45.677        .11809E-03   -1.5030    
  18  Prefactor     .10000E-03    25.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .86718        .22831        .36934E-03   -.97623    
  21  Prefactor     .88585        .12828        .21883E-03   -.96637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75796e-10
Minuit parameter uncertainties:
  1  2.75603
  2  9.3704
  3  8.98232
  4  9.07152e-06
  5  16.6242
  6  0.330169
  7  41.3809
  8  7.48665e-07
  9  14.8992
  10  8.28123
  11  9.07345
  12  2.55564e-07
  13  9.18096
  14  8.39045
  15  26.6021
  16  4.01239e-06
  17  45.8166
  18  7.99012e-05
  19  1.3846e-06
  20  0.228568
  21  0.128323
Done.

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

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  1.000e-04  4.012e-06  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:  8.858e-01  1.283e-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:  8.672e-01  2.286e-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: 3.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/25740/likelihoodResults_460166401_460425601_4FGL_J2334.8+1432_daily_bin852.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) = 9445.70555126
delta logL = -0.00102001078267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9445.70453128
delta logL = -2.94530764222e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9043       1.0000          .0000       5.0000    
     3 'Normalizat'    .86717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88584       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=   9445.705     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      238 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.352        .18142E-02** at limit **
   2  alpha         2.0508        3.1547        .17094       -.26869E-07
   3  Normalizat    .86718        .21128        .36934E-03   -.12066E-04
   4  Prefactor     .88585        .12746        .21883E-03   -.17872E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.05078
  Normalizat = 0.867182
  Prefactor  = 0.885849
 **********
 **   18 **HESSE 
 **********

 FCN=   9445.705     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6988        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0508        3.9684        .68376E-02   -.18067    
   3  Normalizat    .86718        .21145        .14774E-04   -.97623    
   4  Prefactor     .88585        .12757        .87530E-05   -.96637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67051e-11
Minuit parameter uncertainties:
  1  9.90012e-06
  2  382.244
  3  0.211657
  4  0.127613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25740': 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) = 9445.70453117
delta logL = 8.43465386424e-08

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  1.000e-04  9.900e-06  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  2.051e+00  3.822e+02  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:  8.858e-01  1.276e-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:  8.672e-01  2.117e-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/25740/cmap_HighResolution_460166401_460425601_4FGL_J2334.8+1432_daily_bin852.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2021-09-30 00:08:47.173375', job_id='25740', GAL2='0.89', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632985727.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='852' AND source_name='4FGL J2334.8+1432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:08:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 25740: <4FGL_J2334.8+1432_daily_bin852> in cluster <slac> Done

Job <4FGL_J2334.8+1432_daily_bin852> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:55:27 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:55:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:55:29 2021
Terminated at Thu Sep 30 00:08:47 2021
Results reported at Thu Sep 30 00:08:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.8+1432_daily_bin852 353.723 14.5346 460166401 460425601 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 :                                   776.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             363.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            800 sec.

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

