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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin1443
RA = 352.763, Dec = -21.7953
tmin = 613353601, tmax = 613612801
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='9081', job_status='RUN', time_executed='2021-09-29 23:02:54.104848', time_epoch_executed='1632981774.1' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9081

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9081/ft1_4FGL_J2331.0-2147_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9081/ft2_4FGL_J2331.0-2147_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9081/ft1_4FGL_J2331.0-2147_daily_bin1443.fits outfile=/scratch/kocevski/9081/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1443.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=613353601.0 tmax=613612801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.72
user 2.49
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/9081/ft2_4FGL_J2331.0-2147_daily_bin1443.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/9081/ft2_4FGL_J2331.0-2147_daily_bin1443.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/9081/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin1443.fits evtable="EVENTS" outfile="/scratch/kocevski/9081/ft1_filtered_4FGL_J2331.0-2147_daily_bin1443.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9081/ft1_filtered_4FGL_J2331.0-2147_daily_bin1443.fits" evtable="EVENTS" scfile=/scratch/kocevski/9081/ft2_4FGL_J2331.0-2147_daily_bin1443.fits sctable="SC_DATA" outfile=/scratch/kocevski/9081/ltcube_613353601_613612801_4FGL_J2331.0-2147_daily_bin1443.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/9081/ft2_4FGL_J2331.0-2147_daily_bin1443.fits
.....................!
real 15.92
user 15.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9081/ft1_filtered_4FGL_J2331.0-2147_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/9081/ft2_4FGL_J2331.0-2147_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/9081/ltcube_613353601_613612801_4FGL_J2331.0-2147_daily_bin1443.fits outfile=/scratch/kocevski/9081/expmap_613353601_613612801_4FGL_J2331.0-2147_daily_bin1443.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/9081/ltcube_613353601_613612801_4FGL_J2331.0-2147_daily_bin1443.fits
.....................!
real 191.22
user 185.94
sys 4.95

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

Setting source of interest to:
4FGL J2331.0-2147 @ 352.763 -21.7953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/9081/ft1_filtered_4FGL_J2331.0-2147_daily_bin1443.fits scfile=/scratch/kocevski/9081/ft2_4FGL_J2331.0-2147_daily_bin1443.fits outfile=/scratch/kocevski/9081/cmap_613353601_613612801_4FGL_J2331.0-2147_daily_bin1443.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.763 yref=-21.7953 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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/9081/ft1_filtered_4FGL_J2331.0-2147_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/9081/ft2_4FGL_J2331.0-2147_daily_bin1443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/9081/Model_4FGL_J2331.0-2147_daily_bin1443.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/9081/ft1_filtered_4FGL_J2331.0-2147_daily_bin1443.fits.....................!
real 45.78
user 44.42
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/9081/ft1_filtered_4FGL_J2331.0-2147_daily_bin1443.fits', '/scratch/kocevski/9081/ft2_4FGL_J2331.0-2147_daily_bin1443.fits', expMap='/scratch/kocevski/9081/expmap_613353601_613612801_4FGL_J2331.0-2147_daily_bin1443.fits', expCube='/scratch/kocevski/9081/ltcube_613353601_613612801_4FGL_J2331.0-2147_daily_bin1443.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/9081/Model_4FGL_J2331.0-2147_daily_bin1443.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2331.0-2147'

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  2.017e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.433e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/9081/ft1_filtered_4FGL_J2331.0-2147_daily_bin1443.fits
Spacecraft file(s): /scratch/kocevski/9081/ft2_4FGL_J2331.0-2147_daily_bin1443.fits
Exposure map: /scratch/kocevski/9081/expmap_613353601_613612801_4FGL_J2331.0-2147_daily_bin1443.fits
Exposure cube: /scratch/kocevski/9081/ltcube_613353601_613612801_4FGL_J2331.0-2147_daily_bin1443.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/9081/Model_4FGL_J2331.0-2147_daily_bin1443.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) = 5439.1147251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    69.437       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11297E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.248       1.0000         .10000E-03   10000.    
     7 'norm      '    .27566       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2141       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14067E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4210       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.621       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6639       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.543       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25747E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .32071       1.0000         .10000E-03   10000.    
    18 'norm      '    5.9203       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.511       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96242       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95925       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5439.107     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2382 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          69.453        43.446        .20614E-05    .35271E-04
   2  norm          .10000E-03    1.6105       -.12288E-07** at limit **
   3  Prefactor     .10000E-03    21.368        .13081E-09** at limit **
   4  norm          .10000E-03    1.2231       -.29605E-09** at limit **
   5  Prefactor     .10000E-03    4.5781        .57326E-09** at limit **
   6  Prefactor     14.244        12.041       -.66112E-06   -.11955E-03
   7  norm          .27623        .71242        .43285E-06    .46578E-03
   8  Prefactor     21.762        13.800        .44414E-07    .14591E-04
   9  Prefactor     4.2179        14.182       -.40196E-06   -.80245E-04
  10  Prefactor     .10000E-03    10.276        .58677E-08** at limit **
  11  Prefactor     .10000E-03    44.976       -.12503E-05** at limit **
  12  norm          7.4208        3.5370        .14072E-07    .30306E-04
  13  Prefactor     28.544        55.258        .10534E-05    .12553E-04
  14  Prefactor     1.6877        52.203       -.10980E-04   -.37411E-05
  15  Prefactor     12.548        13.737       -.79607E-08    .38325E-05
  16  Prefactor     .10000E-03    82.397        .34517E-06** at limit **
  17  norm          .32038        .61645        .14748E-06    .64142E-03
  18  norm          5.9209        5.2828       -.33381E-06   -.44471E-04
  19  Prefactor     .10000E-03    59.758        .27111E-05** at limit **
  20  Prefactor     13.531        23.786        .17261E-05    .16782E-04
  21  Normalizat    .96227        .19254        .26096E-05   -.69209E-04
  22  Prefactor     .95929        .18754       -.10928E-05    .11354E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 69.4527
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2441
  norm       = 0.276232
  Prefactor  = 21.7623
  Prefactor  = 4.21788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.42076
  Prefactor  = 28.5436
  Prefactor  = 1.68772
  Prefactor  = 12.5475
  Prefactor  = 0.0001
  norm       = 0.320383
  norm       = 5.92086
  Prefactor  = 0.0001
  Prefactor  = 13.5313
  Normalizat = 0.962274
  Prefactor  = 0.959293
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.107     FROM HESSE     STATUS=OK           350 CALLS     2732 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          69.453        43.534        .48171E-04   -1.4039    
   2  norm          .10000E-03    1.6856        .18275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.2244        .79633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5788        .15407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.244        11.555        .10611E-03   -1.4953    
   7  norm          .27623        .62025        .74103E-03   -1.5603    
   8  Prefactor     21.762        13.802        .85871E-04   -1.4775    
   9  Prefactor     4.2179        13.691        .19630E-03   -1.5297    
  10  Prefactor     .10000E-03    10.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4208        3.5374        .91624E-04   -1.5163    
  13  Prefactor     28.544        55.187        .74888E-04   -1.4639    
  14  Prefactor     1.6877        51.119        .32697E-03   -1.5448    
  15  Prefactor     12.548        13.739        .11311E-03   -1.4999    
  16  Prefactor     .10000E-03    82.802        .21453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .32038        .55218        .62816E-03   -1.5595    
  18  norm          5.9209        5.0304        .12594E-03   -1.5221    
  19  Prefactor     .10000E-03    60.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.531        23.789        .10897E-03   -1.4972    
  21  Normalizat    .96227        .22374        .24463E-03   -.94305    
  22  Prefactor     .95929        .22087        .24682E-03   -.94099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59952e-10
