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


Performing analysis on: 4FGL_J2330.2+7759_daily_bin751
RA = 352.568, Dec = 77.9947
tmin = 433987201, tmax = 434246401
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='985967', job_status='RUN', time_executed='2021-09-29 21:50:36.681408', time_epoch_executed='1632977436.68' WHERE source_name='4FGL J2330.2+7759' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985967

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985967/ft1_4FGL_J2330.2+7759_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985967/ft2_4FGL_J2330.2+7759_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985967/ft1_4FGL_J2330.2+7759_daily_bin751.fits outfile=/scratch/kocevski/985967/ft1_filteredMKT_4FGL_J2330.2+7759_daily_bin751.fits ra=352.568 dec=77.9947 rad=12.0 tmin=433987201.0 tmax=434246401.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 6.15
user 5.90
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/985967/ft2_4FGL_J2330.2+7759_daily_bin751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985967/ft2_4FGL_J2330.2+7759_daily_bin751.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/985967/ft1_filteredMKT_4FGL_J2330.2+7759_daily_bin751.fits evtable="EVENTS" outfile="/scratch/kocevski/985967/ft1_filtered_4FGL_J2330.2+7759_daily_bin751.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985967/ft1_filtered_4FGL_J2330.2+7759_daily_bin751.fits" evtable="EVENTS" scfile=/scratch/kocevski/985967/ft2_4FGL_J2330.2+7759_daily_bin751.fits sctable="SC_DATA" outfile=/scratch/kocevski/985967/ltcube_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.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/985967/ft2_4FGL_J2330.2+7759_daily_bin751.fits
.....................!
real 11.94
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985967/ft1_filtered_4FGL_J2330.2+7759_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/985967/ft2_4FGL_J2330.2+7759_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/985967/ltcube_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.fits outfile=/scratch/kocevski/985967/expmap_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.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/985967/ltcube_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.fits
.....................!
real 191.11
user 185.12
sys 5.09

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
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 209 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2330.2+7759 @ 352.568 77.9947

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/985967/ft1_filtered_4FGL_J2330.2+7759_daily_bin751.fits scfile=/scratch/kocevski/985967/ft2_4FGL_J2330.2+7759_daily_bin751.fits outfile=/scratch/kocevski/985967/cmap_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.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.568 yref=77.9947 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985967/ft1_filtered_4FGL_J2330.2+7759_daily_bin751.fits scfile=/scratch/kocevski/985967/ft2_4FGL_J2330.2+7759_daily_bin751.fits outfile=/scratch/kocevski/985967/cmap_HighResolution_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.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.568 yref=77.9947 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/985967/ft1_filtered_4FGL_J2330.2+7759_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/985967/ft2_4FGL_J2330.2+7759_daily_bin751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985967/Model_4FGL_J2330.2+7759_daily_bin751.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/985967/ft1_filtered_4FGL_J2330.2+7759_daily_bin751.fits.....................!
real 168.09
user 166.56
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/985967/ft1_filtered_4FGL_J2330.2+7759_daily_bin751.fits', '/scratch/kocevski/985967/ft2_4FGL_J2330.2+7759_daily_bin751.fits', expMap='/scratch/kocevski/985967/expmap_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.fits', expCube='/scratch/kocevski/985967/ltcube_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/985967/Model_4FGL_J2330.2+7759_daily_bin751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2330.2+7759'

4FGL J2330.2+7759
   Spectrum: PowerLaw
