/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 135 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2330.5+1102_daily_bin373
RA = 352.629, Dec = 11.0479
tmin = 336009601, tmax = 336268801
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='997199', job_status='RUN', time_executed='2021-09-29 22:22:39.168928', time_epoch_executed='1632979359.17' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997199

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997199/ft1_4FGL_J2330.5+1102_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997199/ft2_4FGL_J2330.5+1102_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997199/ft1_4FGL_J2330.5+1102_daily_bin373.fits outfile=/scratch/kocevski/997199/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin373.fits ra=352.629 dec=11.0479 rad=12.0 tmin=336009601.0 tmax=336268801.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.30
user 3.10
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997199/ft1_filtered_4FGL_J2330.5+1102_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/997199/ft2_4FGL_J2330.5+1102_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/997199/ltcube_336009601_336268801_4FGL_J2330.5+1102_daily_bin373.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/997199/ft2_4FGL_J2330.5+1102_daily_bin373.fits
.....................!
real 11.94
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997199/ft1_filtered_4FGL_J2330.5+1102_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/997199/ft2_4FGL_J2330.5+1102_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/997199/ltcube_336009601_336268801_4FGL_J2330.5+1102_daily_bin373.fits outfile=/scratch/kocevski/997199/expmap_336009601_336268801_4FGL_J2330.5+1102_daily_bin373.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/997199/ltcube_336009601_336268801_4FGL_J2330.5+1102_daily_bin373.fits
.....................!
real 190.41
user 185.26
sys 4.83

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/997199/ft1_filtered_4FGL_J2330.5+1102_daily_bin373.fits scfile=/scratch/kocevski/997199/ft2_4FGL_J2330.5+1102_daily_bin373.fits outfile=/scratch/kocevski/997199/cmap_336009601_336268801_4FGL_J2330.5+1102_daily_bin373.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/997199/ft1_filtered_4FGL_J2330.5+1102_daily_bin373.fits scfile=/scratch/kocevski/997199/ft2_4FGL_J2330.5+1102_daily_bin373.fits outfile=/scratch/kocevski/997199/cmap_HighResolution_336009601_336268801_4FGL_J2330.5+1102_daily_bin373.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.531       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18691       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1608       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1431       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.769       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.292       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1145       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16969       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.574       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5884       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0353       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97028       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6887.212     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     1718 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    16.730       -.14717E-06** at limit **
   2  Prefactor     14.540        9.3195        .10865E-05   -.16862E-02
   3  Prefactor     .18684        .13249        .13596E-06    .24322E-02
   4  Prefactor     .10080E-03    14.952        .26403E-05** at limit **
   5  Prefactor     .10000E-03    4.0538       -.13343E-06** at limit **
   6  Prefactor     2.1482        9.0831       -.22995E-05   -.49746E-03
   7  Prefactor     5.1419        1.9472       -.36340E-06    .14934E-02
   8  Prefactor     .10000E-03    2.8627       -.22135E-06** at limit **
   9  Prefactor     .10000E-03    2.7649       -.48329E-06** at limit **
  10  Prefactor     16.755        11.093       -.12325E-05    .28113E-02
  11  Prefactor     .10101E-03    16.413       -.75244E-06** at limit **
  12  norm          .10000E-03    5.6399       -.64772E-07** at limit **
  13  Prefactor     12.287        1.3395       -.82198E-07    .10896E-02
  14  Prefactor     .10227E-03    10.827        .12979E-05** at limit **
  15  norm          3.1124        1.1284       -.10195E-06    .25950E-04
  16  Prefactor     .10167E-03    1932.0       -.76981E-04** at limit **
  17  Prefactor     22.611        21.053        .16770E-05    .36420E-02
  18  Prefactor     6.5822        6.7711        .58847E-07   -.14183E-04
  19  Normalizat    1.0355        .23747       -.15923E-05   -.25414E-03
  20  Prefactor     .97037        .14365       -.43095E-06   -.37994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100168
  Prefactor  = 14.5401
  Prefactor  = 0.186838
  Prefactor  = 0.000100802
  Prefactor  = 0.0001
  Prefactor  = 2.1482
  Prefactor  = 5.14193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7551
  Prefactor  = 0.000101007
  norm       = 0.0001
  Prefactor  = 12.2866
  Prefactor  = 0.000102272
  norm       = 3.11235
  Prefactor  = 0.000101669
  Prefactor  = 22.6112
  Prefactor  = 6.58217
  Normalizat = 1.03553
  Prefactor  = 0.970369
 **********
 **   18 **HESSE 
 **********

 FCN=   6887.212     FROM HESSE     STATUS=OK           339 CALLS     2057 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    17.503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.540        17.098        .26268E-02   -1.4945    
   3  Prefactor     .18684        .13898        .55275E-02   -1.5622    
   4  Prefactor     .10080E-03    18.147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0308        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1482        30.844        .70055E-02   -1.5415    
   7  Prefactor     5.1419        17.547        .44318E-02   -1.5254    
   8  Prefactor     .10000E-03    2.8482        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7630        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.755        17.129        .24451E-02   -1.4889    
  11  Prefactor     .10101E-03    20.451        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.6116        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.287        9.4518        .28563E-02   -1.5007    
  14  Prefactor     .10227E-03    19.690        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1124        9.9052        .57439E-02   -1.5355    
  16  Prefactor     .10167E-03    45.375        .13199       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.611        22.477        .21076E-02   -1.4757    
  18  Prefactor     6.5822        6.8140        .39086E-02   -1.5195    
  19  Normalizat    1.0355        .21174        .70787E-01   -.91850    
  20  Prefactor     .97037        .12276        .45895E-01   -.93724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93158e-07
