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


Performing analysis on: 4FGL_J2331.0-2147_daily_bin336
RA = 352.763, Dec = -21.7953
tmin = 326419201, tmax = 326678401
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='4468', job_status='RUN', time_executed='2021-09-29 22:47:36.358274', time_epoch_executed='1632980856.36' WHERE source_name='4FGL J2331.0-2147' and cadence='daily' and bin_id='336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4468

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4468/ft1_4FGL_J2331.0-2147_daily_bin336.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4468/ft2_4FGL_J2331.0-2147_daily_bin336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4468/ft1_4FGL_J2331.0-2147_daily_bin336.fits outfile=/scratch/kocevski/4468/ft1_filteredMKT_4FGL_J2331.0-2147_daily_bin336.fits ra=352.763 dec=-21.7953 rad=12.0 tmin=326419201.0 tmax=326678401.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.40
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4468/ft1_filtered_4FGL_J2331.0-2147_daily_bin336.fits" evtable="EVENTS" scfile=/scratch/kocevski/4468/ft2_4FGL_J2331.0-2147_daily_bin336.fits sctable="SC_DATA" outfile=/scratch/kocevski/4468/ltcube_326419201_326678401_4FGL_J2331.0-2147_daily_bin336.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/4468/ft2_4FGL_J2331.0-2147_daily_bin336.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4468/ft1_filtered_4FGL_J2331.0-2147_daily_bin336.fits evtable="EVENTS" scfile=/scratch/kocevski/4468/ft2_4FGL_J2331.0-2147_daily_bin336.fits sctable="SC_DATA" expcube=/scratch/kocevski/4468/ltcube_326419201_326678401_4FGL_J2331.0-2147_daily_bin336.fits outfile=/scratch/kocevski/4468/expmap_326419201_326678401_4FGL_J2331.0-2147_daily_bin336.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/4468/ltcube_326419201_326678401_4FGL_J2331.0-2147_daily_bin336.fits
.....................!
real 189.63
user 184.89
sys 4.43

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/4468/ft1_filtered_4FGL_J2331.0-2147_daily_bin336.fits scfile=/scratch/kocevski/4468/ft2_4FGL_J2331.0-2147_daily_bin336.fits outfile=/scratch/kocevski/4468/cmap_326419201_326678401_4FGL_J2331.0-2147_daily_bin336.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4468/ft1_filtered_4FGL_J2331.0-2147_daily_bin336.fits scfile=/scratch/kocevski/4468/ft2_4FGL_J2331.0-2147_daily_bin336.fits outfile=/scratch/kocevski/4468/cmap_HighResolution_326419201_326678401_4FGL_J2331.0-2147_daily_bin336.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4468/ft1_filtered_4FGL_J2331.0-2147_daily_bin336.fits evtable="EVENTS" scfile=/scratch/kocevski/4468/ft2_4FGL_J2331.0-2147_daily_bin336.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4468/Model_4FGL_J2331.0-2147_daily_bin336.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/4468/ft1_filtered_4FGL_J2331.0-2147_daily_bin336.fits.....................!
real 44.71
user 43.38
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.851       1.0000         .10000E-03   10000.    
     2 'norm      '    .12480E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.909       1.0000         .10000E-03   10000.    
     4 'norm      '    6.6164       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11965E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.279       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11636E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.321       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.320       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0152       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0992       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14673       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3000       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73353       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.

 FCN=   5249.524     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     2848 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.856        34.905        .67882E-04    .25122E-04
   2  norm          .10000E-03    3.9954        .20685E-02** at limit **
   3  Prefactor     39.802        56.526        .63450E-04    .23293E-05
   4  norm          6.6121        4.4458        .12078E-03   -.95538E-04
   5  Prefactor     .10000E-03    5.2184        .16156E-02** at limit **
   6  Prefactor     .10000E-03    10.150        .36285E-03** at limit **
   7  norm          .10000E-03    .23180        .63920E-03** at limit **
   8  Prefactor     .10000E-03    24.802        .18142E-02** at limit **
   9  Prefactor     .10000E-03    6.0290        .17327E-02** at limit **
  10  Prefactor     .10000E-03    59.575        .36285E-03** at limit **
  11  Prefactor     .10000E-03    20.461        .18142E-02** at limit **
  12  norm          .10000E-03    8.2390        .18317E-02** at limit **
  13  Prefactor     23.413        58.594        .83020E-04    .24375E-04
  14  Prefactor     .10000E-03    19.031        .18142E-02** at limit **
  15  Prefactor     13.305        29.434        .10975E-03   -.25276E-04
  16  Prefactor     33.317        75.240        .69419E-04   -.98261E-06
  17  norm          3.0151        .82686        .32719E-04   -.18729E-03
  18  norm          .10000E-03    6.5074        .35386E-03** at limit **
  19  Prefactor     4.1152        108.75        .19912E-03   -.34257E-05
  20  Prefactor     .10000E-03    50.949        .14676    ** at limit **
  21  Normalizat    1.2999        .22929        .22275E-03    .65880E-04
  22  Prefactor     .73353        .21444        .28017E-03    .42688E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 34.8556
  norm       = 0.0001
  Prefactor  = 39.8017
  norm       = 6.61213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.4131
  Prefactor  = 0.0001
  Prefactor  = 13.3049
  Prefactor  = 33.3169
  norm       = 3.01508
  norm       = 0.0001
  Prefactor  = 4.11521
  Prefactor  = 0.000100001
  Normalizat = 1.29989
  Prefactor  = 0.733527
 **********
 **   18 **HESSE 
 **********

 FCN=   5249.524     FROM HESSE     STATUS=OK           330 CALLS     3178 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.856        34.904        .27153E-05   -1.4527    
   2  norm          .10000E-03    4.0035        .41371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.802        56.474        .25380E-05   -1.4445    
   4  norm          6.6121        4.4456        .48312E-05   -1.5194    
   5  Prefactor     .10000E-03    5.2186        .32312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.150        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .23185        .12784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0301        .34654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    59.578        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.2936        .36634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.413        58.620        .33208E-05   -1.4740    
  14  Prefactor     .10000E-03    19.033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.305        29.433        .43899E-05   -1.4978    
  16  Prefactor     33.317        75.250        .27768E-05   -1.4553    
  17  norm          3.0151        .82686        .13087E-05   -1.5361    
  18  norm          .10000E-03    6.5076        .70771E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1152        108.73        .79647E-05   -1.5302    
  20  Prefactor     .10000E-03    51.042        .14656       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2999        .22946        .44550E-04   -.83570    
  22  Prefactor     .73353        .21462        .11207E-04   -1.0223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44722e-11
