/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7494
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2330.5+1102_daily_bin38
RA = 352.629, Dec = 11.0479
tmin = 249177601, tmax = 249436801
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='994465', job_status='RUN', time_executed='2021-09-29 22:10:53.989621', time_epoch_executed='1632978653.99' WHERE source_name='4FGL J2330.5+1102' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994465

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994465/ft1_4FGL_J2330.5+1102_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994465/ft2_4FGL_J2330.5+1102_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994465/ft1_4FGL_J2330.5+1102_daily_bin38.fits outfile=/scratch/kocevski/994465/ft1_filteredMKT_4FGL_J2330.5+1102_daily_bin38.fits ra=352.629 dec=11.0479 rad=12.0 tmin=249177601.0 tmax=249436801.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 1.43
user 1.27
sys 0.14

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994465/ft1_filtered_4FGL_J2330.5+1102_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/994465/ft2_4FGL_J2330.5+1102_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/994465/ltcube_249177601_249436801_4FGL_J2330.5+1102_daily_bin38.fits outfile=/scratch/kocevski/994465/expmap_249177601_249436801_4FGL_J2330.5+1102_daily_bin38.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/994465/ltcube_249177601_249436801_4FGL_J2330.5+1102_daily_bin38.fits
.....................!
real 189.61
user 185.26
sys 3.99

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/994465/ft1_filtered_4FGL_J2330.5+1102_daily_bin38.fits scfile=/scratch/kocevski/994465/ft2_4FGL_J2330.5+1102_daily_bin38.fits outfile=/scratch/kocevski/994465/cmap_249177601_249436801_4FGL_J2330.5+1102_daily_bin38.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994465/ft1_filtered_4FGL_J2330.5+1102_daily_bin38.fits scfile=/scratch/kocevski/994465/ft2_4FGL_J2330.5+1102_daily_bin38.fits outfile=/scratch/kocevski/994465/cmap_HighResolution_249177601_249436801_4FGL_J2330.5+1102_daily_bin38.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.984       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9735       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12983       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12562E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    29.864       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2894       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9928       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.394       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7250       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98838       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96643       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=   12917.04     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     1459 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.985        1.0075       -.41261E-07    .47076E-03
   2  Prefactor     .10002E-03    15.467       -.10455E-05** at limit **
   3  Prefactor     3.9734        .26645        .10922E-06    .16087E-02
   4  Prefactor     .10021E-03    377.28        .14669E-04** at limit **
   5  Prefactor     .10000E-03    2.3235       -.28083E-06** at limit **
   6  Prefactor     .10000E-03    3.2901        .82638E-06** at limit **
   7  Prefactor     .10000E-03    27.303        .91153E-05** at limit **
   8  Prefactor     .10000E-03    1.9682       -.38816E-06** at limit **
   9  Prefactor     3.0711        1.6416        .10351E-05    .73824E-03
  10  Prefactor     .10011E-03    8.7180       -.31229E-05** at limit **
  11  Prefactor     .10012E-03    8.8713        .18681E-05** at limit **
  12  norm          29.867        2.3135        .44770E-06    .89668E-02
  13  Prefactor     4.2858        4.7956        .30971E-05    .23127E-02
  14  Prefactor     4.9702        2.2280        .12308E-05   -.30967E-02
  15  norm          .10000E-03    3.9286       -.61482E-06** at limit **
  16  Prefactor     .10001E-03    10.288        .71696E-05** at limit **
  17  Prefactor     14.391        1.0885        .14507E-06   -.14789E-02
  18  Prefactor     4.7242        4.5160       -.92572E-06   -.84988E-03
  19  Normalizat    .98849        .18927       -.62686E-05   -.74765E-04
  20  Prefactor     .96641        .11505       -.73876E-06   -.95108E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9854
  Prefactor  = 0.000100016
  Prefactor  = 3.97343
  Prefactor  = 0.000100212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07106
  Prefactor  = 0.000100105
  Prefactor  = 0.000100117
  norm       = 29.8671
  Prefactor  = 4.28582
  Prefactor  = 4.97025
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 14.3913
  Prefactor  = 4.72415
  Normalizat = 0.988485
  Prefactor  = 0.966414
 **********
 **   18 **HESSE 
 **********

 FCN=   12917.04     FROM HESSE     STATUS=OK           339 CALLS     1798 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.985        20.418        .25044E-02   -1.4908    
   2  Prefactor     .10002E-03    16.426        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9734        .26787        .33075E-02   -1.5309    
   4  Prefactor     .10021E-03    11.574        .13565       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3086        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2771        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.519        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9500        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0711        11.987        .57819E-02   -1.5357    
  10  Prefactor     .10011E-03    12.024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10012E-03    13.759        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          29.867        13.860        .18329E-02   -1.4614    
  13  Prefactor     4.2858        8.7323        .48631E-02   -1.5294    
  14  Prefactor     4.9702        23.329        .44994E-02   -1.5262    
  15  norm          .10000E-03    3.9214        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    10.547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.391        13.756        .26393E-02   -1.4949    
  18  Prefactor     4.7242        4.5272        .46278E-02   -1.5273    
  19  Normalizat    .98849        .16467        .78613E-01   -.93417    
  20  Prefactor     .96641        .98432E-01    .45846E-01   -.93858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62381e-07
