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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1699
RA = 352.629, Dec = 11.0479
tmin = 679708801, tmax = 679968001
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='2521', job_status='RUN', time_executed='2022-07-20 00:42:28.654673', time_epoch_executed='1658302948.65' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2521

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2521/ft1_4FGL_J2330.5+1102_daily_bin1699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2521/ft2_4FGL_J2330.5+1102_daily_bin1699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2521/ft1_4FGL_J2330.5+1102_daily_bin1699.fits outfile=/scratch/kocevski/2521/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1699.fits ra=352.629 dec=11.0479 rad=12.0 tmin=679708801.0 tmax=679968001.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.85
user 3.62
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2521/ft2_4FGL_J2330.5+1102_daily_bin1699.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/2521/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1699.fits evtable="EVENTS" outfile="/scratch/kocevski/2521/ft1_filtered_4FGL_J2330.5+1102_daily_bin1699.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 808

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2521/ft1_filtered_4FGL_J2330.5+1102_daily_bin1699.fits" evtable="EVENTS" scfile=/scratch/kocevski/2521/ft2_4FGL_J2330.5+1102_daily_bin1699.fits sctable="SC_DATA" outfile=/scratch/kocevski/2521/ltcube_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.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/2521/ft2_4FGL_J2330.5+1102_daily_bin1699.fits
.....................!
real 12.12
user 11.71
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2521/ft1_filtered_4FGL_J2330.5+1102_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/2521/ft2_4FGL_J2330.5+1102_daily_bin1699.fits sctable="SC_DATA" expcube=/scratch/kocevski/2521/ltcube_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.fits outfile=/scratch/kocevski/2521/expmap_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.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/2521/ltcube_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.fits
.....................!
real 190.54
user 184.81
sys 5.26

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/2521/ft1_filtered_4FGL_J2330.5+1102_daily_bin1699.fits scfile=/scratch/kocevski/2521/ft2_4FGL_J2330.5+1102_daily_bin1699.fits outfile=/scratch/kocevski/2521/cmap_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2521/ft1_filtered_4FGL_J2330.5+1102_daily_bin1699.fits scfile=/scratch/kocevski/2521/ft2_4FGL_J2330.5+1102_daily_bin1699.fits outfile=/scratch/kocevski/2521/cmap_HighResolution_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.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.57
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2521/ft1_filtered_4FGL_J2330.5+1102_daily_bin1699.fits', '/scratch/kocevski/2521/ft2_4FGL_J2330.5+1102_daily_bin1699.fits', expMap='/scratch/kocevski/2521/expmap_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.fits', expCube='/scratch/kocevski/2521/ltcube_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2521/Model_4FGL_J2330.5+1102_daily_bin1699.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/2521/ft1_filtered_4FGL_J2330.5+1102_daily_bin1699.fits
Spacecraft file(s): /scratch/kocevski/2521/ft2_4FGL_J2330.5+1102_daily_bin1699.fits
Exposure map: /scratch/kocevski/2521/expmap_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.fits
Exposure cube: /scratch/kocevski/2521/ltcube_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2521/Model_4FGL_J2330.5+1102_daily_bin1699.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) = 8775.62213902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6420       1.0000         .10000E-03   10000.    
     4 'Prefactor '    81.061       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0281       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6655       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0966       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.934       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13718E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0731       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.550       1.0000         .10000E-03   10000.    
    15 'norm      '    .10925E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.523       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7489       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0935       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91287       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=   8775.614     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2042 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.761        .15895E-04** at limit **
   2  Prefactor     .10000E-03    8.0911       -.20626E-07** at limit **
   3  Prefactor     1.6419        .22711        .16200E-07   -.44819E-03
   4  Prefactor     81.061        37.807       -.16571E-06   -.11979E-04
   5  Prefactor     6.0281        6.4603       -.83188E-06   -.19555E-03
   6  Prefactor     .10000E-03    4.4637       -.10040E-06** at limit **
   7  Prefactor     .10000E-03    14.616        .90710E-06** at limit **
   8  Prefactor     2.6659        6.5278       -.80958E-05   -.53900E-03
   9  Prefactor     6.0969        8.4969        .43876E-05   -.22655E-03
  10  Prefactor     22.937        21.278       -.19854E-06    .15889E-03
  11  Prefactor     .10000E-03    83.913       -.70549E-05** at limit **
  12  norm          2.0731        9.1184        .60416E-05   -.51738E-03
  13  Prefactor     .10000E-03    3.7850       -.47178E-06** at limit **
  14  Prefactor     10.549        16.768        .91634E-06   -.79552E-04
  15  norm          .10000E-03    28.263       -.11856E-04** at limit **
  16  Prefactor     15.503        28.750       -.14298E-04   -.13059E-04
  17  Prefactor     2.7432        28.730        .35171E-05   -.70243E-04
  18  Prefactor     .10000E-03    3.2197        .55320E-08** at limit **
  19  Normalizat    1.0935        .18903        .11703E-05    .35541E-04
  20  Prefactor     .91292        .11205       -.83012E-07    .17724E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.64194
  Prefactor  = 81.0613
  Prefactor  = 6.02807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.66594
  Prefactor  = 6.09688
  Prefactor  = 22.9368
  Prefactor  = 0.0001
  norm       = 2.07312
  Prefactor  = 0.0001
  Prefactor  = 10.5492
  norm       = 0.0001
  Prefactor  = 15.5029
  Prefactor  = 2.74323
  Prefactor  = 0.0001
  Normalizat = 1.09347
  Prefactor  = 0.912915
 **********
 **   18 **HESSE 
 **********

 FCN=   8775.614     FROM HESSE     STATUS=OK           289 CALLS     2331 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6419        .22719        .15892E-04   -1.5452    
   4  Prefactor     81.061        37.866        .44610E-04   -1.3905    
   5  Prefactor     6.0281        6.4645        .16354E-03   -1.5217    
   6  Prefactor     .10000E-03    4.4724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6659        6.6595        .24964E-03   -1.5381    
   9  Prefactor     6.0969        8.4032        .16260E-03   -1.5214    
  10  Prefactor     22.937        21.103        .83641E-04   -1.4750    
  11  Prefactor     .10000E-03    84.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0731        8.5476        .28688E-03   -1.5420    
  13  Prefactor     .10000E-03    3.8170        .17759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.549        16.716        .12336E-03   -1.5058    
  15  norm          .10000E-03    29.096        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.503        28.807        .10166E-03   -1.4920    
  17  Prefactor     2.7432        28.556        .24554E-03   -1.5377    
  18  Prefactor     .10000E-03    3.2413        .16410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0935        .22085        .31356E-03   -.89962    
  20  Prefactor     .91292        .13107        .20905E-03   -.95691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83577e-09
