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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin63
RA = 352.629, Dec = 11.0479
tmin = 255657601, tmax = 255916801
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='994501', job_status='RUN', time_executed='2021-09-29 22:14:00.268723', time_epoch_executed='1632978840.27' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='63'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994501

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994501/ft1_4FGL_J2330.5+1102_daily_bin63.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994501/ft2_4FGL_J2330.5+1102_daily_bin63.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994501/ft1_4FGL_J2330.5+1102_daily_bin63.fits outfile=/scratch/kocevski/994501/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin63.fits ra=352.629 dec=11.0479 rad=12.0 tmin=255657601.0 tmax=255916801.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.48
user 1.25
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994501/ft1_filtered_4FGL_J2330.5+1102_daily_bin63.fits evtable="EVENTS" scfile=/scratch/kocevski/994501/ft2_4FGL_J2330.5+1102_daily_bin63.fits sctable="SC_DATA" expcube=/scratch/kocevski/994501/ltcube_255657601_255916801_4FGL_J2330.5+1102_daily_bin63.fits outfile=/scratch/kocevski/994501/expmap_255657601_255916801_4FGL_J2330.5+1102_daily_bin63.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/994501/ltcube_255657601_255916801_4FGL_J2330.5+1102_daily_bin63.fits
.....................!
real 191.27
user 185.89
sys 5.01

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/994501/ft1_filtered_4FGL_J2330.5+1102_daily_bin63.fits scfile=/scratch/kocevski/994501/ft2_4FGL_J2330.5+1102_daily_bin63.fits outfile=/scratch/kocevski/994501/cmap_255657601_255916801_4FGL_J2330.5+1102_daily_bin63.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.53
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.936       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.055       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7922       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4181       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.787       1.0000         .10000E-03   10000.    
    11 'Prefactor '    81.063       1.0000         .10000E-03   10000.    
    12 'norm      '    25.063       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1426       1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.246       1.0000         .10000E-03   10000.    
    15 'norm      '    6.7681       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.750       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .38649       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2214       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=   8096.306     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     2421 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.935        24.774       -.12341E-05   -.32083E-04
   2  Prefactor     .10000E-03    12.528       -.36247E-06** at limit **
   3  Prefactor     1.0079        .18043       -.65767E-07   -.11700E-02
   4  Prefactor     39.042        35.343       -.16928E-04   -.65155E-04
   5  Prefactor     2.7917        3.8357        .26094E-05   -.35584E-03
   6  Prefactor     .10000E-03    16.074        .14211E-05** at limit **
   7  Prefactor     6.4172        9.4394        .11264E-06   -.53305E-04
   8  Prefactor     .10000E-03    3.4686        .46252E-06** at limit **
   9  Prefactor     .10000E-03    2.4379       -.43989E-06** at limit **
  10  Prefactor     33.776        19.173       -.92234E-05   -.11119E-03
  11  Prefactor     81.049        54.042       -.13870E-04   -.34329E-04
  12  norm          25.062        10.690        .24168E-05   -.19229E-03
  13  Prefactor     9.1415        7.6170       -.44889E-07   -.25501E-03
  14  Prefactor     59.226        31.029       -.19613E-04   -.11533E-03
  15  norm          6.7681        7.2533        .66987E-06    .10832E-02
  16  Prefactor     .10000E-03    8.6344       -.20344E-06** at limit **
  17  Prefactor     .10000E-03    7.1848        .10038E-05** at limit **
  18  Prefactor     10.749        7.5808       -.11514E-05   -.14997E-03
  19  Normalizat    .38683        .21772        .17782E-04    .13443E-03
  20  Prefactor     1.2212        .13290       -.97747E-06   -.37442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9353
  Prefactor  = 0.0001
  Prefactor  = 1.00794
  Prefactor  = 39.0422
  Prefactor  = 2.79175
  Prefactor  = 0.000100001
  Prefactor  = 6.41718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.7764
  Prefactor  = 81.0494
  norm       = 25.0624
  Prefactor  = 9.14151
  Prefactor  = 59.2264
  norm       = 6.76811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7488
  Normalizat = 0.386827
  Prefactor  = 1.22122
 **********
 **   18 **HESSE 
 **********

 FCN=   8096.306     FROM HESSE     STATUS=OK           291 CALLS     2712 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.935        24.812        .83638E-04   -1.4750    
   2  Prefactor     .10000E-03    12.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0079        .18036        .15381E-04   -1.5507    
   4  Prefactor     39.042        35.291        .64137E-04   -1.4457    
   5  Prefactor     2.7917        3.8154        .19966E-03   -1.5374    
   6  Prefactor     .10000E-03    16.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4172        9.4285        .15843E-03   -1.5201    
   8  Prefactor     .10000E-03    3.5273        .16343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4394        .13715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.776        19.155        .68940E-04   -1.4545    
  11  Prefactor     81.049        53.987        .44609E-04   -1.3905    
  12  norm          25.062        10.659        .80015E-04   -1.4706    
  13  Prefactor     9.1415        7.5798        .13255E-03   -1.5103    
  14  Prefactor     59.226        30.965        .52124E-04   -1.4167    
  15  norm          6.7681        7.2734        .77115E-03   -1.5188    
  16  Prefactor     .10000E-03    8.6417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.749        7.5657        .12219E-03   -1.5052    
  19  Normalizat    .38683        .21300        .47886E-03   -1.1799    
  20  Prefactor     1.2212        .13277        .18274E-03   -.85681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18072e-09
