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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1778
RA = 352.629, Dec = 11.0479
tmin = 700185601, tmax = 700444801
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='983704', job_status='RUN', time_executed='2023-03-14 02:26:15.039655', time_epoch_executed='1678785975.04' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983704

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983704/ft1_4FGL_J2330.5+1102_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983704/ft2_4FGL_J2330.5+1102_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983704/ft1_4FGL_J2330.5+1102_daily_bin1778.fits outfile=/scratch/kocevski/983704/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1778.fits ra=352.629 dec=11.0479 rad=12.0 tmin=700185601.0 tmax=700444801.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.95
user 3.70
sys 0.21

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

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

Number of photons that the gtmktime cut: 551

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983704/ft1_filtered_4FGL_J2330.5+1102_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/983704/ft2_4FGL_J2330.5+1102_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/983704/ltcube_700185601_700444801_4FGL_J2330.5+1102_daily_bin1778.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/983704/ft2_4FGL_J2330.5+1102_daily_bin1778.fits
.....................!
real 11.74
user 11.43
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983704/ft1_filtered_4FGL_J2330.5+1102_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/983704/ft2_4FGL_J2330.5+1102_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/983704/ltcube_700185601_700444801_4FGL_J2330.5+1102_daily_bin1778.fits outfile=/scratch/kocevski/983704/expmap_700185601_700444801_4FGL_J2330.5+1102_daily_bin1778.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/983704/ltcube_700185601_700444801_4FGL_J2330.5+1102_daily_bin1778.fits
.....................!
real 190.65
user 185.46
sys 4.81

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/983704/ft1_filtered_4FGL_J2330.5+1102_daily_bin1778.fits scfile=/scratch/kocevski/983704/ft2_4FGL_J2330.5+1102_daily_bin1778.fits outfile=/scratch/kocevski/983704/cmap_700185601_700444801_4FGL_J2330.5+1102_daily_bin1778.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983704/ft1_filtered_4FGL_J2330.5+1102_daily_bin1778.fits scfile=/scratch/kocevski/983704/ft2_4FGL_J2330.5+1102_daily_bin1778.fits outfile=/scratch/kocevski/983704/cmap_HighResolution_700185601_700444801_4FGL_J2330.5+1102_daily_bin1778.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12038E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12965       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.844       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5125       1.0000          .0000       .10000E+07
     5 'Prefactor '    24.326       1.0000          .0000       .10000E+07
     6 'Prefactor '    .97588E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .70625       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15482E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .59338E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .10677E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.4177       1.0000          .0000       .10000E+07
    12 'Prefactor '    .36096       1.0000          .0000       .10000E+07
    13 'norm      '    15.802       1.0000          .0000       .10000E+07
    14 'Prefactor '    .45118       1.0000          .0000       .10000E+07
    15 'Prefactor '    .61365       1.0000          .0000       .10000E+07
    16 'Prefactor '    .13614E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    .84182       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0412       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=   6103.010     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1359 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    9.7975       -.36845E-07** at limit **
   2  Prefactor     .12931        .10937        .10954E-06    .47863E-03
   3  Prefactor     28.969        2.3346       -.16065E-08    .34998E-01
   4  Prefactor     2.5101        5.7028       -.84227E-07   -.57417E-03
   5  Prefactor     24.292        1.6039        .82040E-08   -.33752E-02
   6  Prefactor      .0000        2.3023       -.27239E-07** at limit **
   7  Prefactor     .73968        12.291       -.74452E-06   -.18086E-01
   8  Prefactor      .0000        5.8534        .28485E-06** at limit **
   9  Prefactor     .43354E-07    13.283        .68639E-07** at limit **
  10  norm          .10550E-05    11.306        .88476E-06** at limit **
  11  Prefactor     3.4257        5.5333        .18598E-07   -.11721E-02
  12  Prefactor     .15138E-06    27.326       -.27236E-06** at limit **
  13  norm          15.777        8.2017        .16438E-07    .16641    
  14  Prefactor     .16076E-04    58.628        .14545E-05** at limit **
  15  Prefactor     .28111E-06    214.81       -.54056E-05** at limit **
  16  Prefactor      .0000        3.0107       -.27011E-07** at limit **
  17  Normalizat    .84349        .22295       -.33309E-05    .53140E-04
  18  Prefactor     1.0409        .14169        .18001E-05    .12709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Prefactor  = 0.129305
  Prefactor  = 28.9691
  Prefactor  = 2.51011
  Prefactor  = 24.2923
  Prefactor  = 0
  Prefactor  = 0.73968
  Prefactor  = 0
  Prefactor  = 4.33542e-08
  norm       = 1.05499e-06
  Prefactor  = 3.42569
  Prefactor  = 1.51379e-07
  norm       = 15.7773
  Prefactor  = 1.60763e-05
  Prefactor  = 2.81108e-07
  Prefactor  = 0
  Normalizat = 0.843488
  Prefactor  = 1.04093
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.010     FROM HESSE     STATUS=OK           280 CALLS     1639 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    9.8355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12931        .11552        .51863E-02   -1.5636    
   3  Prefactor     28.969        34.767        .18623E-03   -1.5600    
   4  Prefactor     2.5101        5.7273        .64433E-03   -1.5676    
   5  Prefactor     24.292        19.104        .20280E-03   -1.5609    
   6  Prefactor      .0000        2.3090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .73968        39.159        .60203E-03   -1.5691    
   8  Prefactor      .0000        5.8582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .43354E-07    16.495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10550E-05    20.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4257        5.5939        .54694E-03   -1.5671    
  12  Prefactor     .15138E-06    76.269        .94157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.777        13.419        .25169E-03   -1.5629    
  14  Prefactor     .16076E-04    92.616        .83781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .28111E-06    208.81        .68014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.0132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .84349        .19731        .70550E-01   -.98475    
  18  Prefactor     1.0409        .12323        .40458E-01   -.91377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6902e-07