Minuit parameter uncertainties:
  1  0.00343146
  2  17.1033
  3  0.138985
  4  0.00763263
  5  5.07094e-06
  6  16.2897
  7  17.5645
  8  7.45493e-06
  9  1.60394e-05
  10  17.1335
  11  0.00908148
  12  3.81897e-06
  13  9.45296
  14  0.0133821
  15  9.91042
  16  0.0174168
  17  22.4853
  18  6.81479
  19  0.211913
  20  0.122794
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.229e+01  9.453e+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:  9.704e-01  1.228e-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:  1.036e+00  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 352.629 11.048
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 8.62e-08 +/- 6.62e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/997199/likelihoodResults_336009601_336268801_4FGL_J2330.5+1102_daily_bin373.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) = 6887.20833596
delta logL = 0.00362868743196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6887.205927
delta logL = 0.00603764095285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.591       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8724       1.0000          .0000       10.000    
     3 'Normalizat'    1.0299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97302       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=   6887.206     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.578        173.43        .29417E-02    .25472E-03
   2  Index         2.8737        6.4212        .22416        .11126E-03
   3  Normalizat    1.0300        .71177E-01    .70955E-01    .41373E-04
   4  Prefactor     .97296        .43154E-01    .45929E-01    .56340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5779
  Index      = 2.87372
  Normalizat = 1.02997
  Prefactor  = 0.97296
 **********
 **   18 **HESSE 
 **********

 FCN=   6887.206     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.578        12.090        .11767E-03   -1.5027    
   2  Index         2.8737        .86033        .76514E-02   -.43924    
   3  Normalizat    1.0300        .24427        .31395E-03   -.92033    
   4  Prefactor     .97296        .14598        .19680E-03   -.93636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04796e-11
Minuit parameter uncertainties:
  1  12.0924
  2  0.865595
  3  0.244541
  4  0.146037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997199': 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) = 6887.20592544
delta logL = 0.00603920633421

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.158e+01  1.209e+01  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.874e+00  8.656e-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:  9.730e-01  1.460e-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:  1.030e+00  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 352.629 11.048
Photon Index (Free Index): 2.87 +/- 0.87
Photon Flux (Free Index): 9.00e-08 +/- 7.44e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.51e-05

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/997199/cmap_HighResolution_336009601_336268801_4FGL_J2330.5+1102_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', comment='SUCCESS', photon_flux='8.62e-08', energy_flux2='1.92e-05', photon_flux_error='6.62e-08', dlogl='6.04e-03', energy_flux='1.95e-05', photon_flux2='9.00e-08', job_status='DONE', time_completed='2021-09-29 22:32:22.033739', photon_index_error2='0.87', photon_index2='2.87', ts='2.24', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='2.13e-07', energy_flux_error2='1.51e-05', EG='1.04', time_epoch_completed='1632979942.03', return_code='0', job_id='997199', GAL2='0.97', EG2='1.03', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='7.44e-08', ts2='2.26', photon_index='2.79' WHERE bin_id='373' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:32:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 997199: <4FGL_J2330.5+1102_daily_bin373> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin373> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 22:20:13 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:20:15 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:20:15 2021
Terminated at Wed Sep 29 22:32:22 2021
Results reported at Wed Sep 29 22:32:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin373 352.629 11.0479 336009601 336268801 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 :                                   581.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

