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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1160
RA = 352.629, Dec = 11.0479
tmin = 540000001, tmax = 540259201
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='1309', job_status='RUN', time_executed='2021-09-29 22:35:46.173233', time_epoch_executed='1632980146.17' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1309/ft1_4FGL_J2330.5+1102_daily_bin1160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1309/ft2_4FGL_J2330.5+1102_daily_bin1160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1309/ft1_4FGL_J2330.5+1102_daily_bin1160.fits outfile=/scratch/kocevski/1309/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1160.fits ra=352.629 dec=11.0479 rad=12.0 tmin=540000001.0 tmax=540259201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.58
user 3.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1309/ft1_filtered_4FGL_J2330.5+1102_daily_bin1160.fits" evtable="EVENTS" scfile=/scratch/kocevski/1309/ft2_4FGL_J2330.5+1102_daily_bin1160.fits sctable="SC_DATA" outfile=/scratch/kocevski/1309/ltcube_540000001_540259201_4FGL_J2330.5+1102_daily_bin1160.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/1309/ft2_4FGL_J2330.5+1102_daily_bin1160.fits
.....................!
real 11.89
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1309/ft1_filtered_4FGL_J2330.5+1102_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/1309/ft2_4FGL_J2330.5+1102_daily_bin1160.fits sctable="SC_DATA" expcube=/scratch/kocevski/1309/ltcube_540000001_540259201_4FGL_J2330.5+1102_daily_bin1160.fits outfile=/scratch/kocevski/1309/expmap_540000001_540259201_4FGL_J2330.5+1102_daily_bin1160.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/1309/ltcube_540000001_540259201_4FGL_J2330.5+1102_daily_bin1160.fits
.....................!
real 191.21
user 185.31
sys 5.50

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/1309/ft1_filtered_4FGL_J2330.5+1102_daily_bin1160.fits scfile=/scratch/kocevski/1309/ft2_4FGL_J2330.5+1102_daily_bin1160.fits outfile=/scratch/kocevski/1309/cmap_540000001_540259201_4FGL_J2330.5+1102_daily_bin1160.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1309/ft1_filtered_4FGL_J2330.5+1102_daily_bin1160.fits scfile=/scratch/kocevski/1309/ft2_4FGL_J2330.5+1102_daily_bin1160.fits outfile=/scratch/kocevski/1309/cmap_HighResolution_540000001_540259201_4FGL_J2330.5+1102_daily_bin1160.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.847       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6011       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5580       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.221       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.680       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1636       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1351       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8765       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6787       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3394       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.659       1.0000         .10000E-03   10000.    
    15 'norm      '    21.099       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5787       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92116       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1289       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=   8607.882     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     2056 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.848        39.235       -.39135E-07    .22296E-05
   2  Prefactor     4.6021        18.050        .63066E-07    .28806E-05
   3  Prefactor     4.5581        .38428       -.19903E-08    .12621E-04
   4  Prefactor     12.126        46.765       -.12371E-05    .16676E-04
   5  Prefactor     3.7767        7.7769        .76759E-06    .21842E-04
   6  Prefactor     12.222        18.352        .66485E-07    .26962E-04
   7  Prefactor     31.683        24.569       -.35148E-07    .21670E-04
   8  Prefactor     9.1649        8.8849        .32390E-06   -.28617E-04
   9  Prefactor     5.1367        12.826        .10226E-05    .25210E-04
  10  Prefactor     .10000E-03    12.104        .39219E-07** at limit **
  11  Prefactor     2.8756        97.534        .68540E-06   -.38538E-06
  12  norm          4.6754        20.381       -.60221E-05    .67807E-05
  13  Prefactor     2.3445        25.003        .59952E-05    .12225E-04
  14  Prefactor     43.638        35.884        .18477E-05   -.17047E-04
  15  norm          21.101        18.930       -.34344E-06    .16497E-04
  16  Prefactor     .10000E-03    43.884        .77229E-07** at limit **
  17  Prefactor     1.5792        16.896        .38646E-05    .69602E-05
  18  Prefactor     .10000E-03    4.0016        .15492E-07** at limit **
  19  Normalizat    .92091        .24815       -.73566E-06    .21106E-04
  20  Prefactor     1.1290        .14240       -.19356E-06    .88316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8475
  Prefactor  = 4.6021
  Prefactor  = 4.55806
  Prefactor  = 12.126
  Prefactor  = 3.77671
  Prefactor  = 12.2221
  Prefactor  = 31.6828
  Prefactor  = 9.16487
  Prefactor  = 5.13671
  Prefactor  = 0.0001
  Prefactor  = 2.87561
  norm       = 4.67536
  Prefactor  = 2.34449
  Prefactor  = 43.6382
  norm       = 21.101
  Prefactor  = 0.0001
  Prefactor  = 1.57921
  Prefactor  = 0.0001
  Normalizat = 0.920912
  Prefactor  = 1.12899
 **********
 **   18 **HESSE 
 **********

 FCN=   8607.882     FROM HESSE     STATUS=OK           303 CALLS     2359 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.848        39.283        .83801E-04   -1.4752    
   2  Prefactor     4.6021        18.048        .18765E-03   -1.5279    
   3  Prefactor     4.5581        .38518        .15674E-04   -1.5281    
   4  Prefactor     12.126        46.865        .11509E-03   -1.5011    
   5  Prefactor     3.7767        7.7717        .10384E-02   -1.5319    
   6  Prefactor     12.222        18.327        .11459E-03   -1.5009    
   7  Prefactor     31.683        24.568        .71189E-04   -1.4582    
   8  Prefactor     9.1649        8.8919        .13240E-03   -1.5102    
   9  Prefactor     5.1367        12.727        .17741E-03   -1.5255    
  10  Prefactor     .10000E-03    12.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8756        97.825        .23965E-03   -1.5369    
  12  norm          4.6754        20.695        .18605E-03   -1.5275    
  13  Prefactor     2.3445        25.576        .26806E-03   -1.5402    
  14  Prefactor     43.638        35.920        .60674E-04   -1.4386    
  15  norm          21.101        18.931        .87200E-04   -1.4789    
  16  Prefactor     .10000E-03    44.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5792        16.891        .16904E-02   -1.5457    
  18  Prefactor     .10000E-03    4.0225        .18120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92091        .28242        .40345E-03   -.95729    
  20  Prefactor     1.1290        .16282        .22750E-03   -.88545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5859e-11
