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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin1229
RA = 352.839, Dec = -15.9777
tmin = 557884801, tmax = 558144001
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='14060', job_status='RUN', time_executed='2021-09-29 23:16:28.343257', time_epoch_executed='1632982588.34' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14060/ft1_4FGL_J2331.3-1558_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14060/ft2_4FGL_J2331.3-1558_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14060/ft1_4FGL_J2331.3-1558_daily_bin1229.fits outfile=/scratch/kocevski/14060/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1229.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=557884801.0 tmax=558144001.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.03
user 3.81
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14060/ft2_4FGL_J2331.3-1558_daily_bin1229.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/14060/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/14060/ft1_filtered_4FGL_J2331.3-1558_daily_bin1229.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14060/ft1_filtered_4FGL_J2331.3-1558_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/14060/ft2_4FGL_J2331.3-1558_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/14060/ltcube_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.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/14060/ft2_4FGL_J2331.3-1558_daily_bin1229.fits
.....................!
real 11.71
user 11.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14060/ft1_filtered_4FGL_J2331.3-1558_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/14060/ft2_4FGL_J2331.3-1558_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/14060/ltcube_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.fits outfile=/scratch/kocevski/14060/expmap_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.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/14060/ltcube_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.fits
.....................!
real 191.23
user 186.26
sys 4.65

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/14060/ft1_filtered_4FGL_J2331.3-1558_daily_bin1229.fits scfile=/scratch/kocevski/14060/ft2_4FGL_J2331.3-1558_daily_bin1229.fits outfile=/scratch/kocevski/14060/cmap_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14060/ft1_filtered_4FGL_J2331.3-1558_daily_bin1229.fits scfile=/scratch/kocevski/14060/ft2_4FGL_J2331.3-1558_daily_bin1229.fits outfile=/scratch/kocevski/14060/cmap_HighResolution_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/14060/ft1_filtered_4FGL_J2331.3-1558_daily_bin1229.fits', '/scratch/kocevski/14060/ft2_4FGL_J2331.3-1558_daily_bin1229.fits', expMap='/scratch/kocevski/14060/expmap_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.fits', expCube='/scratch/kocevski/14060/ltcube_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/14060/Model_4FGL_J2331.3-1558_daily_bin1229.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/14060/ft1_filtered_4FGL_J2331.3-1558_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/14060/ft2_4FGL_J2331.3-1558_daily_bin1229.fits
Exposure map: /scratch/kocevski/14060/expmap_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.fits
Exposure cube: /scratch/kocevski/14060/ltcube_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/14060/Model_4FGL_J2331.3-1558_daily_bin1229.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) = 12606.0104028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.098       1.0000         .10000E-03   10000.    
     2 'norm      '    48.745       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.157       1.0000         .10000E-03   10000.    
     4 'norm      '    15.386       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.761       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9116       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .71224       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23870E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.0451       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2510       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.096       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11203E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .32219       1.0000         .10000E-03   10000.    
    19 'norm      '    .36793       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.071       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82443       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0470       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=   12606.01     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2413 TOTAL
                     EDM=   .50E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.098        9.9556        .14428E-07    .79345E-06
   2  norm          48.743        29.397        .11053E-05    .17801E-05
   3  Prefactor     24.227        31.117        .28206E-05    .18534E-04
   4  norm          15.377        2.8135       -.82510E-07    .24758E-03
   5  Prefactor     17.802        34.629       -.48843E-05   -.17557E-04
   6  Prefactor     5.9117        5.5182       -.61775E-06    .66324E-05
   7  Prefactor     .71441        .17882        .19147E-08   -.38033E-04
   8  Prefactor     .10000E-03    13.411       -.17971E-06** at limit **
   9  Prefactor     .10000E-03    5.2762       -.15879E-08** at limit **
  10  Prefactor     .10000E-03    2.6436        .43269E-07** at limit **
  11  norm          7.0461        3.9170       -.18372E-08   -.22685E-04
  12  norm          2.2513        1.6817       -.94712E-08   -.50597E-05
  13  Prefactor     11.097        25.040        .11597E-05    .25963E-05
  14  Prefactor     .10000E-03    7.1532       -.33007E-07** at limit **
  15  Prefactor     .10000E-03    26.607       -.43395E-07** at limit **
  16  Prefactor     .10000E-03    14.056        .96415E-07** at limit **
  17  Prefactor     .10000E-03    35.952       -.21717E-07** at limit **
  18  norm          .32175        .27618       -.37525E-09   -.42462E-05
  19  norm          .38165        1.3370       -.38069E-07   -.19798E-04
  20  Prefactor     26.073        8.0305       -.87024E-07    .26247E-05
  21  Normalizat    .82424        .13058       -.73591E-07    .22002E-04
  22  Prefactor     1.0471        .12355        .92909E-07   -.12061E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0977
  norm       = 48.7426
  Prefactor  = 24.2274
  norm       = 15.3768
  Prefactor  = 17.8024
  Prefactor  = 5.91166
  Prefactor  = 0.714408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.04614
  norm       = 2.25127
  Prefactor  = 11.0974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.321753
  norm       = 0.381655
  Prefactor  = 26.0727
  Normalizat = 0.82424
  Prefactor  = 1.04712
 **********
 **   18 **HESSE 
 **********

 FCN=   12606.01     FROM HESSE     STATUS=OK           356 CALLS     2769 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.098        9.9539        .11068E-03   -1.4984    
   2  norm          48.743        29.371        .57436E-04   -1.4311    
   3  Prefactor     24.227        32.248        .81500E-04   -1.4723    
   4  norm          15.377        2.9755        .41799E-04   -1.4923    
   5  Prefactor     17.802        34.900        .95034E-04   -1.4864    
   6  Prefactor     5.9117        5.5090        .16516E-03   -1.5222    
   7  Prefactor     .71441        8.2060        .24217E-02   -1.5539    
   8  Prefactor     .10000E-03    13.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7366        .34376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.0461        3.8155        .75569E-03   -1.5177    
  12  norm          2.2513        1.6762        .12056E-03   -1.5408    
  13  Prefactor     11.097        24.989        .12027E-03   -1.5042    
  14  Prefactor     .10000E-03    7.1871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .32175        .27985        .47847E-03   -1.5595    
  19  norm          .38165        4.3910        .20951E-02   -1.5584    
  20  Prefactor     26.073        8.0420        .78457E-04   -1.4686    
  21  Normalizat    .82424        .15407        .28018E-03   -.99176    
  22  Prefactor     1.0471        .14691        .24333E-03   -.91175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4708e-08