Minuit parameter uncertainties:
  1  0.000131211
  2  0.115519
  3  34.7668
  4  5.7273
  5  19.1045
  6  1.38598e-05
  7  10.7639
  8  1.49608e-05
  9  0.00169126
  10  0.00940521
  11  5.59387
  12  0.00679625
  13  13.419
  14  0.0771744
  15  0.0153239
  16  9.88106e-06
  17  0.197482
  18  0.123266
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  3.426e+00  5.594e+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

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.041e+00  1.233e-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:  8.435e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/983704/likelihoodResults_700185601_700444801_4FGL_J2330.5+1102_daily_bin1778.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) = 6102.79470533
delta logL = 0.214975875311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6102.77231418
delta logL = 0.23736702596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1962       1.0000          .0000       .10000E+07
     2 'Index     '    2.0767       1.0000          .0000       10.000    
     3 'Normalizat'    .85651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0339       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=   6102.772     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      244 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2075        12.243        .44075E-03    .10027E-02
   2  Index         2.0786        1.1824        .25365       -.28824E-04
   3  Normalizat    .85689        .19288        .70032E-01    .28368E-04
   4  Prefactor     1.0337        .12394        .40963E-01    .24706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.20751
  Index      = 2.07858
  Normalizat = 0.856894
  Prefactor  = 1.03368
 **********
 **   18 **HESSE 
 **********

 FCN=   6102.772     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2075        6.9795        .17630E-04   -1.5662    
   2  Index         2.0786        .83883        .12689E-01   -.62400    
   3  Normalizat    .85689        .22057        .30987E-03   -.97992    
   4  Prefactor     1.0337        .14177        .18202E-03   -.91615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93149e-10
Minuit parameter uncertainties:
  1  6.9795
  2  0.844922
  3  0.220797
  4  0.141818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983704': 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) = 6102.77230886
delta logL = 0.237372340422

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  5.208e+00  6.979e+00  0.000e+00  1.000e+06 ( 1.000e-12)
428        Index:  2.079e+00  8.449e-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.034e+00  1.418e-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:  8.569e-01  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.08 +/- 0.84
Photon Flux (Free Index): 1.77e-08 +/- 2.76e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.74e-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/983704/cmap_HighResolution_700185601_700444801_4FGL_J2330.5+1102_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='2.37e-01', photon_flux2='1.77e-08', job_status='DONE', time_completed='2023-03-14 02:34:43.853264', photon_index_error2='0.84', photon_index2='2.08', ts='0.55', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.74e-05', EG='0.84', time_epoch_completed='1678786483.85', return_code='0', job_id='983704', GAL2='1.03', EG2='0.86', return_code2='0', photon_flux_error2='2.76e-08', ts2='1.02', photon_index='2.79' WHERE bin_id='1778' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 02:34:43 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 983704: <4FGL_J2330.5+1102_daily_bin1778> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1778> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Mar 14 02:25:15 2023
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 02:25:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 02:25:16 2023
Terminated at Tue Mar 14 02:34:44 2023
Results reported at Tue Mar 14 02:34:44 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1778 352.629 11.0479 700185601 700444801 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 :                                   511.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             336.55 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.

