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


Performing analysis on: 4FGL_J2334.8+1432_daily_bin919
RA = 353.723, Dec = 14.5346
tmin = 477532801, tmax = 477792001
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='25839', job_status='RUN', time_executed='2021-09-29 23:55:45.464589', time_epoch_executed='1632984945.46' WHERE source_name='4FGL J2334.8+1432' and cadence='daily' and bin_id='919'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25839/ft1_4FGL_J2334.8+1432_daily_bin919.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25839/ft2_4FGL_J2334.8+1432_daily_bin919.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25839/ft1_4FGL_J2334.8+1432_daily_bin919.fits outfile=/scratch/kocevski/25839/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin919.fits ra=353.723 dec=14.5346 rad=12.0 tmin=477532801.0 tmax=477792001.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.58
user 3.38
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25839/ft2_4FGL_J2334.8+1432_daily_bin919.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/25839/ft1_filteredMKT_4FGL_J2334.8+1432_daily_bin919.fits evtable="EVENTS" outfile="/scratch/kocevski/25839/ft1_filtered_4FGL_J2334.8+1432_daily_bin919.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25839/ft1_filtered_4FGL_J2334.8+1432_daily_bin919.fits evtable="EVENTS" scfile=/scratch/kocevski/25839/ft2_4FGL_J2334.8+1432_daily_bin919.fits sctable="SC_DATA" expcube=/scratch/kocevski/25839/ltcube_477532801_477792001_4FGL_J2334.8+1432_daily_bin919.fits outfile=/scratch/kocevski/25839/expmap_477532801_477792001_4FGL_J2334.8+1432_daily_bin919.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/25839/ltcube_477532801_477792001_4FGL_J2334.8+1432_daily_bin919.fits
.....................!
real 190.71
user 184.92
sys 5.48

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/25839/ft1_filtered_4FGL_J2334.8+1432_daily_bin919.fits scfile=/scratch/kocevski/25839/ft2_4FGL_J2334.8+1432_daily_bin919.fits outfile=/scratch/kocevski/25839/cmap_477532801_477792001_4FGL_J2334.8+1432_daily_bin919.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25839/ft1_filtered_4FGL_J2334.8+1432_daily_bin919.fits scfile=/scratch/kocevski/25839/ft2_4FGL_J2334.8+1432_daily_bin919.fits outfile=/scratch/kocevski/25839/cmap_HighResolution_477532801_477792001_4FGL_J2334.8+1432_daily_bin919.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.872       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8467       1.0000         .10000E-03   10000.    
     7 'Prefactor '    77.119       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.399       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8951       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7624       1.0000         .10000E-03   10000.    
    13 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24658E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.504       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.521       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2747       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89815       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=   8699.622     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2193 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.872        4.6005        .38554E-06    .19677E-03
   2  Prefactor     .10000E-03    4.9508        .69139E-06** at limit **
   3  Prefactor     .10000E-03    4.5517        .16013E-06** at limit **
   4  Prefactor     .10000E-03    109.54        .13645E-04** at limit **
   5  Prefactor     .10000E-03    48.005       -.69124E-05** at limit **
   6  Prefactor     3.8465        .33669        .18123E-07   -.64530E-03
   7  Prefactor     77.112        54.659        .30624E-05    .40106E-04
   8  Prefactor     .10000E-03    2.5277        .34725E-07** at limit **
   9  Prefactor     11.398        9.9326        .34366E-06    .19889E-05
  10  Prefactor     6.4738        7.1900       -.48970E-06    .11106E-03
  11  Prefactor     1.8940        11.239       -.93316E-05    .29922E-04
  12  Prefactor     6.7617        18.370        .28683E-06    .70544E-05
  13  norm          .10000E-03    9.2532        .29059E-05** at limit **
  14  Prefactor     .10000E-03    70.766        .25161E-04** at limit **
  15  Prefactor     37.501        26.691        .18452E-05   -.41414E-04
  16  norm          .10000E-03    6.0290       -.15473E-07** at limit **
  17  Prefactor     .10000E-03    46.157        .11649E-04** at limit **
  18  Prefactor     42.516        31.075        .15166E-05   -.66929E-04
  19  Prefactor     .10000E-03    1.9114        .58264E-07** at limit **
  20  Normalizat    1.2748        .23041       -.14553E-05    .38349E-04
  21  Prefactor     .89805        .12762        .89619E-06   -.32754E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.8723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.84648
  Prefactor  = 77.1119
  Prefactor  = 0.0001
  Prefactor  = 11.3985
  Prefactor  = 6.4738
  Prefactor  = 1.89399
  Prefactor  = 6.76168
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.5007
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 42.5164
  Prefactor  = 0.0001
  Normalizat = 1.27484
  Prefactor  = 0.898051
 **********
 **   18 **HESSE 
 **********

 FCN=   8699.622     FROM HESSE     STATUS=OK           315 CALLS     2508 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.872        4.6120        .80322E-04   -1.4710    
   2  Prefactor     .10000E-03    4.9673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    110.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8465        .33708        .15304E-04   -1.5316    
   7  Prefactor     77.112        54.776        .45727E-04   -1.3949    
   8  Prefactor     .10000E-03    2.5367        .14480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.398        9.9314        .11866E-03   -1.5033    
  10  Prefactor     6.4738        7.1847        .15772E-03   -1.5199    
  11  Prefactor     1.8940        11.579        .30220E-03   -1.5433    
  12  Prefactor     6.7617        18.294        .15430E-03   -1.5188    
  13  norm          .10000E-03    9.4172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    67.802        .40394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.501        26.520        .65445E-04   -1.4482    
  16  norm          .10000E-03    6.0346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    46.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     42.516        31.144        .61477E-04   -1.4403    
  19  Prefactor     .10000E-03    1.9167        .12592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2748        .26251        .34722E-03   -.84320    
  21  Prefactor     .89805        .14675        .24157E-03   -.96209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00857e-10
