aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 81 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 = 7563
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1677
RA = 352.629, Dec = 11.0479
tmin = 674006401, tmax = 674265601
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='171976', job_status='RUN', time_executed='2022-05-15 01:13:04.247039', time_epoch_executed='1652602384.25' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171976

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171976/ft1_4FGL_J2330.5+1102_daily_bin1677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171976/ft2_4FGL_J2330.5+1102_daily_bin1677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171976/ft1_4FGL_J2330.5+1102_daily_bin1677.fits outfile=/scratch/kocevski/171976/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1677.fits ra=352.629 dec=11.0479 rad=12.0 tmin=674006401.0 tmax=674265601.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.64
user 4.37
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/171976/ft2_4FGL_J2330.5+1102_daily_bin1677.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171976/ft2_4FGL_J2330.5+1102_daily_bin1677.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/171976/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1677.fits evtable="EVENTS" outfile="/scratch/kocevski/171976/ft1_filtered_4FGL_J2330.5+1102_daily_bin1677.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 659

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171976/ft1_filtered_4FGL_J2330.5+1102_daily_bin1677.fits" evtable="EVENTS" scfile=/scratch/kocevski/171976/ft2_4FGL_J2330.5+1102_daily_bin1677.fits sctable="SC_DATA" outfile=/scratch/kocevski/171976/ltcube_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.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/171976/ft2_4FGL_J2330.5+1102_daily_bin1677.fits
.....................!
real 15.83
user 15.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171976/ft1_filtered_4FGL_J2330.5+1102_daily_bin1677.fits evtable="EVENTS" scfile=/scratch/kocevski/171976/ft2_4FGL_J2330.5+1102_daily_bin1677.fits sctable="SC_DATA" expcube=/scratch/kocevski/171976/ltcube_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.fits outfile=/scratch/kocevski/171976/expmap_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.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/171976/ltcube_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.fits
.....................!
real 194.18
user 188.13
sys 5.45

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

Setting source of interest to:
4FGL J2330.5+1102 @ 352.629 11.0479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/171976/ft1_filtered_4FGL_J2330.5+1102_daily_bin1677.fits scfile=/scratch/kocevski/171976/ft2_4FGL_J2330.5+1102_daily_bin1677.fits outfile=/scratch/kocevski/171976/cmap_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.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=352.629 yref=11.0479 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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171976/ft1_filtered_4FGL_J2330.5+1102_daily_bin1677.fits scfile=/scratch/kocevski/171976/ft2_4FGL_J2330.5+1102_daily_bin1677.fits outfile=/scratch/kocevski/171976/cmap_HighResolution_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.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=352.629 yref=11.0479 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171976/ft1_filtered_4FGL_J2330.5+1102_daily_bin1677.fits evtable="EVENTS" scfile=/scratch/kocevski/171976/ft2_4FGL_J2330.5+1102_daily_bin1677.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171976/Model_4FGL_J2330.5+1102_daily_bin1677.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/171976/ft1_filtered_4FGL_J2330.5+1102_daily_bin1677.fits.....................!
real 80.60
user 78.36
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171976/ft1_filtered_4FGL_J2330.5+1102_daily_bin1677.fits', '/scratch/kocevski/171976/ft2_4FGL_J2330.5+1102_daily_bin1677.fits', expMap='/scratch/kocevski/171976/expmap_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.fits', expCube='/scratch/kocevski/171976/ltcube_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171976/Model_4FGL_J2330.5+1102_daily_bin1677.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2330.5+1102'

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.056e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/171976/ft1_filtered_4FGL_J2330.5+1102_daily_bin1677.fits
Spacecraft file(s): /scratch/kocevski/171976/ft2_4FGL_J2330.5+1102_daily_bin1677.fits
Exposure map: /scratch/kocevski/171976/expmap_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.fits
Exposure cube: /scratch/kocevski/171976/ltcube_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171976/Model_4FGL_J2330.5+1102_daily_bin1677.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) = 7117.30808557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35776E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42263       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8299       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.899       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.224       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2007       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.469       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .97764       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2474       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.549       1.0000         .10000E-03   10000.    
    15 'norm      '    17.639       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.582       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3898       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7117.301     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1782 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6942       -.32884E-06** at limit **
   2  Prefactor     .10000E-03    6.3448       -.28056E-06** at limit **
   3  Prefactor     .42262        .13257       -.85687E-08    .46558E-03
   4  Prefactor     .10000E-03    12.114        .20332E-07** at limit **
   5  Prefactor     .10000E-03    5.1536       -.77985E-07** at limit **
   6  Prefactor     7.8302        9.1431       -.14292E-06   -.15434E-03
   7  Prefactor     25.901        21.262       -.29073E-05   -.21245E-05
   8  Prefactor     10.224        6.8432       -.41913E-06   -.29317E-03
   9  Prefactor     2.2033        3.6808        .23704E-06   -.91593E-03
  10  Prefactor     23.469        21.031        .13529E-05    .93199E-05
  11  Prefactor     .10000E-03    380.54       -.24421E-05** at limit **
  12  norm          .97265        13.977        .14148E-05   -.26487E-04
  13  Prefactor     5.2517        7.4918       -.15914E-06   -.69099E-03
  14  Prefactor     12.553        26.384       -.10427E-04   -.30398E-04
  15  norm          17.639        15.222        .21589E-05    .10237E-04
  16  Prefactor     25.598        44.694        .18018E-05    .88853E-05
  17  Prefactor     .10000E-03    12.737        .29655E-07** at limit **
  18  Prefactor     .10000E-03    8.7561        .26192E-06** at limit **
  19  Normalizat    1.3898        .20848        .87806E-06    .42329E-05
  20  Prefactor     .76616        .12193        .67808E-06    .24472E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.42262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.83017
  Prefactor  = 25.9009
  Prefactor  = 10.2244
  Prefactor  = 2.20326
  Prefactor  = 23.4691
  Prefactor  = 0.0001
  norm       = 0.972652
  Prefactor  = 5.25174
  Prefactor  = 12.5528
  norm       = 17.6386
  Prefactor  = 25.5982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3898
  Prefactor  = 0.766162
 **********
 **   18 **HESSE 
 **********

 FCN=   7117.301     FROM HESSE     STATUS=OK           301 CALLS     2083 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.901        .41219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .42262        .13167        .16535E-04   -1.5578    
   4  Prefactor     .10000E-03    12.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8302        9.1779        .71650E-03   -1.5148    
   7  Prefactor     25.901        21.262        .78716E-04   -1.4690    
   8  Prefactor     10.224        6.8964        .62656E-03   -1.5068    
   9  Prefactor     2.2033        7.9898        .13868E-02   -1.5411    
  10  Prefactor     23.469        21.065        .82684E-04   -1.4739    
  11  Prefactor     .10000E-03    394.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .97265        14.153        .51594E-02   -1.5511    
  13  Prefactor     5.2517        7.9363        .87735E-03   -1.5250    
  14  Prefactor     12.553        26.821        .11308E-03   -1.4999    
  15  norm          17.639        15.219        .95364E-04   -1.4868    
  16  Prefactor     25.598        44.931        .79201E-04   -1.4696    
  17  Prefactor     .10000E-03    12.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.0351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3898        .24703        .27704E-03   -.80924    
  20  Prefactor     .76616        .14332        .21976E-03   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17881e-07
