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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin48
RA = 352.629, Dec = 11.0479
tmin = 251769601, tmax = 252028801
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='994480', job_status='RUN', time_executed='2021-09-29 22:12:59.198105', time_epoch_executed='1632978779.2' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994480

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994480/ft1_4FGL_J2330.5+1102_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994480/ft2_4FGL_J2330.5+1102_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994480/ft1_4FGL_J2330.5+1102_daily_bin48.fits outfile=/scratch/kocevski/994480/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin48.fits ra=352.629 dec=11.0479 rad=12.0 tmin=251769601.0 tmax=252028801.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 2.13
user 1.94
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994480/ft1_filtered_4FGL_J2330.5+1102_daily_bin48.fits" evtable="EVENTS" scfile=/scratch/kocevski/994480/ft2_4FGL_J2330.5+1102_daily_bin48.fits sctable="SC_DATA" outfile=/scratch/kocevski/994480/ltcube_251769601_252028801_4FGL_J2330.5+1102_daily_bin48.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/994480/ft2_4FGL_J2330.5+1102_daily_bin48.fits
.....................!
real 12.57
user 12.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994480/ft1_filtered_4FGL_J2330.5+1102_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/994480/ft2_4FGL_J2330.5+1102_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/994480/ltcube_251769601_252028801_4FGL_J2330.5+1102_daily_bin48.fits outfile=/scratch/kocevski/994480/expmap_251769601_252028801_4FGL_J2330.5+1102_daily_bin48.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/994480/ltcube_251769601_252028801_4FGL_J2330.5+1102_daily_bin48.fits
.....................!
real 193.20
user 187.45
sys 5.44

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/994480/ft1_filtered_4FGL_J2330.5+1102_daily_bin48.fits scfile=/scratch/kocevski/994480/ft2_4FGL_J2330.5+1102_daily_bin48.fits outfile=/scratch/kocevski/994480/cmap_251769601_252028801_4FGL_J2330.5+1102_daily_bin48.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.629 yref=11.0479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994480/ft1_filtered_4FGL_J2330.5+1102_daily_bin48.fits scfile=/scratch/kocevski/994480/ft2_4FGL_J2330.5+1102_daily_bin48.fits outfile=/scratch/kocevski/994480/cmap_HighResolution_251769601_252028801_4FGL_J2330.5+1102_daily_bin48.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.465       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.275       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4950       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.438       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2731       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.578       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.633       1.0000         .10000E-03   10000.    
    15 'norm      '    14.485       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.639       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .43867E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1244       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .76874       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0326       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=   6768.999     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     2014 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.465        24.988        .24301E-06   -.13896E-06
   2  Prefactor     21.277        22.598        .24087E-06    .23859E-05
   3  Prefactor     1.4950        .23832       -.10328E-08   -.26736E-03
   4  Prefactor     46.448        33.392        .20986E-06    .19520E-04
   5  Prefactor     .10000E-03    5.0974        .23684E-06** at limit **
   6  Prefactor     .10000E-03    7.0182        .23983E-06** at limit **
   7  Prefactor     .10000E-03    7.1462        .11173E-06** at limit **
   8  Prefactor     8.2782        7.2645        .13201E-06   -.14137E-04
   9  Prefactor     .10000E-03    8.3772       -.49893E-07** at limit **
  10  Prefactor     .10000E-03    10.959        .10820E-06** at limit **
  11  Prefactor     .10000E-03    29.941       -.26372E-06** at limit **
  12  norm          17.581        9.4950       -.55742E-07    .25310E-04
  13  Prefactor     11.267        8.0880        .11966E-05    .74506E-04
  14  Prefactor     33.622        23.305       -.56219E-06   -.10008E-04
  15  norm          14.488        15.841        .18794E-07   -.30371E-05
  16  Prefactor     11.596        34.513       -.21461E-05   -.26062E-04
  17  Prefactor     .10000E-03    78.826       -.92476E-05** at limit **
  18  Prefactor     3.1248        3.1498       -.66930E-07   -.58191E-05
  19  Normalizat    .76857        .20888        .93584E-06   -.28899E-05
  20  Prefactor     1.0326        .13004       -.13104E-05    .86120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4648
  Prefactor  = 21.2773
  Prefactor  = 1.49501
  Prefactor  = 46.4481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.27819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5809
  Prefactor  = 11.2672
  Prefactor  = 33.6223
  norm       = 14.4876
  Prefactor  = 11.5964
  Prefactor  = 0.0001
  Prefactor  = 3.12478
  Normalizat = 0.76857
  Prefactor  = 1.03262
 **********
 **   18 **HESSE 
 **********

 FCN=   6768.999     FROM HESSE     STATUS=OK           295 CALLS     2309 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.465        24.997        .12386E-03   -1.5061    
   2  Prefactor     21.277        22.636        .86839E-04   -1.4785    
   3  Prefactor     1.4950        .23902        .15148E-04   -1.5463    
   4  Prefactor     46.448        33.415        .58838E-04   -1.4344    
   5  Prefactor     .10000E-03    5.1485        .18138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.2782        7.2607        .13938E-03   -1.5132    
   9  Prefactor     .10000E-03    8.4883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.581        9.4870        .47764E-03   -1.4869    
  13  Prefactor     11.267        8.1964        .59679E-03   -1.5037    
  14  Prefactor     33.622        23.281        .69096E-04   -1.4548    
  15  norm          14.488        15.843        .10524E-03   -1.4947    
  16  Prefactor     11.596        34.829        .11742E-03   -1.5027    
  17  Prefactor     .10000E-03    78.725        .42441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1248        3.1584        .14294E-03   -1.5354    
  19  Normalizat    .76857        .23580        .34872E-03   -1.0125    
  20  Prefactor     1.0326        .14604        .19526E-03   -.91650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06086e-11
