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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin388
RA = 352.763, Dec = -21.7953
tmin = 339897601, tmax = 340156801
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='4546', job_status='RUN', time_executed='2021-09-29 22:47:52.947177', time_epoch_executed='1632980872.95' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4546

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4546/ft1_4FGL_J2331.0-2147_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4546/ft2_4FGL_J2331.0-2147_daily_bin388.fits


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

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

Done.
real 3.30
user 3.09
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4546/ft1_filtered_4FGL_J2331.0-2147_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/4546/ft2_4FGL_J2331.0-2147_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/4546/ltcube_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.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/4546/ft2_4FGL_J2331.0-2147_daily_bin388.fits
.....................!
real 11.80
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4546/ft1_filtered_4FGL_J2331.0-2147_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/4546/ft2_4FGL_J2331.0-2147_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/4546/ltcube_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.fits outfile=/scratch/kocevski/4546/expmap_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.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/4546/ltcube_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.fits
.....................!
real 191.04
user 185.61
sys 5.12

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/4546/ft1_filtered_4FGL_J2331.0-2147_daily_bin388.fits scfile=/scratch/kocevski/4546/ft2_4FGL_J2331.0-2147_daily_bin388.fits outfile=/scratch/kocevski/4546/cmap_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4546/ft1_filtered_4FGL_J2331.0-2147_daily_bin388.fits scfile=/scratch/kocevski/4546/ft2_4FGL_J2331.0-2147_daily_bin388.fits outfile=/scratch/kocevski/4546/cmap_HighResolution_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4546/ft1_filtered_4FGL_J2331.0-2147_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/4546/ft2_4FGL_J2331.0-2147_daily_bin388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4546/Model_4FGL_J2331.0-2147_daily_bin388.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/4546/ft1_filtered_4FGL_J2331.0-2147_daily_bin388.fits....................!
real 36.78
user 35.52
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/4546/ft1_filtered_4FGL_J2331.0-2147_daily_bin388.fits', '/scratch/kocevski/4546/ft2_4FGL_J2331.0-2147_daily_bin388.fits', expMap='/scratch/kocevski/4546/expmap_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.fits', expCube='/scratch/kocevski/4546/ltcube_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/4546/Model_4FGL_J2331.0-2147_daily_bin388.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/4546/ft1_filtered_4FGL_J2331.0-2147_daily_bin388.fits
Spacecraft file(s): /scratch/kocevski/4546/ft2_4FGL_J2331.0-2147_daily_bin388.fits
Exposure map: /scratch/kocevski/4546/expmap_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.fits
Exposure cube: /scratch/kocevski/4546/ltcube_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/4546/Model_4FGL_J2331.0-2147_daily_bin388.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) = 3936.33923759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.344       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4271       1.0000         .10000E-03   10000.    
     7 'norm      '    .51156       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.842       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 '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11291E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    110.26       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5106       1.0000         .10000E-03   10000.    
    18 'norm      '    47.604       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85676       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80195       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=   3936.321     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2341 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    46.526       -.21166E-07** at limit **
   2  norm          .10000E-03    2.8449        .20841E-05** at limit **
   3  Prefactor     39.388        68.740       -.17662E-05   -.28959E-04
   4  norm          .10000E-03    2.6183       -.96787E-08** at limit **
   5  Prefactor     .10000E-03    10.169        .70636E-07** at limit **
   6  Prefactor     4.4244        15.388        .11594E-05   -.68082E-04
   7  norm          .51170        .95298        .97045E-08   -.25359E-03
   8  Prefactor     17.841        14.512        .37809E-07   -.24017E-05
   9  Prefactor     .10000E-03    6.3453       -.76417E-07** at limit **
  10  Prefactor     .10000E-03    10.867       -.56428E-07** at limit **
  11  Prefactor     .10000E-03    39.051       -.35458E-06** at limit **
  12  norm          .10000E-03    2.5127       -.10157E-06** at limit **
  13  Prefactor     .10000E-03    157.80       -.37147E-06** at limit **
  14  Prefactor     .10000E-03    9.9885       -.13489E-06** at limit **
  15  Prefactor     .10000E-03    15.923        .15274E-07** at limit **
  16  Prefactor     110.28        140.20        .44346E-06    .63683E-05
  17  norm          1.5106        .98333        .10516E-08    .13035E-04
  18  norm          47.602        11.103        .16887E-07    .30692E-04
  19  Prefactor     .10000E-03    47.236        .95504E-07** at limit **
  20  Prefactor     .10000E-03    34.597        .83613E-07** at limit **
  21  Normalizat    .85710        .21924       -.43019E-06   -.20699E-04
  22  Prefactor     .80163        .20317        .18726E-06   -.43921E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 39.3881
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.42437
  norm       = 0.511699
  Prefactor  = 17.8408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.277
  norm       = 1.51061
  norm       = 47.6019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.857095
  Prefactor  = 0.801627
 **********
 **   18 **HESSE 
 **********

 FCN=   3936.321     FROM HESSE     STATUS=OK           338 CALLS     2679 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    46.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.8570        .10237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.388        69.566        .63902E-04   -1.4452    
   4  norm          .10000E-03    2.6207        .98916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4244        14.489        .19139E-03   -1.5287    
   7  norm          .51170        .85193        .59285E-03   -1.5565    
   8  Prefactor     17.841        14.517        .94821E-04   -1.4863    
   9  Prefactor     .10000E-03    6.3629        .15419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.4252        .19185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    158.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.9939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     110.28        140.77        .38305E-04   -1.3604    
  17  norm          1.5106        .97329        .42983E-04   -1.5462    
  18  norm          47.602        11.111        .58116E-04   -1.4327    
  19  Prefactor     .10000E-03    47.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85710        .25854        .25191E-03   -.97985    
  22  Prefactor     .80163        .23917        .24992E-03   -.99668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19188e-11