Minuit parameter uncertainties:
  1  43.5542
  2  1.87715e-06
  3  9.3635e-06
  4  5.96965e-07
  5  2.12813e-06
  6  11.5571
  7  0.620264
  8  13.8043
  9  13.7016
  10  7.32901e-06
  11  8.55199e-05
  12  3.53753
  13  55.2856
  14  18.5936
  15  13.7422
  16  7.42241e-05
  17  0.552185
  18  5.03076
  19  1.56205e-05
  20  23.8056
  21  0.223961
  22  0.221075
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  7.421e+00  3.538e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.433e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.593e-01  2.211e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.623e-01  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.31
Ra Dec: 352.763 -21.795
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.96e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.26e-05

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) = 5439.09795471
delta logL = 0.00898620995304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5439.09188426
delta logL = 0.0150566585307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9176       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3419       1.0000          .0000       5.0000    
     3 'Normalizat'    .96867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95489       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5439.092     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9161        75.023        .35625E-02    .89207E-04
   2  alpha         2.3425        3.5848        .26765        .44929E-04
   3  Normalizat    .96871        .11820        .45773E-01    .16067E-04
   4  Prefactor     .95481        .87076E-01    .45701E-01    .12872E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.9161
  alpha      = 2.34255
  Normalizat = 0.96871
  Prefactor  = 0.954811
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.092     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9161        4.7849        .95785E-04   -1.5145    
   2  alpha         2.3425        .52952        .10314E-01   -.63022E-01
   3  Normalizat    .96871        .21773        .24394E-03   -.94086    
   4  Prefactor     .95481        .21804        .24733E-03   -.94251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80543e-12
Minuit parameter uncertainties:
  1  4.78516
  2  0.533581
  3  0.217925
  4  0.218242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9081': 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) = 5439.09188326
delta logL = 0.0150576645847

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  7.916e+00  4.785e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  2.343e+00  5.336e-01  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  1.305e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  9.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.548e-01  2.182e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.687e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.32
Ra Dec: 352.763 -21.795
Photon Index (Free Index): 2.34 +/- 0.53
Photon Flux (Free Index): 7.49e-08 +/- 4.46e-08
Energy Flux (Free Index): 2.73e-05 +/- 1.44e-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/9081/cmap_HighResolution_613353601_613612801_4FGL_J2331.0-2147_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.96e-08', energy_flux2='2.73e-05', photon_flux_error='3.79e-08', dlogl='1.51e-02', energy_flux='2.64e-05', photon_flux2='7.49e-08', job_status='DONE', time_completed='2021-09-29 23:11:39.961929', photon_index_error2='0.53', photon_index2='2.34', ts='11.31', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.96', time_epoch_completed='1632982299.96', return_code='0', job_id='9081', GAL2='0.95', EG2='0.97', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.46e-08', ts2='11.32', photon_index='2.43' WHERE bin_id='1443' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:11:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 9081: <4FGL_J2331.0-2147_daily_bin1443> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin1443> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 23:00:19 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:00:21 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:00:21 2021
Terminated at Wed Sep 29 23:11:40 2021
Results reported at Wed Sep 29 23:11:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin1443 352.763 -21.7953 613353601 613612801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2331.0-2147 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   521.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            681 sec.

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