Minuit parameter uncertainties:
  1  24.8232
  2  4.97672e-05
  3  0.180364
  4  35.3096
  5  3.81572
  6  0.000226865
  7  9.43067
  8  4.2445e-05
  9  3.19981e-05
  10  19.1588
  11  54.02
  12  10.6603
  13  7.58055
  14  30.9735
  15  7.27432
  16  1.0498e-05
  17  9.82258e-06
  18  7.56638
  19  0.21345
  20  0.132811
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  9.142e+00  7.581e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.787e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.221e+00  1.328e-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:  3.868e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.35
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 6.41e-08 +/- 5.31e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/994501/likelihoodResults_255657601_255916801_4FGL_J2330.5+1102_daily_bin63.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) = 8096.29766743
delta logL = 0.00803712664492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8096.2929438
delta logL = 0.0127607547292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3853       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9165       1.0000          .0000       10.000    
     3 'Normalizat'    .38145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2235       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=   8096.293     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3833        8.8285        .13844E-03    .89256E-03
   2  Index         2.9169        .88011        .87655E-02    .17830E-03
   3  Normalizat    .38146        .20669        .48203E-03   -.55443E-03
   4  Prefactor     1.2235        .13348        .18258E-03   -.14668E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.38334
  Index      = 2.91694
  Normalizat = 0.381463
  Prefactor  = 1.22353
 **********
 **   18 **HESSE 
 **********

 FCN=   8096.293     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3833        8.2876        .55376E-05   -1.5129    
   2  Index         2.9169        .82564        .35062E-03   -.42971    
   3  Normalizat    .38146        .20649        .19281E-04   -1.1827    
   4  Prefactor     1.2235        .13335        .36517E-04   -.85610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0244e-09
Minuit parameter uncertainties:
  1  8.28874
  2  0.830245
  3  0.206905
  4  0.13339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994501': 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) = 8096.29294358
delta logL = 0.0127609759802

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  8.383e+00  8.289e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.917e+00  8.302e-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.224e+00  1.334e-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:  3.815e-01  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.92 +/- 0.83
Photon Flux (Free Index): 6.87e-08 +/- 5.87e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.10e-05

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/994501/cmap_HighResolution_255657601_255916801_4FGL_J2330.5+1102_daily_bin63.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='6.41e-08', energy_flux2='1.43e-05', photon_flux_error='5.31e-08', dlogl='1.28e-02', energy_flux='1.45e-05', photon_flux2='6.87e-08', job_status='DONE', time_completed='2021-09-29 22:25:29.260516', photon_index_error2='0.83', photon_index2='2.92', ts='2.35', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.10e-05', EG='0.39', time_epoch_completed='1632979529.26', return_code='0', job_id='994501', GAL2='1.22', EG2='0.38', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.87e-08', ts2='2.42', photon_index='2.79' WHERE bin_id='63' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:25:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 994501: <4FGL_J2330.5+1102_daily_bin63> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin63> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 22:10:36 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:10:37 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:37 2021
Terminated at Wed Sep 29 22:25:30 2021
Results reported at Wed Sep 29 22:25:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin63 352.629 11.0479 255657601 255916801 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 :                                   689.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