Minuit parameter uncertainties:
  1  9.95515
  2  29.38
  3  32.2708
  4  2.97555
  5  34.9397
  6  5.50943
  7  4.84299
  8  8.75526e-07
  9  1.31119e-06
  10  1.104e-05
  11  3.81568
  12  1.67619
  13  25.0121
  14  1.91186e-05
  15  4.18714e-06
  16  7.8569e-08
  17  6.25289e-07
  18  0.279851
  19  2.58897
  20  8.04231
  21  0.154152
  22  0.146965
Done.

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

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  1.912e-05  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:  1.047e+00  1.470e-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.242e-01  1.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 352.839 -15.978
Photon Flux Upper Limit: 4.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14060/likelihoodResults_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.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) = 12606.0071883
delta logL = -0.00066342257378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12606.0065248
delta logL = -1.8791979528e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5381       1.0000          .0000       10.000    
     3 'Normalizat'    .82423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0471       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=   12606.01     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      232 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1650.3        .18142E-02** at limit **
   2  Index         2.3392        6.1451        .93614E-01   -.80152E-07
   3  Normalizat    .82424        .11294        .28018E-03    .14056E-03
   4  Prefactor     1.0471        .11000        .24333E-03    .19997E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3392
  Normalizat = 0.824239
  Prefactor  = 1.04713
 **********
 **   18 **HESSE 
 **********

 FCN=   12606.01     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3392        7.7810        .37446E-02   -.56115    
   3  Normalizat    .82424        .14827        .11207E-04   -.99176    
   4  Prefactor     1.0471        .14443        .97332E-05   -.91175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62321e-11
Minuit parameter uncertainties:
  1  8.77548e-06
  2  393.976
  3  0.14834
  4  0.144486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14060': 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) = 12606.0065247
delta logL = 1.18179741548e-07

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.000e-04  8.775e-06  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  2.339e+00  3.940e+02  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:  1.047e+00  1.445e-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.242e-01  1.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/14060/cmap_HighResolution_557884801_558144001_4FGL_J2331.3-1558_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-03', job_status='DONE', photon_flux_upper_limit='4.31e-08', time_completed='2021-09-29 23:32:15.264547', job_id='14060', GAL2='1.05', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632983535.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1229' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:32:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 14060: <4FGL_J2331.3-1558_daily_bin1229> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin1229> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:15:40 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:15:41 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:15:41 2021
Terminated at Wed Sep 29 23:32:16 2021
Results reported at Wed Sep 29 23:32:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin1229 352.839 -15.9777 557884801 558144001 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 :                                   940.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

