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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin352
RA = 352.839, Dec = -15.9777
tmin = 330566401, tmax = 330825601
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='10830', job_status='RUN', time_executed='2021-09-29 23:05:55.381941', time_epoch_executed='1632981955.38' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10830/ft1_4FGL_J2331.3-1558_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10830/ft2_4FGL_J2331.3-1558_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10830/ft1_4FGL_J2331.3-1558_daily_bin352.fits outfile=/scratch/kocevski/10830/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin352.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=330566401.0 tmax=330825601.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 4.04
user 3.82
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10830/ft2_4FGL_J2331.3-1558_daily_bin352.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10830/ft2_4FGL_J2331.3-1558_daily_bin352.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/10830/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin352.fits evtable="EVENTS" outfile="/scratch/kocevski/10830/ft1_filtered_4FGL_J2331.3-1558_daily_bin352.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10830/ft1_filtered_4FGL_J2331.3-1558_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/10830/ft2_4FGL_J2331.3-1558_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/10830/ltcube_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.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/10830/ft2_4FGL_J2331.3-1558_daily_bin352.fits
.....................!
real 11.56
user 11.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10830/ft1_filtered_4FGL_J2331.3-1558_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/10830/ft2_4FGL_J2331.3-1558_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/10830/ltcube_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.fits outfile=/scratch/kocevski/10830/expmap_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.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/10830/ltcube_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.fits
.....................!
real 190.08
user 184.98
sys 4.80

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2331.3-1558 @ 352.839 -15.9777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10830/ft1_filtered_4FGL_J2331.3-1558_daily_bin352.fits scfile=/scratch/kocevski/10830/ft2_4FGL_J2331.3-1558_daily_bin352.fits outfile=/scratch/kocevski/10830/cmap_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.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.839 yref=-15.9777 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10830/ft1_filtered_4FGL_J2331.3-1558_daily_bin352.fits scfile=/scratch/kocevski/10830/ft2_4FGL_J2331.3-1558_daily_bin352.fits outfile=/scratch/kocevski/10830/cmap_HighResolution_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.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.839 yref=-15.9777 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10830/ft1_filtered_4FGL_J2331.3-1558_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/10830/ft2_4FGL_J2331.3-1558_daily_bin352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10830/Model_4FGL_J2331.3-1558_daily_bin352.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/10830/ft1_filtered_4FGL_J2331.3-1558_daily_bin352.fits.....................!
real 35.63
user 34.30
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10830/ft1_filtered_4FGL_J2331.3-1558_daily_bin352.fits', '/scratch/kocevski/10830/ft2_4FGL_J2331.3-1558_daily_bin352.fits', expMap='/scratch/kocevski/10830/expmap_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.fits', expCube='/scratch/kocevski/10830/ltcube_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10830/Model_4FGL_J2331.3-1558_daily_bin352.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.3-1558'

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  2.463e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10830/ft1_filtered_4FGL_J2331.3-1558_daily_bin352.fits
Spacecraft file(s): /scratch/kocevski/10830/ft2_4FGL_J2331.3-1558_daily_bin352.fits
Exposure map: /scratch/kocevski/10830/expmap_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.fits
Exposure cube: /scratch/kocevski/10830/ltcube_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10830/Model_4FGL_J2331.3-1558_daily_bin352.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) = 3681.42185214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42478E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10423E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.733       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.498       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.311       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11618E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.9211       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.178       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5735       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.051       1.0000         .10000E-03   10000.    
    18 'norm      '    6.8239       1.0000         .10000E-03   10000.    
    19 'norm      '    5.3805       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84247       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .56265       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3681.401     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2362 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6566       -.85491E-07** at limit **
   2  norm          .10000E-03    12.361       -.26328E-07** at limit **
   3  Prefactor     .10249E-03    11.438        .27031E-05** at limit **
   4  norm          .10000E-03    .62966        .74737E-06** at limit **
   5  Prefactor     41.802        27.397       -.37532E-05   -.54529E-03
   6  Prefactor     14.498        10.862       -.15348E-06   -.18034E-03
   7  Prefactor     .10000E-03    9.0676        .54037E-07** at limit **
   8  Prefactor     31.334        58.384        .31838E-06   -.40907E-04
   9  Prefactor     .10000E-03    49.007       -.67778E-06** at limit **
  10  Prefactor     .10000E-03    16.253        .21842E-05** at limit **
  11  norm          .10000E-03    3.0687        .31017E-06** at limit **
  12  norm          9.9194        4.9762        .10633E-06   -.15265E-03
  13  Prefactor     13.149        45.216        .20980E-06   -.26111E-04
  14  Prefactor     3.5739        18.775        .23471E-06   -.55092E-05
  15  Prefactor     .10000E-03    19.012        .48694E-08** at limit **
  16  Prefactor     .10000E-03    26.123        .69266E-07** at limit **
  17  Prefactor     42.155        83.404        .15661E-05    .63542E-04
  18  norm          6.8239        1.5277       -.77476E-08   -.90964E-04
  19  norm          5.3800        9.0488        .36190E-06   -.35428E-04
  20  Prefactor     .10000E-03    6.2326       -.19383E-06** at limit **
  21  Normalizat    .84270        .20947       -.21828E-05   -.18246E-03
  22  Prefactor     .56250        .17649        .12989E-05   -.31234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010249
  norm       = 0.000100001
  Prefactor  = 41.8018
  Prefactor  = 14.4981
  Prefactor  = 0.0001
  Prefactor  = 31.3338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.91945
  Prefactor  = 13.1493
  Prefactor  = 3.57389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.1549
  norm       = 6.82388
  norm       = 5.37997
  Prefactor  = 0.0001
  Normalizat = 0.842698
  Prefactor  = 0.562499
 **********
 **   18 **HESSE 
 **********

 FCN=   3681.401     FROM HESSE     STATUS=OK           344 CALLS     2706 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6774        .14092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10249E-03    17.426        .61047E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.0399        .85873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.802        30.941        .62053E-04   -1.4414    
   6  Prefactor     14.498        10.865        .10519E-03   -1.4946    
   7  Prefactor     .10000E-03    9.1454        .17842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.334        58.234        .71606E-04   -1.4588    
   9  Prefactor     .10000E-03    49.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0874        .10361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.9194        4.9946        .90458E-04   -1.5078    
  13  Prefactor     13.149        44.978        .11034E-03   -1.4983    
  14  Prefactor     3.5739        18.511        .21379E-03   -1.5330    
  15  Prefactor     .10000E-03    19.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.155        82.879        .30909E-03   -1.4409    
  18  norm          6.8239        1.5603        .27268E-04   -1.5185    
  19  norm          5.3800        9.2230        .17325E-03   -1.5244    
  20  Prefactor     .10000E-03    6.3364        .14780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .84270        .24299        .23102E-03   -.98504    
  22  Prefactor     .56250        .20475        .24747E-03   -1.0919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91282e-09