Minuit parameter uncertainties:
  1  20.4265
  2  0.00101265
  3  0.267873
  4  0.00313014
  5  5.96501e-07
  6  4.87491e-06
  7  8.06219e-05
  8  9.98615e-07
  9  11.9961
  10  0.00224948
  11  0.0025369
  12  13.8617
  13  8.7349
  14  21.5497
  15  3.3175e-06
  16  0.000627333
  17  13.7593
  18  4.52752
  19  0.164754
  20  0.0984506
Done.

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

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  4.286e+00  8.735e+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.664e-01  9.845e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  9.885e-01  1.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/994465/likelihoodResults_249177601_249436801_4FGL_J2330.5+1102_daily_bin38.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) = 12916.5453224
delta logL = 0.497789611347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12916.4825657
delta logL = 0.560546373626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88534E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.0880       1.0000          .0000       10.000    
     3 'Normalizat'    .93588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99216       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=   12916.48     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      329 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87686E-01    .71649        .62273E-02    .72219E-02
   2  Index         6.0941        2.3778        .20660        .19440E-03
   3  Normalizat    .93605        .28951E-01    .80461E-01    .55380E-04
   4  Prefactor     .99208        .18087E-01    .46169E-01    .35800E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0876862
  Index      = 6.09408
  Normalizat = 0.936054
  Prefactor  = 0.992081
 **********
 **   18 **HESSE 
 **********

 FCN=   12916.48     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      364 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87686E-01    3.1182        .28405E-03   -1.5649    
   2  Index         6.0941        7.9474        .85424E-02    .22060    
   3  Normalizat    .93605        .13090        .35618E-03   -.95205    
   4  Prefactor     .99208        .79253E-01    .21589E-03   -.92994    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.36565e-08
Minuit parameter uncertainties:
  1  1.04526
  2  7.35798
  3  0.130943
  4  0.0792625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994465': 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) = 12916.4825636
delta logL = 0.560548383948

Extracting fit parameters...

4FGL J2330.5+1102
   Spectrum: PowerLaw
427    Prefactor:  8.769e-02  1.045e+00  1.000e-04  1.000e+04 ( 1.000e-12)
428        Index:  6.094e+00  7.358e+00  0.000e+00  1.000e+01 (-1.000e+00)
429        Scale:  5.658e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.921e-01  7.926e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  9.361e-01  1.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 352.629 11.048
Photon Index (Free Index): 6.09 +/- 7.36
Photon Flux (Free Index): 6.72e-08 +/- 6.58e-08
Energy Flux (Free Index): 8.33e-06 +/- 1.02e-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/994465/cmap_HighResolution_249177601_249436801_4FGL_J2330.5+1102_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='8.33e-06', dlogl='5.61e-01', photon_flux2='6.72e-08', job_status='DONE', time_completed='2021-09-29 22:25:04.965672', photon_index_error2='7.36', photon_index2='6.09', ts='0.43', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.02e-05', EG='0.99', time_epoch_completed='1632979504.97', return_code='0', job_id='994465', GAL2='0.99', EG2='0.94', return_code2='102', photon_flux_error2='6.58e-08', ts2='1.68', photon_index='2.79' WHERE bin_id='38' AND source_name='4FGL J2330.5+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:25:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 994465: <4FGL_J2330.5+1102_daily_bin38> in cluster <slac> Done

Job <4FGL_J2330.5+1102_daily_bin38> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 22:10:34 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:10:36 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:36 2021
Terminated at Wed Sep 29 22:25:05 2021
Results reported at Wed Sep 29 22:25:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2330.5+1102_daily_bin38 352.629 11.0479 249177601 249436801 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 :                                   850.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

