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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1696
RA = 352.629, Dec = 11.0479
tmin = 678931201, tmax = 679190401
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='794188', job_status='RUN', time_executed='2022-07-11 00:37:52.412041', time_epoch_executed='1657525072.41' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794188/ft1_4FGL_J2330.5+1102_daily_bin1696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794188/ft2_4FGL_J2330.5+1102_daily_bin1696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794188/ft1_4FGL_J2330.5+1102_daily_bin1696.fits outfile=/scratch/kocevski/794188/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1696.fits ra=352.629 dec=11.0479 rad=12.0 tmin=678931201.0 tmax=679190401.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.57
user 3.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/794188/ft2_4FGL_J2330.5+1102_daily_bin1696.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/794188/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1696.fits evtable="EVENTS" outfile="/scratch/kocevski/794188/ft1_filtered_4FGL_J2330.5+1102_daily_bin1696.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

Number of photons that the gtmktime cut: 708

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794188/ft1_filtered_4FGL_J2330.5+1102_daily_bin1696.fits" evtable="EVENTS" scfile=/scratch/kocevski/794188/ft2_4FGL_J2330.5+1102_daily_bin1696.fits sctable="SC_DATA" outfile=/scratch/kocevski/794188/ltcube_678931201_679190401_4FGL_J2330.5+1102_daily_bin1696.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/794188/ft2_4FGL_J2330.5+1102_daily_bin1696.fits
.....................!
real 11.84
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794188/ft1_filtered_4FGL_J2330.5+1102_daily_bin1696.fits evtable="EVENTS" scfile=/scratch/kocevski/794188/ft2_4FGL_J2330.5+1102_daily_bin1696.fits sctable="SC_DATA" expcube=/scratch/kocevski/794188/ltcube_678931201_679190401_4FGL_J2330.5+1102_daily_bin1696.fits outfile=/scratch/kocevski/794188/expmap_678931201_679190401_4FGL_J2330.5+1102_daily_bin1696.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/794188/ltcube_678931201_679190401_4FGL_J2330.5+1102_daily_bin1696.fits
.....................!
real 190.48
user 185.43
sys 4.73

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/794188/ft1_filtered_4FGL_J2330.5+1102_daily_bin1696.fits scfile=/scratch/kocevski/794188/ft2_4FGL_J2330.5+1102_daily_bin1696.fits outfile=/scratch/kocevski/794188/cmap_678931201_679190401_4FGL_J2330.5+1102_daily_bin1696.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/794188/ft1_filtered_4FGL_J2330.5+1102_daily_bin1696.fits scfile=/scratch/kocevski/794188/ft2_4FGL_J2330.5+1102_daily_bin1696.fits outfile=/scratch/kocevski/794188/cmap_HighResolution_678931201_679190401_4FGL_J2330.5+1102_daily_bin1696.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13418E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0817       1.0000         .10000E-03   10000.    
     4 'Prefactor '    63.698       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6982       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .84506E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10677E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.975       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3013       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.256       1.0000         .10000E-03   10000.    
    15 'norm      '    15.053       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.854       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18365E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .50334       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2048       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=   7657.216     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2142 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    497.61        .21869E-05** at limit **
   2  Prefactor     .10000E-03    9.0281        .16650E-05** at limit **
   3  Prefactor     1.0815        .19594        .18443E-06    .98058E-03
   4  Prefactor     63.701        36.230        .33743E-06   -.31702E-04
   5  Prefactor     .10000E-03    1.6499        .46733E-06** at limit **
   6  Prefactor     3.2968        10.611       -.20727E-05    .34272E-04
   7  Prefactor     .10000E-03    5.9306        .25974E-06** at limit **
   8  Prefactor     3.6980        6.0904        .29985E-06   -.78626E-04
   9  Prefactor     .67829E-01    138.08       -.19911E-04   -.12827E-03
  10  Prefactor     .10000E-03    3.8538       -.23319E-07** at limit **
  11  Prefactor     .10001E-03    199.65        .17370E-04** at limit **
  12  norm          13.976        10.425       -.99117E-06   -.49225E-03
  13  Prefactor     2.3017        7.3848        .24220E-05   -.13464E-03
  14  Prefactor     19.255        26.283       -.43498E-05   -.83395E-04
  15  norm          15.052        14.460       -.43671E-06    .76111E-05
  16  Prefactor     .10000E-03    46.991        .14025E-05** at limit **
  17  Prefactor     12.851        20.867        .13340E-05   -.33630E-04
  18  Prefactor     .10874E-03    17.185        .75922E-05** at limit **
  19  Normalizat    .50336        .20565       -.31811E-05   -.16434E-03
  20  Prefactor     1.2048        .12791       -.59969E-07   -.33264E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.08155
  Prefactor  = 63.7008
  Prefactor  = 0.0001
  Prefactor  = 3.29679
  Prefactor  = 0.0001
  Prefactor  = 3.69801
  Prefactor  = 0.0678291
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 13.9758
  Prefactor  = 2.30175
  Prefactor  = 19.2553
  norm       = 15.0518
  Prefactor  = 0.0001
  Prefactor  = 12.8508
  Prefactor  = 0.000108741
  Normalizat = 0.503363
  Prefactor  = 1.20484
 **********
 **   18 **HESSE 
 **********

 FCN=   7657.216     FROM HESSE     STATUS=OK           309 CALLS     2451 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    497.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0815        .19481        .15679E-04   -1.5500    
   4  Prefactor     63.701        36.192        .50280E-04   -1.4110    
   5  Prefactor     .10000E-03    1.6513        .10972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2968        10.610        .22281E-03   -1.5345    
   7  Prefactor     .10000E-03    5.9372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6980        6.0828        .21001E-03   -1.5323    
   9  Prefactor     .67829E-01    7.1414        .63382E-01   -1.5656    
  10  Prefactor     .10000E-03    3.8554        .16775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    201.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.976        10.363        .10714E-03   -1.4960    
  13  Prefactor     2.3017        7.3632        .27051E-03   -1.5405    
  14  Prefactor     19.255        26.286        .91272E-04   -1.4830    
  15  norm          15.052        14.449        .10323E-03   -1.4932    
  16  Prefactor     .10000E-03    48.658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.851        20.848        .11173E-03   -1.4991    
  18  Prefactor     .10874E-03    4.2475        .53480E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .50336        .21747        .41027E-03   -1.1226    
  20  Prefactor     1.2048        .13785        .17900E-03   -.86182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82901e-10