Minuit parameter uncertainties:
  1  39.3276
  2  18.0695
  3  0.385177
  4  47.0082
  5  7.77374
  6  18.335
  7  24.576
  8  8.89319
  9  12.7333
  10  3.74672e-05
  11  33.6037
  12  19.6843
  13  15.4952
  14  35.9373
  15  18.9368
  16  8.71508e-05
  17  10.3329
  18  5.58108e-07
  19  0.282881
  20  0.16289
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  2.344e+00  1.550e+01  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.129e+00  1.629e-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:  9.209e-01  2.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/1309/likelihoodResults_540000001_540259201_4FGL_J2330.5+1102_daily_bin1160.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) = 8607.18548432
delta logL = 0.696812133519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8607.14067637
delta logL = 0.741620075632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89530E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.8284       1.0000          .0000       10.000    
     3 'Normalizat'    .80782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1792       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8607.141     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      385 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88836E-02    .87205E-01    .16182E-02    .17860E-01
   2  Index         7.8350        2.7133        .24887        .14927E-03
   3  Normalizat    .80801        .44617E-01    .96542E-01    .11367E-03
   4  Prefactor     1.1791        .27708E-01    .50508E-01    .11889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00888355
  Index      = 7.83502
  Normalizat = 0.80801
  Prefactor  = 1.1791
 **********
 **   18 **HESSE 
 **********

 FCN=   8607.141     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      418 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88836E-02    .30876        .73098E-04   -1.5689    
   2  Index         7.8350        8.6950        .89023E-02    .60286    
   3  Normalizat    .80801        .18864        .42781E-03   -.99772    
   4  Prefactor     1.1791        .11432        .22328E-03   -.86977    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.43346e-10
Minuit parameter uncertainties:
  1  0.104155
  2  7.20168
  3  0.188789
  4  0.114345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1309': 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) = 8607.14066845
delta logL = 0.741627999581

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  8.884e-03  1.042e-01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  7.835e+00  7.202e+00  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.179e+00  1.143e-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.080e-01  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 352.629 11.048
Photon Index (Free Index): 7.84 +/- 7.20
Photon Flux (Free Index): 1.04e-07 +/- 8.64e-08
Energy Flux (Free Index): 1.22e-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/1309/cmap_HighResolution_540000001_540259201_4FGL_J2330.5+1102_daily_bin1160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='7.42e-01', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-29 22:47:59.243648', photon_index_error2='7.20', photon_index2='7.84', ts='0.05', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='1.10e-05', EG='0.92', time_epoch_completed='1632980879.24', return_code='0', job_id='1309', GAL2='1.18', EG2='0.81', return_code2='102', photon_flux_error2='8.64e-08', ts2='1.75', photon_index='2.79' WHERE bin_id='1160' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:47:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 1309: <4FGL_J2330.5+1102_daily_bin1160> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1160> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:35:28 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:35:30 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:35:30 2021
Terminated at Wed Sep 29 22:48:00 2021
Results reported at Wed Sep 29 22:48:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1160 352.629 11.0479 540000001 540259201 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 :                                   725.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            752 sec.

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

