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


Performing analysis on: 4FGL_J2330.5+1102_daily_bin1075
RA = 352.629, Dec = 11.0479
tmin = 517968001, tmax = 518227201
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='1184', job_status='RUN', time_executed='2021-09-29 22:37:46.117759', time_epoch_executed='1632980266.12' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1184

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1184/ft1_4FGL_J2330.5+1102_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1184/ft2_4FGL_J2330.5+1102_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1184/ft1_4FGL_J2330.5+1102_daily_bin1075.fits outfile=/scratch/kocevski/1184/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin1075.fits ra=352.629 dec=11.0479 rad=12.0 tmin=517968001.0 tmax=518227201.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.71
user 3.48
sys 0.22

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1184/ft1_filtered_4FGL_J2330.5+1102_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/1184/ft2_4FGL_J2330.5+1102_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/1184/ltcube_517968001_518227201_4FGL_J2330.5+1102_daily_bin1075.fits outfile=/scratch/kocevski/1184/expmap_517968001_518227201_4FGL_J2330.5+1102_daily_bin1075.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/1184/ltcube_517968001_518227201_4FGL_J2330.5+1102_daily_bin1075.fits
.....................!
real 191.97
user 186.12
sys 5.53

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/1184/ft1_filtered_4FGL_J2330.5+1102_daily_bin1075.fits scfile=/scratch/kocevski/1184/ft2_4FGL_J2330.5+1102_daily_bin1075.fits outfile=/scratch/kocevski/1184/cmap_517968001_518227201_4FGL_J2330.5+1102_daily_bin1075.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/1184/ft1_filtered_4FGL_J2330.5+1102_daily_bin1075.fits scfile=/scratch/kocevski/1184/ft2_4FGL_J2330.5+1102_daily_bin1075.fits outfile=/scratch/kocevski/1184/cmap_HighResolution_517968001_518227201_4FGL_J2330.5+1102_daily_bin1075.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.574       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0146       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3455       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8118       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    95.352       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18263E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.390       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3786       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3175       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4384       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77167       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=   7428.949     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2026 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.572        37.983       -.19154E-05    .31367E-04
   2  Prefactor     .10000E-03    41.759       -.81698E-05** at limit **
   3  Prefactor     1.0146        .20310        .94732E-08    .11241E-02
   4  Prefactor     .10000E-03    37.725        .82429E-05** at limit **
   5  Prefactor     .10000E-03    2.5969        .13480E-07** at limit **
   6  Prefactor     8.3454        9.7314       -.53571E-07   -.14133E-04
   7  Prefactor     .10000E-03    5.0474       -.22453E-07** at limit **
   8  Prefactor     3.8119        6.9762       -.44071E-06   -.51286E-04
   9  Prefactor     .10000E-03    5.5889        .16616E-06** at limit **
  10  Prefactor     .10000E-03    4.4086        .11023E-07** at limit **
  11  Prefactor     95.351        54.330       -.71610E-06    .77127E-05
  12  norm          2.4045        7.5557       -.38192E-05   -.24735E-03
  13  Prefactor     .10001E-03    3.8285        .92440E-06** at limit **
  14  Prefactor     14.389        18.853       -.61885E-06    .15647E-06
  15  norm          2.3793        4.2154        .10724E-05   -.78891E-03
  16  Prefactor     .10000E-03    22.729       -.10358E-06** at limit **
  17  Prefactor     .10000E-03    17.888       -.84156E-06** at limit **
  18  Prefactor     3.3178        5.7452       -.64062E-06   -.44866E-04
  19  Normalizat    1.4384        .20036        .88815E-06   -.11709E-03
  20  Prefactor     .77168        .11764        .16390E-07   -.34788E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5722
  Prefactor  = 0.0001
  Prefactor  = 1.01459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.3454
  Prefactor  = 0.0001
  Prefactor  = 3.81191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.3507
  norm       = 2.40446
  Prefactor  = 0.000100007
  Prefactor  = 14.3893
  norm       = 2.37931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31785
  Normalizat = 1.43837
  Prefactor  = 0.771676
 **********
 **   18 **HESSE 
 **********

 FCN=   7428.949     FROM HESSE     STATUS=OK           289 CALLS     2315 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.572        37.967        .73673E-04   -1.4620    
   2  Prefactor     .10000E-03    41.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0146        .20372        .16340E-04   -1.5507    
   4  Prefactor     .10000E-03    36.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6067        .13562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3454        9.7360        .13877E-03   -1.5130    
   7  Prefactor     .10000E-03    5.0561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8119        6.9809        .20674E-03   -1.5317    
   9  Prefactor     .10000E-03    5.6263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4110        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     95.351        54.313        .41161E-04   -1.3752    
  12  norm          2.4045        7.4897        .26507E-03   -1.5398    
  13  Prefactor     .10001E-03    8.8855        .31111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.389        18.801        .10559E-03   -1.4949    
  15  norm          2.3793        10.230        .13281E-02   -1.5399    
  16  Prefactor     .10000E-03    22.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3178        5.7334        .22225E-03   -1.5344    
  19  Normalizat    1.4384        .23112        .27744E-03   -.79525    
  20  Prefactor     .77168        .13620        .22257E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43753e-09
Minuit parameter uncertainties:
  1  37.9981
  2  0.000245758
  3  0.203719
  4  0.000247167
  5  4.71974e-07
  6  9.73789
  7  8.18037e-07
  8  6.98238
  9  3.00241e-05
  10  2.92082e-08
  11  54.341
  12  7.49263
  13  0.000480911
  14  18.8085
  15  9.86967
  16  1.2355e-06
  17  9.77815e-06
  18  5.73439
  19  0.23129
  20  0.136263
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.000e-04  4.809e-04  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:  7.717e-01  1.363e-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.438e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.629 11.048
Photon Flux Upper Limit: 8.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1184/likelihoodResults_517968001_518227201_4FGL_J2330.5+1102_daily_bin1075.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) = 7428.94937014
delta logL = -0.00053529899651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7428.94883539
delta logL = -5.4162046581e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11899E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7318       1.0000          .0000       10.000    
     3 'Normalizat'    1.4385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77160       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7428.949     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      275 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16329E-03    4.1760        .60631E-01** at limit **
   2  Index         2.1082        8.3075        .50000        .28102E-05
   3  Normalizat    1.4384        .44919E-02    .27744E-03   -.51139E-04
   4  Prefactor     .77168        .27505E-02    .22257E-03   -.38310E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000163291
  Index      = 2.10817
  Normalizat = 1.43837
  Prefactor  = 0.771675
 **********
 **   18 **HESSE 
 **********

 FCN=   7428.949     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      314 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16329E-03    3.6824        .63970E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1082        7.2986        .50000       -.61672    
   3  Normalizat    1.4384        .43529E-02    .11098E-04   -.79525    
   4  Prefactor     .77168        .26654E-02    .89027E-05   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37971e-08
Minuit parameter uncertainties:
  1  0.0305349
  2  62.9752
  3  0.00435294
  4  0.00266538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1184': 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) = 7428.9488301
delta logL = 4.74248008686e-06

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  1.633e-04  3.053e-02  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  2.108e+00  6.298e+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:  7.717e-01  2.665e-03  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.438e+00  4.353e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.629 11.048

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/1184/cmap_HighResolution_517968001_518227201_4FGL_J2330.5+1102_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-03', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-09-29 22:49:17.195955', job_id='1184', GAL2='0.77', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1632980957.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='4.74e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1075' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:49:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 1184: <4FGL_J2330.5+1102_daily_bin1075> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin1075 352.629 11.0479 517968001 518227201 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 :                                   650.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

