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 125 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1780
RA = 352.629, Dec = 11.0479
tmin = 700704001, tmax = 700963201
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='81674', job_status='RUN', time_executed='2023-03-20 02:02:28.839056', time_epoch_executed='1679302948.84' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81674

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81674/ft1_4FGL_J2330.5+1102_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81674/ft2_4FGL_J2330.5+1102_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81674/ft1_4FGL_J2330.5+1102_daily_bin1780.fits outfile=/scratch/kocevski/81674/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1780.fits ra=352.629 dec=11.0479 rad=12.0 tmin=700704001.0 tmax=700963201.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.10
user 3.87
sys 0.22

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

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

Number of photons that the gtmktime cut: 286

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81674/ft1_filtered_4FGL_J2330.5+1102_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/81674/ft2_4FGL_J2330.5+1102_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/81674/ltcube_700704001_700963201_4FGL_J2330.5+1102_daily_bin1780.fits outfile=/scratch/kocevski/81674/expmap_700704001_700963201_4FGL_J2330.5+1102_daily_bin1780.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/81674/ltcube_700704001_700963201_4FGL_J2330.5+1102_daily_bin1780.fits
.....................!
real 195.82
user 189.74
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/81674/ft1_filtered_4FGL_J2330.5+1102_daily_bin1780.fits scfile=/scratch/kocevski/81674/ft2_4FGL_J2330.5+1102_daily_bin1780.fits outfile=/scratch/kocevski/81674/cmap_700704001_700963201_4FGL_J2330.5+1102_daily_bin1780.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.74
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81674/ft1_filtered_4FGL_J2330.5+1102_daily_bin1780.fits scfile=/scratch/kocevski/81674/ft2_4FGL_J2330.5+1102_daily_bin1780.fits outfile=/scratch/kocevski/81674/cmap_HighResolution_700704001_700963201_4FGL_J2330.5+1102_daily_bin1780.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/81674/ft1_filtered_4FGL_J2330.5+1102_daily_bin1780.fits', '/scratch/kocevski/81674/ft2_4FGL_J2330.5+1102_daily_bin1780.fits', expMap='/scratch/kocevski/81674/expmap_700704001_700963201_4FGL_J2330.5+1102_daily_bin1780.fits', expCube='/scratch/kocevski/81674/ltcube_700704001_700963201_4FGL_J2330.5+1102_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/81674/Model_4FGL_J2330.5+1102_daily_bin1780.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  0.000e+00  1.000e+06 ( 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/81674/ft1_filtered_4FGL_J2330.5+1102_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/81674/ft2_4FGL_J2330.5+1102_daily_bin1780.fits
Exposure map: /scratch/kocevski/81674/expmap_700704001_700963201_4FGL_J2330.5+1102_daily_bin1780.fits
Exposure cube: /scratch/kocevski/81674/ltcube_700704001_700963201_4FGL_J2330.5+1102_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/81674/Model_4FGL_J2330.5+1102_daily_bin1780.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) = 3106.2186845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13805E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .36483E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .68569E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    15.677       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10205E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    11.820       1.0000          .0000       .10000E+07
     7 'Prefactor '    .78787E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    37.029       1.0000          .0000       .10000E+07
     9 'Prefactor '    73.900       1.0000          .0000       .10000E+07
    10 'norm      '    41.038       1.0000          .0000       .10000E+07
    11 'Prefactor '    13.331       1.0000          .0000       .10000E+07
    12 'Prefactor '    61.496       1.0000          .0000       .10000E+07
    13 'norm      '    .79173E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    78.461       1.0000          .0000       .10000E+07
    15 'Prefactor '    .52516E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .34193E-05   1.0000          .0000       .10000E+07
    17 'Normalizat'    .51741       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1756       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3106.083     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     1370 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-08    15.440        .45443E-06** at limit **
   2  Prefactor     .36789E-01    .11052        .39307E-06   -.10128E-03
   3  Prefactor     .43188E-07    42.159       -.32967E-06** at limit **
   4  Prefactor     15.863        12.918       -.19359E-06   -.51969E-04
   5  Prefactor     .11102E-09    13.621        .12596E-06** at limit **
   6  Prefactor     12.084        12.029       -.20556E-06   -.11249E-01
   7  Prefactor     .41633E-08    16.282       -.80475E-06** at limit **
   8  Prefactor     37.538        7.0040        .12004E-06    .12672    
   9  Prefactor     83.745        108.05        .11525E-05   -.28184E-02
  10  norm          40.797        19.370       -.30664E-06    .16610E-01
  11  Prefactor     13.116        11.388        .44666E-07   -.18878E-02
  12  Prefactor     63.280        45.074        .87717E-06   -.17808E-01
  13  norm          .31419E-07    26.646        .10228E-05** at limit **
  14  Prefactor     81.631        65.110       -.21254E-06    .33348E-02
  15  Prefactor     .38358E-07    27.847       -.17090E-05** at limit **
  16  Prefactor      .0000        3.6639       -.13666E-06** at limit **
  17  Normalizat    .51081        .35770        .14330E-04   -.10436E-04
  18  Prefactor     1.1754        .22775       -.20480E-05   -.18782E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-09
  Prefactor  = 0.0367894
  Prefactor  = 4.31877e-08
  Prefactor  = 15.8631
  Prefactor  = 1.11022e-10
  Prefactor  = 12.0838
  Prefactor  = 4.16334e-09
  Prefactor  = 37.5383
  Prefactor  = 83.7448
  norm       = 40.7974
  Prefactor  = 13.1162
  Prefactor  = 63.2799
  norm       = 3.14193e-08
  Prefactor  = 81.6311
  Prefactor  = 3.83582e-08
  Prefactor  = 0
  Normalizat = 0.510813
  Prefactor  = 1.17543
 **********
 **   18 **HESSE 
 **********

 FCN=   3106.083     FROM HESSE     STATUS=OK           282 CALLS     1652 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-08    15.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .36789E-01    .11448        .70353E-02   -1.5670    
   3  Prefactor     .43188E-07    42.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.863        12.959        .25269E-03   -1.5628    
   5  Prefactor     .11102E-09    13.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.084        13.291        .29113E-03   -1.5638    
   7  Prefactor     .41633E-08    16.259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.538        35.455        .16435E-03   -1.5585    
   9  Prefactor     83.745        107.80        .11633E-03   -1.5525    
  10  norm          40.797        19.473        .15612E-03   -1.5580    
  11  Prefactor     13.116        11.396        .27408E-03   -1.5636    
  12  Prefactor     63.280        45.475        .12753E-03   -1.5549    
  13  norm          .31419E-07    26.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     81.631        65.283        .11290E-03   -1.5527    
  15  Prefactor     .38358E-07    27.916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.6650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .51081        .33980        .96239E-01   -1.1192    
  18  Prefactor     1.1754        .21181        .35236E-01   -.87091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82617e-07