Minuit parameter uncertainties:
  1  34.9244
  2  5.25308e-06
  3  56.5499
  4  4.44587
  5  1.09026e-06
  6  1.24888e-05
  7  5.48936e-07
  8  1.88564e-05
  9  5.19817e-06
  10  0.000166799
  11  6.28904e-06
  12  3.16739e-06
  13  58.7652
  14  1.82348e-05
  15  29.4647
  16  75.466
  17  0.826863
  18  4.99305e-05
  19  42.3917
  20  0.000371931
  21  0.229644
  22  0.214865
Done.

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

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  3.167e-06  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:  7.335e-01  2.149e-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:  1.300e+00  2.296e-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: 8.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4468/likelihoodResults_326419201_326678401_4FGL_J2331.0-2147_daily_bin336.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) = 5249.52418325
delta logL = -0.0005791956346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5249.52360365
delta logL = 4.11298969993e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4768       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73350       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=   5249.524     FROM MIGRAD    STATUS=FAILED       106 CALLS      271 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10747E-03    431.90        .17387E-02** at limit **
   2  alpha         2.9994        3.4000        .50000       -.18878E-05
   3  Normalizat    1.2999        .23400E-01    .22275E-03    .34824E-03
   4  Prefactor     .73353        .22875E-01    .28017E-03    .22460E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5249.524     FROM SIMPLEX   STATUS=PROGRESS     129 CALLS      400 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10206E-03    431.90        .54479E-03** at limit **
   2  alpha         2.9992        3.4000        .91682E-04   -.18878E-05
   3  Normalizat    1.2999        .23400E-01    .94292E-06    .34824E-03
   4  Prefactor     .73352        .22875E-01    .10556E-05    .22460E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5249.524     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      445 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    932.31        .69548E-03** at limit **
   2  alpha         3.0350        2.9635        .50000        .43897E-06
   3  Normalizat    1.2999        .34979E-01    .44549E-04    .10236E-02
   4  Prefactor     .73353        .34202E-01    .11207E-04    .77605E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100016
  alpha      = 3.03505
  Normalizat = 1.29989
  Prefactor  = 0.733528
 **********
 **   18 **HESSE 
 **********

 FCN=   5249.524     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      474 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    6533.9        .13910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0350        3.7305        .50000        .21569    
   3  Normalizat    1.2999        .87475E-01    .89098E-05   -.83570    
   4  Prefactor     .73353        .85413E-01    .22414E-05   -1.0223    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17175e-09
Minuit parameter uncertainties:
  1  0.0147181
  2  2108.18
  3  0.0874845
  4  0.0854279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4468': 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) = 5249.52360057
delta logL = 3.49146648659e-06

Extracting fit parameters...

4FGL J2331.0-2147
   Spectrum: LogParabola
418         norm:  1.000e-04  1.472e-02  1.000e-04  1.000e+04 ( 1.000e-12)
419        alpha:  3.035e+00  2.108e+03  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.335e-01  8.543e-02  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:  1.300e+00  8.748e-02  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/4468/cmap_HighResolution_326419201_326678401_4FGL_J2331.0-2147_daily_bin336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='8.06e-08', time_completed='2021-09-29 22:57:23.795543', job_id='4468', GAL2='0.73', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632981443.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='3.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='336' AND source_name='4FGL J2331.0-2147' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 22:57:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 4468: <4FGL_J2331.0-2147_daily_bin336> in cluster <slac> Done

Job <4FGL_J2331.0-2147_daily_bin336> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 22:45:30 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 22:45:31 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:31 2021
Terminated at Wed Sep 29 22:57:24 2021
Results reported at Wed Sep 29 22:57:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.0-2147_daily_bin336 352.763 -21.7953 326419201 326678401 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 :                                   586.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            714 sec.

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