Minuit parameter uncertainties:
  1  2.78196e-05
  2  2.0671e-06
  3  0.227187
  4  37.8777
  5  6.46526
  6  1.27505e-05
  7  1.64116e-05
  8  6.66134
  9  8.40484
  10  21.1098
  11  0.000249202
  12  8.42094
  13  8.49131e-05
  14  16.723
  15  0.000174655
  16  28.8332
  17  17.712
  18  1.36785e-06
  19  0.221036
  20  0.131119
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  8.491e-05  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:  9.129e-01  1.311e-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.093e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 8.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2521/likelihoodResults_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.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) = 8775.61498926
delta logL = -0.00124879512077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8775.61374065
delta logL = -1.86379111256e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7909       1.0000          .0000       10.000    
     3 'Normalizat'    1.0934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91298       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8775.607     FROM MIGRAD    STATUS=CONVERGED    186 CALLS      338 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68215E-02    .62548        .68178E-02   -.63891E-02
   2  Index         6.1690        7.3916        .50000        .14412E-04
   3  Normalizat    1.0862        .20109E-01    .31356E-03   -.26903E-04
   4  Prefactor     .91577        .12364E-01    .20905E-03   -.67979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00682149
  Index      = 6.16898
  Normalizat = 1.08615
  Prefactor  = 0.91577
 **********
 **   18 **HESSE 
 **********

 FCN=   8775.607     FROM HESSE     STATUS=OK            31 CALLS      369 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68215E-02    .24325        .35073E-03   -1.5724    
   2  Index         6.1690        7.9095        .23146E-01    .23598    
   3  Normalizat    1.0862        .22034        .12542E-04   -.90198    
   4  Prefactor     .91577        .13283        .83619E-05   -.95592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84217e-08
Minuit parameter uncertainties:
  1  0.0808699
  2  6.95371
  3  0.220525
  4  0.132876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2521': 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) = 8775.6072715
delta logL = 0.00646896266699

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  6.821e-03  8.087e-02  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  6.169e+00  6.954e+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:  9.158e-01  1.329e-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.086e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.629 11.048

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/2521/cmap_HighResolution_679708801_679968001_4FGL_J2330.5+1102_daily_bin1699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.34e-08', time_completed='2022-07-20 00:54:19.311950', job_id='2521', GAL2='0.92', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1658303659.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='6.47e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1699' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 20 00:54:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 2521: <4FGL_J2330.5+1102_daily_bin1699> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1699> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jul 20 00:40:12 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 20 00:40:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 20 00:40:13 2022
Terminated at Wed Jul 20 00:54:20 2022
Results reported at Wed Jul 20 00:54:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1699 352.629 11.0479 679708801 679968001 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 :                                   712.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

