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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1616
RA = 352.629, Dec = 11.0479
tmin = 658195201, tmax = 658454401
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='502663', job_status='RUN', time_executed='2021-12-08 09:38:48.157764', time_epoch_executed='1638985128.16' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502663/ft1_4FGL_J2330.5+1102_daily_bin1616.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502663/ft2_4FGL_J2330.5+1102_daily_bin1616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502663/ft1_4FGL_J2330.5+1102_daily_bin1616.fits outfile=/scratch/kocevski/502663/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1616.fits ra=352.629 dec=11.0479 rad=12.0 tmin=658195201.0 tmax=658454401.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.77
user 4.46
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502663/ft1_filtered_4FGL_J2330.5+1102_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/502663/ft2_4FGL_J2330.5+1102_daily_bin1616.fits sctable="SC_DATA" expcube=/scratch/kocevski/502663/ltcube_658195201_658454401_4FGL_J2330.5+1102_daily_bin1616.fits outfile=/scratch/kocevski/502663/expmap_658195201_658454401_4FGL_J2330.5+1102_daily_bin1616.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/502663/ltcube_658195201_658454401_4FGL_J2330.5+1102_daily_bin1616.fits
.....................!
real 192.60
user 186.28
sys 4.76

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/502663/ft1_filtered_4FGL_J2330.5+1102_daily_bin1616.fits scfile=/scratch/kocevski/502663/ft2_4FGL_J2330.5+1102_daily_bin1616.fits outfile=/scratch/kocevski/502663/cmap_658195201_658454401_4FGL_J2330.5+1102_daily_bin1616.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.56
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502663/ft1_filtered_4FGL_J2330.5+1102_daily_bin1616.fits scfile=/scratch/kocevski/502663/ft2_4FGL_J2330.5+1102_daily_bin1616.fits outfile=/scratch/kocevski/502663/cmap_HighResolution_658195201_658454401_4FGL_J2330.5+1102_daily_bin1616.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=352.629 yref=11.0479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .99183       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.975       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.108       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.092       1.0000         .10000E-03   10000.    
    12 'norm      '    5.9558       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.651       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22496E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87529       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88224       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6840.892     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2356 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.266        33.842         .0000        .62076E-03
   2  Prefactor     .10000E-03    19.114         .0000    ** at limit **
   3  Prefactor     .99181        .20431         .0000        .91684E-04
   4  Prefactor     .10000E-03    23.525         .0000    ** at limit **
   5  Prefactor     .10000E-03    2.1849         .0000    ** at limit **
   6  Prefactor     8.2715        11.854         .0000        .14569E-02
   7  Prefactor     .10000E-03    5.0873         .0000    ** at limit **
   8  Prefactor     1.1232        13.170         .0000        .24260E-01
   9  Prefactor     17.973        12.997         .0000       -.41266E-03
  10  Prefactor     30.144        25.755         .0000        .79344E-02
  11  Prefactor     56.093        50.967         .0000       -.50097E-03
  12  norm          5.9542        9.0586         .0000        .88895E-03
  13  Prefactor     .10000E-03    3.5926         .0000    ** at limit **
  14  Prefactor     .10000E-03    14.570         .0000    ** at limit **
  15  norm          .10000E-03    4.7419         .0000    ** at limit **
  16  Prefactor     38.655        39.255         .0000       -.12274E-02
  17  Prefactor     .11024E-03    19.024         .0000    ** at limit **
  18  Prefactor     .10000E-03    4.1722         .0000    ** at limit **
  19  Normalizat    .87492        .19786         .0000       -.70407E-04
  20  Prefactor     .88252        .11523         .0000       -.11340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.2665
  Prefactor  = 0.000100003
  Prefactor  = 0.991806
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 8.27155
  Prefactor  = 0.0001
  Prefactor  = 1.12323
  Prefactor  = 17.9725
  Prefactor  = 30.1435
  Prefactor  = 56.093
  norm       = 5.95419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.6553
  Prefactor  = 0.000110243
  Prefactor  = 0.0001
  Normalizat = 0.874923
  Prefactor  = 0.882523
 **********
 **   18 **HESSE 
 **********

 FCN=   6840.892     FROM HESSE     STATUS=OK           293 CALLS     2649 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.266        33.922        .65634E-04   -1.4486    
   2  Prefactor     .10000E-03    19.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .99181        .20466        .16115E-04   -1.5509    
   4  Prefactor     .10000E-03    23.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1909        .11938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2715        11.850        .69693E-03   -1.5133    
   7  Prefactor     .10000E-03    5.0918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1232        12.696        .21875E-02   -1.5496    
   9  Prefactor     17.973        12.961        .94468E-04   -1.4860    
  10  Prefactor     30.144        25.162        .73019E-04   -1.4609    
  11  Prefactor     56.093        50.987        .53561E-04   -1.4209    
  12  norm          5.9542        9.0249        .16454E-03   -1.5220    
  13  Prefactor     .10000E-03    3.6067        .15295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.7451        .17590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.655        39.405        .64470E-04   -1.4464    
  17  Prefactor     .11024E-03    25.712        .95875E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1979        .16496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .87492        .22921        .31826E-03   -.97347    
  20  Prefactor     .88252        .13383        .19393E-03   -.96754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4809e-07
Minuit parameter uncertainties:
  1  33.94
  2  0.000493857
  3  0.204662
  4  0.000624366
  5  2.07836e-06
  6  11.8537
  7  3.68413e-06
  8  7.55421
  9  12.9634
  10  25.1707
  11  51.0263
  12  9.02698
  13  1.24978e-06
  14  7.13115e-05
  15  2.64637e-06
  16  39.4312
  17  0.0324714
  18  1.89096e-06
  19  0.229469
  20  0.133882
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  1.250e-06  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:  8.825e-01  1.339e-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.749e-01  2.295e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/502663/likelihoodResults_658195201_658454401_4FGL_J2330.5+1102_daily_bin1616.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) = 6840.89354482
delta logL = -0.00132106393903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6840.89222389
delta logL = -1.30135049403e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7860       1.0000          .0000       10.000    
     3 'Normalizat'    .87488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88257       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=   6840.892     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      239 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    292.60        .15296E-02** at limit **
   2  Index         2.7719        8.5648        .50000        .15965E-05
   3  Normalizat    .87492        .49543E-01    .31826E-03   -.96126E-04
   4  Prefactor     .88252        .30524E-01    .19393E-03   -.11379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Index      = 2.77193
  Normalizat = 0.874923
  Prefactor  = 0.882523
 **********
 **   18 **HESSE 
 **********

 FCN=   6840.892     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    250.39        .30591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7719        5.2588        .50000       -.46186    
   3  Normalizat    .87492        .21573        .12730E-04   -.97347    
   4  Prefactor     .88252        .13285        .38785E-04   -.96754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79572e-09
Minuit parameter uncertainties:
  1  0.0041724
  2  1602.58
  3  0.215938
  4  0.132894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502663': 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) = 6840.89222375
delta logL = 3.58068064088e-09

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  4.172e-03  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.772e+00  1.603e+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:  8.825e-01  1.329e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  8.749e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', job_status='DONE', photon_flux_upper_limit='9.79e-08', time_completed='2021-12-08 09:49:25.242318', job_id='502663', GAL2='0.88', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1638985765.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.58e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1616' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:49:25 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 502663: <4FGL_J2330.5+1102_daily_bin1616> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1616> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 09:35:18 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:35:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:35:44 2021
Terminated at Wed Dec  8 09:49:26 2021
Results reported at Wed Dec  8 09:49:26 2021

Your job looked like:

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

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