Minuit parameter uncertainties:
  1  5.12225e-05
  2  1.74316e-05
  3  69.7094
  4  7.40902e-06
  5  1.84955e-05
  6  14.5004
  7  0.851953
  8  14.5195
  9  1.12387e-05
  10  9.79545e-06
  11  0.000160924
  12  2.37476e-05
  13  2.32169e-05
  14  2.61311e-05
  15  2.45287e-06
  16  141.204
  17  0.973302
  18  11.1115
  19  8.29047e-05
  20  6.8296e-05
  21  0.258915
  22  0.23948
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  2.375e-05  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:  8.016e-01  2.395e-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:  8.571e-01  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.763 -21.795
Photon Flux Upper Limit: 9.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4546/likelihoodResults_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.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) = 3936.32202701
delta logL = -0.00107662200799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3936.32094905
delta logL = 1.3323751773e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3719       1.0000          .0000       5.0000    
     3 'Normalizat'    .85722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80156       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3936.321     FROM MIGRAD    STATUS=FAILED       111 CALLS      264 TOTAL
                     EDM=   .17E-02    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30646E-03    6251.8        .21061E-02** at limit **
   2  alpha         1.6092        .20313        .16488        .42736E-04
   3  Normalizat    .85709        .14844        .25191E-03   -.56920E-03
   4  Prefactor     .80163        .14692        .24992E-03   -.50834E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3936.317     FROM SIMPLEX   STATUS=PROGRESS     133 CALLS      397 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30662        6251.8        .53122E-03   -1.5597    
   2  alpha         1.6092        .20313        .13369E-05   -.36433    
   3  Normalizat    .85707        .14844        .15397E-05   -.97986    
   4  Prefactor     .80161        .14692        .57226E-06   -.99669    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3936.316     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      454 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32407        8.3868        .42122E-02    .36708E-03
   2  alpha         1.4958        3.2476        .65952E-01   -.75932E-04
   3  Normalizat    .85893        .24387        .50382E-04    .61354E-04
   4  Prefactor     .79865        .23748        .49984E-04    .21334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.324071
  alpha      = 1.49581
  Normalizat = 0.858935
  Prefactor  = 0.798649
 **********
 **   18 **HESSE 
 **********

 FCN=   3936.316     FROM HESSE     STATUS=OK            27 CALLS      481 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32407        8.4529        .16849E-03   -1.5594    
   2  alpha         1.4958        3.2476        .13190E-01   -.41334    
   3  Normalizat    .85893        .24374        .10076E-04   -.97918    
   4  Prefactor     .79865        .23705        .99968E-05   -.99778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17751e-11
Minuit parameter uncertainties:
  1  3.31021
  2  2.60306
  3  0.244052
  4  0.237353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4546': 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) = 3936.31588907
delta logL = 0.00506131242491

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  3.241e-01  3.310e+00  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  1.496e+00  2.603e+00  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:  7.986e-01  2.374e-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:  8.589e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 352.763 -21.795

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/4546/cmap_HighResolution_339897601_340156801_4FGL_J2331.0-2147_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='9.01e-08', time_completed='2021-09-29 22:56:09.159898', job_id='4546', GAL2='0.80', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632981369.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.06e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='388' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:56:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 4546: <4FGL_J2331.0-2147_daily_bin388> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin388> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 22:45:37 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:45:38 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:45:38 2021
Terminated at Wed Sep 29 22:56:09 2021
Results reported at Wed Sep 29 22:56:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin388 352.763 -21.7953 339897601 340156801 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 :                                   495.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            632 sec.

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