Minuit parameter uncertainties:
  1  0.000490564
  2  0.114484
  3  0.00270139
  4  12.9586
  5  7.59803e-05
  6  13.2907
  7  0.000519396
  8  35.4557
  9  107.806
  10  19.4733
  11  11.396
  12  45.475
  13  0.00183174
  14  65.2836
  15  0.00206935
  16  1.6126e-06
  17  0.341191
  18  0.211963
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.312e+01  1.140e+01  0.000e+00  1.000e+06 ( 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.175e+00  2.120e-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.108e-01  3.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 9.20e-08 +/- 7.98e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.80e-05

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

Saving results to:
/scratch/kocevski/81674/likelihoodResults_700704001_700963201_4FGL_J2330.5+1102_daily_bin1780.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) = 3105.89145579
delta logL = 0.191758315953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3105.87369939
delta logL = 0.209514716715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.040       1.0000          .0000       .10000E+07
     2 'Index     '    2.2647       1.0000          .0000       10.000    
     3 'Normalizat'    .53597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1642       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=   3105.874     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      261 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.040        14.730        .96943E-05    .45324E-02
   2  Index         2.2641        .73923        .79247E-02    .10835E-03
   3  Normalizat    .53605        .34946        .41711E-03   -.22977E-04
   4  Prefactor     1.1642        .22549        .18727E-03   -.47436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0396
  Index      = 2.26406
  Normalizat = 0.536047
  Prefactor  = 1.16421
 **********
 **   18 **HESSE 
 **********

 FCN=   3105.874     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.040        14.683        .19389E-05   -1.5625    
   2  Index         2.2641        .73680        .31699E-03   -.57900    
   3  Normalizat    .53605        .34954        .16684E-04   -1.1077    
   4  Prefactor     1.1642        .22555        .37455E-04   -.87440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77124e-10
Minuit parameter uncertainties:
  1  14.6833
  2  0.740656
  3  0.350982
  4  0.225733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81674': 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) = 3105.87369895
delta logL = 0.209515156354

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.704e+01  1.468e+01  0.000e+00  1.000e+06 ( 1.000e-12)
428        Index:  2.264e+00  7.407e-01  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.164e+00  2.257e-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.360e-01  3.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.26 +/- 0.74
Photon Flux (Free Index): 6.82e-08 +/- 7.16e-08
Energy Flux (Free Index): 2.74e-05 +/- 2.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/81674/cmap_HighResolution_700704001_700963201_4FGL_J2330.5+1102_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-02', comment='SUCCESS', photon_flux='9.20e-08', energy_flux2='2.74e-05', photon_flux_error='7.98e-08', dlogl='2.10e-01', energy_flux='2.08e-05', photon_flux2='6.82e-08', job_status='DONE', time_completed='2023-03-20 02:09:42.454313', photon_index_error2='0.74', photon_index2='2.26', ts='2.76', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='2.77e-07', energy_flux_error2='2.91e-05', EG='0.51', time_epoch_completed='1679303382.45', return_code='0', job_id='81674', GAL2='1.16', EG2='0.54', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='7.16e-08', ts2='3.22', photon_index='2.79' WHERE bin_id='1780' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 02:09:42 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 81674: <4FGL_J2330.5+1102_daily_bin1780> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1780> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Mar 20 02:00:14 2023
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 02:00:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 02:00:15 2023
Terminated at Mon Mar 20 02:09:43 2023
Results reported at Mon Mar 20 02:09:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1780 352.629 11.0479 700704001 700963201 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 :                                   433.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            569 sec.

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