Minuit parameter uncertainties:
  1  0.000601268
  2  6.32759e-05
  3  0.194808
  4  36.2044
  5  4.77025e-06
  6  10.6157
  7  3.65805e-06
  8  6.08377
  9  1.39111
  10  3.55974e-06
  11  0.0026778
  12  10.3646
  13  7.36613
  14  26.3019
  15  14.452
  16  6.48437e-05
  17  20.8601
  18  0.0121874
  19  0.217836
  20  0.137892
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.302e+00  7.366e+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:  1.205e+00  1.379e-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:  5.034e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794188/likelihoodResults_678931201_679190401_4FGL_J2330.5+1102_daily_bin1696.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) = 7657.17984211
delta logL = 0.0358361362678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7657.1611598
delta logL = 0.0545184383454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8261       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3934       1.0000          .0000       10.000    
     3 'Normalizat'    .50584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2022       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=   7657.161     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      213 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8176        479.67        .51584E-02    .26543E-03
   2  Index         2.3952        5.2594        .27949        .14175E-04
   3  Normalizat    .50597        .61480E-01    .92349E-01    .55728E-04
   4  Prefactor     1.2021        .44451E-01    .34580E-01    .13592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.81756
  Index      = 2.39523
  Normalizat = 0.505971
  Prefactor  = 1.20209
 **********
 **   18 **HESSE 
 **********

 FCN=   7657.161     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8176        8.3344        .20634E-03   -1.5317    
   2  Index         2.3952        1.0250        .14949E-01   -.54797    
   3  Normalizat    .50597        .20857        .40921E-03   -1.1214    
   4  Prefactor     1.2021        .13708        .17916E-03   -.86267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04989e-10
Minuit parameter uncertainties:
  1  8.33695
  2  1.03507
  3  0.208889
  4  0.137123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794188': 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) = 7657.16115763
delta logL = 0.0545206107972

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  3.818e+00  8.337e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.395e+00  1.035e+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:  1.202e+00  1.371e-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:  5.060e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/794188/cmap_HighResolution_678931201_679190401_4FGL_J2330.5+1102_daily_bin1696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2022-07-11 00:48:41.631735', job_id='794188', GAL2='1.20', fit_tolerance='1e-08', EG2='0.51', EG='0.50', time_epoch_completed='1657525721.63', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='5.45e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1696' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jul 11 00:48:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 794188: <4FGL_J2330.5+1102_daily_bin1696> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1696> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Jul 11 00:35:31 2022
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 11 00:35:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 11 00:35:31 2022
Terminated at Mon Jul 11 00:48:42 2022
Results reported at Mon Jul 11 00:48:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1696 352.629 11.0479 678931201 679190401 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 :                                   652.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            791 sec.

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

