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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1604
RA = 352.629, Dec = 11.0479
tmin = 655084801, tmax = 655344001
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='10788', job_status='RUN', time_executed='2021-10-08 00:29:20.577961', time_epoch_executed='1633678160.58' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10788/ft1_4FGL_J2330.5+1102_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10788/ft2_4FGL_J2330.5+1102_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10788/ft1_4FGL_J2330.5+1102_daily_bin1604.fits outfile=/scratch/kocevski/10788/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1604.fits ra=352.629 dec=11.0479 rad=12.0 tmin=655084801.0 tmax=655344001.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.93
user 2.73
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10788/ft1_filtered_4FGL_J2330.5+1102_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/10788/ft2_4FGL_J2330.5+1102_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/10788/ltcube_655084801_655344001_4FGL_J2330.5+1102_daily_bin1604.fits outfile=/scratch/kocevski/10788/expmap_655084801_655344001_4FGL_J2330.5+1102_daily_bin1604.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/10788/ltcube_655084801_655344001_4FGL_J2330.5+1102_daily_bin1604.fits
.....................!
real 190.25
user 185.36
sys 4.48

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/10788/ft1_filtered_4FGL_J2330.5+1102_daily_bin1604.fits scfile=/scratch/kocevski/10788/ft2_4FGL_J2330.5+1102_daily_bin1604.fits outfile=/scratch/kocevski/10788/cmap_655084801_655344001_4FGL_J2330.5+1102_daily_bin1604.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10788/ft1_filtered_4FGL_J2330.5+1102_daily_bin1604.fits scfile=/scratch/kocevski/10788/ft2_4FGL_J2330.5+1102_daily_bin1604.fits outfile=/scratch/kocevski/10788/cmap_HighResolution_655084801_655344001_4FGL_J2330.5+1102_daily_bin1604.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/10788/ft1_filtered_4FGL_J2330.5+1102_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/10788/ft2_4FGL_J2330.5+1102_daily_bin1604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10788/Model_4FGL_J2330.5+1102_daily_bin1604.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/10788/ft1_filtered_4FGL_J2330.5+1102_daily_bin1604.fits........................!
real 19.98
user 18.75
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10788/ft1_filtered_4FGL_J2330.5+1102_daily_bin1604.fits', '/scratch/kocevski/10788/ft2_4FGL_J2330.5+1102_daily_bin1604.fits', expMap='/scratch/kocevski/10788/expmap_655084801_655344001_4FGL_J2330.5+1102_daily_bin1604.fits', expCube='/scratch/kocevski/10788/ltcube_655084801_655344001_4FGL_J2330.5+1102_daily_bin1604.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10788/Model_4FGL_J2330.5+1102_daily_bin1604.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/10788/ft1_filtered_4FGL_J2330.5+1102_daily_bin1604.fits
Spacecraft file(s): /scratch/kocevski/10788/ft2_4FGL_J2330.5+1102_daily_bin1604.fits
Exposure map: /scratch/kocevski/10788/expmap_655084801_655344001_4FGL_J2330.5+1102_daily_bin1604.fits
Exposure cube: /scratch/kocevski/10788/ltcube_655084801_655344001_4FGL_J2330.5+1102_daily_bin1604.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10788/Model_4FGL_J2330.5+1102_daily_bin1604.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 548.929024319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.246       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2883       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .57159       1.0000         .10000E-03   10000.    
     4 'Prefactor '    249.10       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9759       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.655       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11636E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    105.93       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    284.45       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.8076       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .51772E-05   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=   548.8922     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     2314 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.284        216.56        .28671E-05   -.86524E-04
   2  Prefactor     5.3265        212.57        .57553E-06   -.57041E-04
   3  Prefactor     .57129        .53009       -.60693E-07   -.22059E-02
   4  Prefactor     249.10        237.66        .16448E-05   -.93357E-04
   5  Prefactor     .10000E-03    11.643        .76740E-07** at limit **
   6  Prefactor     .10000E-03    37.734        .27608E-06** at limit **
   7  Prefactor     .10000E-03    64.517       -.67026E-07** at limit **
   8  Prefactor     2.9634        121.68        .26577E-05   -.92154E-04
   9  Prefactor     42.747        99.902       -.14578E-05    .15548E-04
  10  Prefactor     .10000E-03    60.675        .24359E-06** at limit **
  11  Prefactor     .10009E-03    1574.4       -.11892E-04** at limit **
  12  norm          .10004E-03    202.41        .46684E-05** at limit **
  13  Prefactor     105.92        85.238        .13059E-06   -.59862E-04
  14  Prefactor     .10000E-03    133.51        .99734E-06** at limit **
  15  norm          .10000E-03    73.524       -.37785E-06** at limit **
  16  Prefactor     .10000E-03    165.53        .32625E-06** at limit **
  17  Prefactor     284.66        411.13       -.13873E-05   -.86496E-05
  18  Prefactor     .10000E-03    93.425       -.10096E-06** at limit **
  19  Normalizat    1.8084        .62986       -.20006E-04   -.10805E-03
  20  Prefactor     .30885E-09    .35831        .45093E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2838
  Prefactor  = 5.32646
  Prefactor  = 0.57129
  Prefactor  = 249.103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.96336
  Prefactor  = 42.7467
  Prefactor  = 0.0001
  Prefactor  = 0.000100093
  norm       = 0.00010004
  Prefactor  = 105.919
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 284.662
  Prefactor  = 0.0001
  Normalizat = 1.80843
  Prefactor  = 3.08846e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   548.8922     FROM HESSE     STATUS=OK           277 CALLS     2591 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.284        220.86        .79726E-04   -1.4702    
   2  Prefactor     5.3265        208.80        .17478E-03   -1.5246    
   3  Prefactor     .57129        .54500        .12498E-04   -1.5557    
   4  Prefactor     249.10        242.01        .12833E-03   -1.2538    
   5  Prefactor     .10000E-03    11.645        .78117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.753        .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    64.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9634        123.56        .23536E-03   -1.5364    
   9  Prefactor     42.747        100.09        .61381E-04   -1.4399    
  10  Prefactor     .10000E-03    60.682        .17848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10009E-03    1575.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10004E-03    202.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     105.92        85.407        .39072E-04   -1.3646    
  14  Prefactor     .10000E-03    133.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    73.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    165.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     284.66        411.08        .12031E-03   -1.2317    
  18  Prefactor     .10000E-03    93.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.8084        .66059        .27037E-03   -.69444    
  20  Prefactor     .30885E-09    .82075        .78223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59113e-09