Minuit parameter uncertainties:
  1  1.4327e-06
  2  0.00019259
  3  0.131673
  4  1.16286e-06
  5  1.36977e-05
  6  9.17952
  7  21.2678
  8  6.89692
  9  7.99362
  10  21.0719
  11  0.000163899
  12  7.4221
  13  7.93789
  14  26.8464
  15  15.2225
  16  44.9907
  17  6.08661e-06
  18  4.33947e-05
  19  0.247239
  20  0.143387
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  5.252e+00  7.938e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  7.662e-01  1.434e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.390e+00  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171976/likelihoodResults_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.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) = 7116.66982936
delta logL = 0.631420287711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7116.6672588
delta logL = 0.633990841777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94949       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5519       1.0000          .0000       10.000    
     3 'Normalizat'    1.3395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7116.667     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      299 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94616        13.105        .12986E-01    .60066E-03
   2  Index         4.5541        3.5815        .15157        .11058E-03
   3  Normalizat    1.3396        .51146E-01    .63567E-01   -.21397E-04
   4  Prefactor     .78868        .31365E-01    .43570E-01   -.91364E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.946157
  Index      = 4.55413
  Normalizat = 1.3396
  Prefactor  = 0.788677
 **********
 **   18 **HESSE 
 **********

 FCN=   7116.667     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      334 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94616        32.399        .66972E-03   -1.5513    
   2  Index         4.5541        7.2722        .74226E-02   -.89293E-01
   3  Normalizat    1.3396        .18499        .28117E-03   -.82392    
   4  Prefactor     .78868        .11163        .21691E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.94057e-07
Minuit parameter uncertainties:
  1  11.0792
  2  7.68712
  3  0.18508
  4  0.111664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171976': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7116.66725818
delta logL = 0.633991464285

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  9.462e-01  1.108e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  4.554e+00  7.687e+00  0.000e+00  1.000e+01 (-1.000e+00)
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  7.887e-01  1.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.340e+00  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 352.629 11.048
Photon Index (Free Index): 4.55 +/- 7.69
Photon Flux (Free Index): 7.16e-08 +/- 6.80e-08
Energy Flux (Free Index): 9.94e-06 +/- 1.57e-05

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/171976/cmap_HighResolution_674006401_674265601_4FGL_J2330.5+1102_daily_bin1677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', energy_flux2='9.94e-06', dlogl='6.34e-01', photon_flux2='7.16e-08', job_status='DONE', time_completed='2022-05-15 01:23:39.118458', photon_index_error2='7.69', photon_index2='4.55', ts='0.65', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.57e-05', EG='1.39', time_epoch_completed='1652603019.12', return_code='0', job_id='171976', GAL2='0.79', EG2='1.34', return_code2='102', photon_flux_error2='6.80e-08', ts2='2.01', photon_index='2.79' WHERE bin_id='1677' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun May 15 01:23:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 171976: <4FGL_J2330.5+1102_daily_bin1677> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1677> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun May 15 01:10:25 2022
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun May 15 01:11:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun May 15 01:11:33 2022
Terminated at Sun May 15 01:23:39 2022
Results reported at Sun May 15 01:23:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1677 352.629 11.0479 674006401 674265601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2330.5+1102 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.08 sec.
    Max Memory :                                 1202 MB
    Average Memory :                             348.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            794 sec.

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