Minuit parameter uncertainties:
  1  25.0222
  2  22.6453
  3  0.239021
  4  33.4289
  5  4.29677e-06
  6  6.39361e-07
  7  5.69149e-06
  8  7.26148
  9  1.29151e-05
  10  5.40382e-06
  11  3.93443e-05
  12  9.48781
  13  8.19717
  14  23.2877
  15  15.8471
  16  34.8902
  17  1.27088e-05
  18  3.15861
  19  0.236108
  20  0.146093
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.127e+01  8.197e+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.033e+00  1.461e-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:  7.686e-01  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.47
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 7.90e-08 +/- 5.74e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/994480/likelihoodResults_251769601_252028801_4FGL_J2330.5+1102_daily_bin48.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) = 6768.74407143
delta logL = 0.255147741648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6768.67031742
delta logL = 0.32890175222

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.060       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2796       1.0000          .0000       10.000    
     3 'Normalizat'    .79474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0197       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=   6768.670     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.055        311.45        .25802E-02    .31764E-04
   2  Index         2.2789        5.9447        .23928        .64679E-05
   3  Normalizat    .79477        .13658        .77602E-01    .28173E-04
   4  Prefactor     1.0197        .81275E-01    .42167E-01    .34658E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0552
  Index      = 2.27892
  Normalizat = 0.794774
  Prefactor  = 1.01973
 **********
 **   18 **HESSE 
 **********

 FCN=   6768.670     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .40E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.055        10.417        .10321E-03   -1.4932    
   2  Index         2.2789        .56569        .82226E-02   -.57546    
   3  Normalizat    .79477        .22758        .34353E-03   -1.0026    
   4  Prefactor     1.0197        .14537        .19629E-03   -.92075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02664e-14
Minuit parameter uncertainties:
  1  10.4187
  2  0.567418
  3  0.227854
  4  0.14543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994480': 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) = 6768.67031643
delta logL = 0.328902741911

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.506e+01  1.042e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.279e+00  5.674e-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.020e+00  1.454e-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:  7.948e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.28 +/- 0.57
Photon Flux (Free Index): 6.11e-08 +/- 5.00e-08
Energy Flux (Free Index): 2.39e-05 +/- 2.00e-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/994480/cmap_HighResolution_251769601_252028801_4FGL_J2330.5+1102_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', comment='SUCCESS', photon_flux='7.90e-08', energy_flux2='2.39e-05', photon_flux_error='5.74e-08', dlogl='3.29e-01', energy_flux='1.79e-05', photon_flux2='6.11e-08', job_status='DONE', time_completed='2021-09-29 22:23:06.131590', photon_index_error2='0.57', photon_index2='2.28', ts='3.47', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='2.00e-05', EG='0.77', time_epoch_completed='1632979386.13', return_code='0', job_id='994480', GAL2='1.02', EG2='0.79', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='5.00e-08', ts2='4.13', photon_index='2.79' WHERE bin_id='48' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:23:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 994480: <4FGL_J2330.5+1102_daily_bin48> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin48> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 22:10:35 2021
Job was executed on host(s) <bullet0172>, 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:23:06 2021
Results reported at Wed Sep 29 22:23:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin48 352.629 11.0479 251769601 252028801 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 :                                   606.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            751 sec.

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