Minuit parameter uncertainties:
  1  4.6121
  2  1.73393e-05
  3  6.52025e-06
  4  0.00080202
  5  0.000255871
  6  0.337082
  7  54.8118
  8  3.49178e-07
  9  9.93279
  10  7.18565
  11  9.36842
  12  18.3095
  13  0.000104937
  14  0.000361785
  15  26.528
  16  2.85012e-06
  17  0.000497986
  18  31.1556
  19  4.89102e-07
  20  0.262781
  21  0.146818
Done.

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

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  1.000e-04  2.850e-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.981e-01  1.468e-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.275e+00  2.628e-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: 4.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/25839/likelihoodResults_477532801_477792001_4FGL_J2334.8+1432_daily_bin919.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) = 8699.62324679
delta logL = -0.000787137787484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8699.62245966
delta logL = -1.64618541021e-09

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.8998       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89806       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=   8699.622     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      246 TOTAL
                     EDM=   .96E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    52.524        .18142E-02** at limit **
   2  alpha         1.8160        3.6984        .17104       -.27916E-08
   3  Normalizat    1.2748        .24352        .34721E-03    .76618E-05
   4  Prefactor     .89805        .14605        .24157E-03    .10824E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.81602
  Normalizat = 1.27484
  Prefactor  = 0.898054
 **********
 **   18 **HESSE 
 **********

 FCN=   8699.622     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8160        3.0900        .68417E-02   -.27712    
   3  Normalizat    1.2748        .24370        .13889E-04   -.84321    
   4  Prefactor     .89805        .14617        .96629E-05   -.96209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94996e-13
Minuit parameter uncertainties:
  1  1.44212e-06
  2  367.472
  3  0.243923
  4  0.146231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25839': 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) = 8699.62245963
delta logL = 2.56204657489e-08

Extracting fit parameters...

4FGL J2334.8+1432
   Spectrum: LogParabola
449         norm:  1.000e-04  1.442e-06  1.000e-04  1.000e+04 ( 1.000e-13)
450        alpha:  1.816e+00  3.675e+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.981e-01  1.462e-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.275e+00  2.439e-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/25839/cmap_HighResolution_477532801_477792001_4FGL_J2334.8+1432_daily_bin919.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-05', job_status='DONE', photon_flux_upper_limit='4.37e-08', time_completed='2021-09-30 00:08:15.878298', job_id='25839', GAL2='0.90', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632985695.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='919' AND source_name='4FGL J2334.8+1432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:08:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 25839: <4FGL_J2334.8+1432_daily_bin919> in cluster <slac> Done

Job <4FGL_J2334.8+1432_daily_bin919> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:55:35 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:55:37 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:37 2021
Terminated at Thu Sep 30 00:08:16 2021
Results reported at Thu Sep 30 00:08:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.8+1432_daily_bin919 353.723 14.5346 477532801 477792001 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 :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