674    Prefactor:  2.183e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
675        Index:  2.330e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
676        Scale:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/985967/ft1_filtered_4FGL_J2330.2+7759_daily_bin751.fits
Spacecraft file(s): /scratch/kocevski/985967/ft2_4FGL_J2330.2+7759_daily_bin751.fits
Exposure map: /scratch/kocevski/985967/expmap_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.fits
Exposure cube: /scratch/kocevski/985967/ltcube_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/985967/Model_4FGL_J2330.2+7759_daily_bin751.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) = 11167.1394956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9503       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8202       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8894       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .98627E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7987       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    40.378       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10698E-03   1.0000         .10000E-03   10000.    
    13 'Normalizat'    1.1431       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .91096       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11167.06     FROM MIGRAD    STATUS=CONVERGED    280 CALLS     1302 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9508        3.7822        .54187E-06    .12581E-04
   2  Prefactor     .10000E-03    37.089       -.81683E-07** at limit **
   3  Prefactor     .10000E-03    4.3712       -.17621E-07** at limit **
   4  Prefactor     9.8151        101.31        .90006E-06    .97598E-05
   5  norm          3.8910        31.856        .67719E-06   -.11397E-04
   6  Prefactor     .10000E-03    2.2102       -.16095E-06** at limit **
   7  Prefactor     .10003E-03    9.3279       -.65729E-06** at limit **
   8  norm          3.7989        4.6833        .71201E-06    .11797E-05
   9  Prefactor     32.488        22.802       -.11073E-06    .41911E-05
  10  Prefactor     .10000E-03    258.13       -.97726E-05** at limit **
  11  norm          40.560        51.204       -.65084E-05   -.11529E-04
  12  Prefactor     .10000E-03    24.549        .75058E-07** at limit **
  13  Normalizat    1.1426        .29022        .28724E-06    .59979E-04
  14  Prefactor     .91100        .52146E-01   -.31875E-07    .16676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.95078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.81506
  norm       = 3.89105
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  norm       = 3.79886
  Prefactor  = 32.4879
  Prefactor  = 0.0001
  norm       = 40.5601
  Prefactor  = 0.0001
  Normalizat = 1.14259
  Prefactor  = 0.911002
 **********
 **   18 **HESSE 
 **********

 FCN=   11167.06     FROM HESSE     STATUS=OK           168 CALLS     1470 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9508        3.7642        .77684E-03   -1.5220    
   2  Prefactor     .10000E-03    37.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.3816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8151        96.289        .12787E-03   -1.5081    
   5  norm          3.8910        30.596        .10230E-02   -1.5313    
   6  Prefactor     .10000E-03    2.2740        .30616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    69.243        .61133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7989        4.6661        .10355E-02   -1.5318    
   9  Prefactor     32.488        22.788        .70304E-04   -1.4567    
  10  Prefactor     .10000E-03    261.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          40.560        51.188        .31541E-03   -1.4433    
  12  Prefactor     .10000E-03    25.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Normalizat    1.1426        .29732        .62035E-03   -.88396    
  14  Prefactor     .91100        .54666E-01    .12537E-03   -.95758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63358e-10
Minuit parameter uncertainties:
  1  3.76439
  2  6.85292e-06
  3  4.8512e-07
  4  61.6135
  5  21.8371
  6  6.31183e-06
  7  0.00301791
  8  4.66658
  9  22.7942
  10  0.000287206
  11  51.2431
  12  5.63455e-06
  13  0.297757
  14  0.0546688
Done.

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

Extracting fit parameters...

4FGL J2330.2+7759
   Spectrum: PowerLaw
674    Prefactor:  1.000e-04  5.635e-06  1.000e-04  1.000e+04 ( 1.000e-13)
675        Index:  2.330e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
676        Scale:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.110e-01  5.467e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.143e+00  2.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.568 77.995
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985967/likelihoodResults_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.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) = 11167.0603732
delta logL = -0.000190094089703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11167.0601828
delta logL = 3.17373633152e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4136       1.0000          .0000       10.000    
     3 'Normalizat'    1.1426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11167.06     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      262 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    280.64        .90712E-02** at limit **
   2  Index         2.4723        7.0525        .50000       -.18600E-04
   3  Normalizat    1.1426        .25128E-01    .13967        .24100E-04
   4  Prefactor     .91100        .46214E-02    .28371E-01   -.35423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.4723
  Normalizat = 1.14259
  Prefactor  = 0.911002
 **********
 **   18 **HESSE 
 **********

 FCN=   11167.06     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      297 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6773.7        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4723        8.5479        .50000       -.53001    
   3  Normalizat    1.1426        .10883        .62035E-03   -.88396    
   4  Prefactor     .91100        .20046E-01    .12537E-03   -.95758    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20282e-09
Minuit parameter uncertainties:
  1  0.0109864
  2  46.955
  3  0.108847
  4  0.0200458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985967': 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) = 11167.0601825
delta logL = 5.67877577851e-07

Extracting fit parameters...

4FGL J2330.2+7759
   Spectrum: PowerLaw
674    Prefactor:  1.000e-04  1.099e-02  1.000e-04  1.000e+04 ( 1.000e-13)
675        Index:  2.472e+00  4.695e+01  0.000e+00  1.000e+01 (-1.000e+00)
676        Scale:  1.405e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.110e-01  2.005e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.143e+00  1.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.568 77.995

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/985967/cmap_HighResolution_433987201_434246401_4FGL_J2330.2+7759_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.22e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-29 22:05:31.929316', job_id='985967', GAL2='0.91', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632978331.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='751' AND source_name='4FGL J2330.2+7759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:05:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 985967: <4FGL_J2330.2+7759_daily_bin751> in cluster <slac> Done

Job <4FGL_J2330.2+7759_daily_bin751> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 21:50:24 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 21:50:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 21:50:25 2021
Terminated at Wed Sep 29 22:05:32 2021
Results reported at Wed Sep 29 22:05:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.2+7759_daily_bin751 352.568 77.9947 433987201 434246401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2330.2+7759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   891.00 sec.
    Max Memory :                                 1155 MB
    Average Memory :                             365.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            908 sec.

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

