/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 173 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 = 7378
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2330.5+1102_daily_bin29
RA = 352.629, Dec = 11.0479
tmin = 246844801, tmax = 247104001
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='994452', job_status='RUN', time_executed='2021-09-29 22:13:34.847218', time_epoch_executed='1632978814.85' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='29'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994452/ft1_4FGL_J2330.5+1102_daily_bin29.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994452/ft2_4FGL_J2330.5+1102_daily_bin29.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994452/ft1_4FGL_J2330.5+1102_daily_bin29.fits outfile=/scratch/kocevski/994452/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin29.fits ra=352.629 dec=11.0479 rad=12.0 tmin=246844801.0 tmax=247104001.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 1.42
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994452/ft1_filtered_4FGL_J2330.5+1102_daily_bin29.fits" evtable="EVENTS" scfile=/scratch/kocevski/994452/ft2_4FGL_J2330.5+1102_daily_bin29.fits sctable="SC_DATA" outfile=/scratch/kocevski/994452/ltcube_246844801_247104001_4FGL_J2330.5+1102_daily_bin29.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/994452/ft2_4FGL_J2330.5+1102_daily_bin29.fits
.....................!
real 12.56
user 12.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994452/ft1_filtered_4FGL_J2330.5+1102_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/994452/ft2_4FGL_J2330.5+1102_daily_bin29.fits sctable="SC_DATA" expcube=/scratch/kocevski/994452/ltcube_246844801_247104001_4FGL_J2330.5+1102_daily_bin29.fits outfile=/scratch/kocevski/994452/expmap_246844801_247104001_4FGL_J2330.5+1102_daily_bin29.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/994452/ltcube_246844801_247104001_4FGL_J2330.5+1102_daily_bin29.fits
.....................!
real 190.53
user 185.19
sys 4.98

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/994452/ft1_filtered_4FGL_J2330.5+1102_daily_bin29.fits scfile=/scratch/kocevski/994452/ft2_4FGL_J2330.5+1102_daily_bin29.fits outfile=/scratch/kocevski/994452/cmap_246844801_247104001_4FGL_J2330.5+1102_daily_bin29.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994452/ft1_filtered_4FGL_J2330.5+1102_daily_bin29.fits scfile=/scratch/kocevski/994452/ft2_4FGL_J2330.5+1102_daily_bin29.fits outfile=/scratch/kocevski/994452/cmap_HighResolution_246844801_247104001_4FGL_J2330.5+1102_daily_bin29.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.045       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6684       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7428       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.338       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.761       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.456       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .66935       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    59.891       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.205       1.0000         .10000E-03   10000.    
    15 'norm      '    .15034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10818E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .65451       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0238       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=   7685.103     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1771 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.642       -.45790E-05** at limit **
   2  Prefactor     10.045        13.531        .20733E-07   -.11414E-04
   3  Prefactor     3.6683        .32970       -.26790E-07    .15460E-03
   4  Prefactor     3.7390        13.308        .87373E-06   -.86959E-04
   5  Prefactor     14.338        8.8218        .14689E-06   -.81773E-04
   6  Prefactor     .10000E-03    3.7263       -.21668E-06** at limit **
   7  Prefactor     17.766        21.138        .10250E-05   -.42272E-04
   8  Prefactor     11.450        7.7259        .27974E-05   -.16436E-03
   9  Prefactor     .65759        8.2582        .25598E-05   -.53084E-03
  10  Prefactor     .10000E-03    25.903        .36017E-05** at limit **
  11  Prefactor     .10000E-03    18.764        .86394E-06** at limit **
  12  norm          59.913        13.983       -.24512E-05   -.81939E-03
  13  Prefactor     .10001E-03    3.2228        .31963E-06** at limit **
  14  Prefactor     23.209        17.807       -.66968E-06   -.15711E-03
  15  norm          .10000E-03    19.719       -.14448E-04** at limit **
  16  Prefactor     .10000E-03    7.7979        .19432E-05** at limit **
  17  Prefactor     .10000E-03    18.270        .97993E-05** at limit **
  18  Prefactor     .10000E-03    5.2480       -.24878E-06** at limit **
  19  Normalizat    .65500        .20765       -.30104E-06   -.20898E-03
  20  Prefactor     1.0237        .12883       -.27483E-07   -.23326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.045
  Prefactor  = 3.66826
  Prefactor  = 3.739
  Prefactor  = 14.3376
  Prefactor  = 0.0001
  Prefactor  = 17.7663
  Prefactor  = 11.4503
  Prefactor  = 0.657586
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 59.9125
  Prefactor  = 0.000100012
  Prefactor  = 23.2087
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.655004
  Prefactor  = 1.0237
 **********
 **   18 **HESSE 
 **********

 FCN=   7685.103     FROM HESSE     STATUS=OK           291 CALLS     2062 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.045        13.535        .12643E-03   -1.5074    
   3  Prefactor     3.6683        .33001        .14366E-04   -1.5325    
   4  Prefactor     3.7390        13.283        .20870E-03   -1.5321    
   5  Prefactor     14.338        8.8307        .10578E-03   -1.4950    
   6  Prefactor     .10000E-03    3.7320        .16525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.766        21.144        .95035E-04   -1.4865    
   8  Prefactor     11.450        7.6793        .11836E-03   -1.5031    
   9  Prefactor     .65759        35.930        .44727E-02   -1.5546    
  10  Prefactor     .10000E-03    26.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          59.913        13.766        .51844E-04   -1.4158    
  13  Prefactor     .10001E-03    7.8567        .30093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.209        17.791        .83152E-04   -1.4744    
  15  norm          .10000E-03    19.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .65500        .23384        .39597E-03   -1.0570    
  20  Prefactor     1.0237        .14694        .20559E-03   -.91944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32465e-09