Minuit parameter uncertainties:
  1  150.205
  2  66.9502
  3  0.545009
  4  242.998
  5  4.49533e-06
  6  1.38824e-05
  7  0.000149747
  8  38.3548
  9  100.49
  10  0.00021543
  11  0.0248463
  12  0.00568522
  13  85.5069
  14  8.65253e-05
  15  0.000245746
  16  0.000356241
  17  415.39
  18  3.49229e-05
  19  0.663897
  20  3.22949e-05
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.059e+02  8.551e+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:  3.088e-10  3.229e-05  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:  1.808e+00  6.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.39
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 7.43e-07 +/- 5.99e-07
Energy Flux (Fixed Index): 1.68e-04 +/- 1.35e-04

TS (Fixed Index): 3.39
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 2.15e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.70e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10788/likelihoodResults_655084801_655344001_4FGL_J2330.5+1102_daily_bin1604.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) = 548.740834689
delta logL = 0.151330935256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 548.727271602
delta logL = 0.164894022087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    117.25       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2818       1.0000          .0000       10.000    
     3 'Normalizat'    1.8478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .27567E-06   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=   548.7273     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     117.22        99.319       -.44779E-05    .36338E-04
   2  Index         2.2817        .87887       -.26266E-04    .28976E-04
   3  Normalizat    1.8476        .52814        .64029E-05    .11870E-03
   4  Prefactor     .68172E-10    .46084       -.74855E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 117.218
  Index      = 2.28167
  Normalizat = 1.84759
  Prefactor  = 6.81721e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   548.7273     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     117.22        98.983        .18579E-03   -1.3538    
   2  Index         2.2817        .86604        .44155E-02   -.57480    
   3  Normalizat    1.8476        .47527        .26891E-03   -.68428    
   4  Prefactor     .68172E-10    .58605        .86092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33151e-10
Minuit parameter uncertainties:
  1  99.1227
  2  0.872312
  3  0.476475
  4  1.27684e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10788': 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) = 548.727271184
delta logL = 0.164894439573

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.172e+02  9.912e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.282e+00  8.723e-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:  6.817e-11  1.277e-05  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:  1.848e+00  4.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.28 +/- 0.87
Photon Flux (Free Index): 4.77e-07 +/- 6.11e-07
Energy Flux (Free Index): 1.86e-04 +/- 1.75e-04

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.70e-01', comment='SUCCESS', photon_flux='7.43e-07', energy_flux2='1.86e-04', photon_flux_error='5.99e-07', dlogl='1.65e-01', energy_flux='1.68e-04', photon_flux2='4.77e-07', job_status='DONE', time_completed='2021-10-08 00:34:57.104012', photon_index_error2='0.87', photon_index2='2.28', ts='3.39', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='2.15e-06', energy_flux_error2='1.75e-04', EG='1.81', time_epoch_completed='1633678497.1', return_code='0', job_id='10788', GAL2='0.00', EG2='1.85', return_code2='0', energy_flux_error='1.35e-04', photon_flux_error2='6.11e-07', ts2='3.64', photon_index='2.79' WHERE bin_id='1604' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:34:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 10788: <4FGL_J2330.5+1102_daily_bin1604> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin1604> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Oct  8 00:25:27 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:25:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:25:40 2021
Terminated at Fri Oct  8 00:34:57 2021
Results reported at Fri Oct  8 00:34:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1604 352.629 11.0479 655084801 655344001 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 :                                   339.40 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             233.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            570 sec.

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