Minuit parameter uncertainties:
  1  7.0147e-06
  2  4.25227e-06
  3  0.0131772
  4  4.90344e-05
  5  30.9532
  6  10.866
  7  1.06732e-05
  8  58.34
  9  6.99189e-05
  10  0.000126004
  11  8.09628e-06
  12  4.99482
  13  45.094
  14  16.2751
  15  7.51746e-06
  16  9.57143e-06
  17  83.1066
  18  1.5603
  19  9.22545
  20  1.86007e-05
  21  0.243309
  22  0.205018
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  3.574e+00  1.628e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.625e-01  2.050e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.427e-01  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10830/likelihoodResults_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.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) = 3681.37928647
delta logL = 0.0220972592078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3681.36670924
delta logL = 0.0346744924364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7454       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1066       1.0000          .0000       10.000    
     3 'Normalizat'    .84539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55958       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+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=   3681.367     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      252 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7367        21.334        .15449E-03   -.27522E-04
   2  Index         2.1042        1.4478        .15610E-01    .70868E-05
   3  Normalizat    .84520        .22679        .23070E-03    .37206E-05
   4  Prefactor     .55976        .20250        .24796E-03   -.45848E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.73666
  Index      = 2.10423
  Normalizat = 0.845198
  Prefactor  = 0.559759
 **********
 **   18 **HESSE 
 **********

 FCN=   3681.367     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7367        20.999        .61797E-05   -1.5189    
   2  Index         2.1042        1.4272        .62439E-03   -.61769    
   3  Normalizat    .84520        .22699        .92279E-05   -.98413    
   4  Prefactor     .55976        .20268        .99186E-05   -1.0931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5801e-12
Minuit parameter uncertainties:
  1  21.0222
  2  1.45806
  3  0.22725
  4  0.20294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10830': 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) = 3681.36670726
delta logL = 0.0346764752658

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  6.737e+00  2.102e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.104e+00  1.458e+00  0.000e+00  1.000e+01 (-1.000e+00)
427        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  5.598e-01  2.029e-01  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  8.452e-01  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 352.839 -15.978

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/10830/cmap_HighResolution_330566401_330825601_4FGL_J2331.3-1558_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-29 23:14:03.502238', job_id='10830', GAL2='0.56', fit_tolerance='1e-08', EG2='0.85', EG='0.84', time_epoch_completed='1632982443.5', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='3.47e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='352' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:14:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 10830: <4FGL_J2331.3-1558_daily_bin352> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin352> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:05:43 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:05:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 23:05:44 2021
Terminated at Wed Sep 29 23:14:04 2021
Results reported at Wed Sep 29 23:14:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin352 352.839 -15.9777 330566401 330825601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2331.3-1558 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   483.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             353.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   499 sec.
    Turnaround time :                            501 sec.

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