Minuit parameter uncertainties:
  1  6.5278e-05
  2  13.5395
  3  0.330011
  4  13.2935
  5  8.83148
  6  4.60072e-06
  7  21.1532
  8  7.67991
  9  9.72699
  10  0.000314702
  11  3.31475e-08
  12  13.7664
  13  0.000618698
  14  17.7949
  15  0.000117657
  16  1.68088e-06
  17  1.1413e-05
  18  2.28922e-06
  19  0.2342
  20  0.146995
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  6.187e-04  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.024e+00  1.470e-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:  6.550e-01  2.342e-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: 9.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994452/likelihoodResults_246844801_247104001_4FGL_J2330.5+1102_daily_bin29.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): 102
logL (Free Index) = 7685.10337565
delta logL = -0.000604311472671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7685.10277143
delta logL = -9.05820343178e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7536       1.0000          .0000       10.000    
     3 'Normalizat'    .65489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0238       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7685.103     FROM MIGRAD    STATUS=FAILED        97 CALLS      263 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10667E-03    91.607        .30719E-02** at limit **
   2  Index         2.5551        6.8851        .50000        .17821E-04
   3  Normalizat    .65501        .15319E-01    .39597E-03   -.23026E-04
   4  Prefactor     1.0237        .98490E-02    .20559E-03   -.19277E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7685.103     FROM SIMPLEX   STATUS=PROGRESS     119 CALLS      382 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10107E-03    91.607        .40280E-03** at limit **
   2  Index         2.5535        6.8851        .49844E-03    .17821E-04
   3  Normalizat    .65500        .15319E-01    .38929E-05   -.23026E-04
   4  Prefactor     1.0237        .98490E-02    .22337E-05   -.19277E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7685.103     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      437 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.312        .61438E-02** at limit **
   2  Index         2.3662        7.2024        .50000       -.19627E-06
   3  Normalizat    .65501        .12655E-01    .15839E-04    .26084E-03
   4  Prefactor     1.0237        .81365E-02    .41119E-04    .44929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.36622
  Normalizat = 0.655008
  Prefactor  = 1.0237
 **********
 **   18 **HESSE 
 **********

 FCN=   7685.103     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      466 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1276.2        .24575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3662        6.1831        .50000       -.55478    
   3  Normalizat    .65501        .66113E-01    .31678E-05   -1.0570    
   4  Prefactor     1.0237        .42510E-01    .82237E-05   -.91944    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.26237e-08
Minuit parameter uncertainties:
  1  0.00471808
  2  1232.68
  3  0.066121
  4  0.0425119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994452': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7685.10276953
delta logL = 1.81594077731e-06

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  4.718e-03  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.366e+00  1.233e+03  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.024e+00  4.251e-02  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:  6.550e-01  6.612e-02  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/994452/cmap_HighResolution_246844801_247104001_4FGL_J2330.5+1102_daily_bin29.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-09-29 22:24:26.201321', job_id='994452', GAL2='1.02', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1632979466.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='29' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:24:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 994452: <4FGL_J2330.5+1102_daily_bin29> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin29> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 22:10:32 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:10:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 22:10:35 2021
Terminated at Wed Sep 29 22:24:26 2021
Results reported at Wed Sep 29 22:24:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin29 352.629 11.0479 246844801 247104001 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 :                                   650.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            834 sec.

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

