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


Performing analysis on: 4FGL_J2331.3-1558_daily_bin892
RA = 352.839, Dec = -15.9777
tmin = 470534401, tmax = 470793601
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='12576', job_status='RUN', time_executed='2021-09-29 23:14:56.892815', time_epoch_executed='1632982496.89' WHERE source_name='4FGL J2331.3-1558' and cadence='daily' and bin_id='892'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12576/ft1_4FGL_J2331.3-1558_daily_bin892.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12576/ft2_4FGL_J2331.3-1558_daily_bin892.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12576/ft1_4FGL_J2331.3-1558_daily_bin892.fits outfile=/scratch/kocevski/12576/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin892.fits ra=352.839 dec=-15.9777 rad=12.0 tmin=470534401.0 tmax=470793601.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.49
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12576/ft2_4FGL_J2331.3-1558_daily_bin892.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/12576/ft1_filteredMKT_4FGL_J2331.3-1558_daily_bin892.fits evtable="EVENTS" outfile="/scratch/kocevski/12576/ft1_filtered_4FGL_J2331.3-1558_daily_bin892.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12576/ft1_filtered_4FGL_J2331.3-1558_daily_bin892.fits" evtable="EVENTS" scfile=/scratch/kocevski/12576/ft2_4FGL_J2331.3-1558_daily_bin892.fits sctable="SC_DATA" outfile=/scratch/kocevski/12576/ltcube_470534401_470793601_4FGL_J2331.3-1558_daily_bin892.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/12576/ft2_4FGL_J2331.3-1558_daily_bin892.fits
.....................!
real 11.73
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12576/ft1_filtered_4FGL_J2331.3-1558_daily_bin892.fits evtable="EVENTS" scfile=/scratch/kocevski/12576/ft2_4FGL_J2331.3-1558_daily_bin892.fits sctable="SC_DATA" expcube=/scratch/kocevski/12576/ltcube_470534401_470793601_4FGL_J2331.3-1558_daily_bin892.fits outfile=/scratch/kocevski/12576/expmap_470534401_470793601_4FGL_J2331.3-1558_daily_bin892.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/12576/ltcube_470534401_470793601_4FGL_J2331.3-1558_daily_bin892.fits
.....................!
real 191.36
user 185.71
sys 5.33

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/12576/ft1_filtered_4FGL_J2331.3-1558_daily_bin892.fits scfile=/scratch/kocevski/12576/ft2_4FGL_J2331.3-1558_daily_bin892.fits outfile=/scratch/kocevski/12576/cmap_470534401_470793601_4FGL_J2331.3-1558_daily_bin892.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=352.839 yref=-15.9777 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12576/ft1_filtered_4FGL_J2331.3-1558_daily_bin892.fits scfile=/scratch/kocevski/12576/ft2_4FGL_J2331.3-1558_daily_bin892.fits outfile=/scratch/kocevski/12576/cmap_HighResolution_470534401_470793601_4FGL_J2331.3-1558_daily_bin892.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/12576/ft1_filtered_4FGL_J2331.3-1558_daily_bin892.fits evtable="EVENTS" scfile=/scratch/kocevski/12576/ft2_4FGL_J2331.3-1558_daily_bin892.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/12576/Model_4FGL_J2331.3-1558_daily_bin892.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/12576/ft1_filtered_4FGL_J2331.3-1558_daily_bin892.fits.....................!
real 52.66
user 51.34
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.073       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.391       1.0000         .10000E-03   10000.    
     4 'norm      '    .11165E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.238       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3304       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1916       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.466       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.174       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.406       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1123       1.0000         .10000E-03   10000.    
    19 'norm      '    4.5182       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7926       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .65954       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93890       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=   6677.385     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2365 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.074        9.7591       -.12795E-07   -.12851E-04
   2  norm          .10000E-03    11.563       -.54150E-07** at limit **
   3  Prefactor     13.398        9.6447       -.13904E-05   -.20434E-03
   4  norm          .10000E-03    .52531        .56122E-06** at limit **
   5  Prefactor     .10000E-03    27.304       -.97219E-06** at limit **
   6  Prefactor     .10000E-03    2.3986        .22301E-07** at limit **
   7  Prefactor     .10000E-03    2.1517        .16802E-07** at limit **
   8  Prefactor     .10000E-03    68.598       -.52754E-06** at limit **
   9  Prefactor     15.238        23.415        .95800E-08   -.10284E-04
  10  Prefactor     3.3109        7.6963        .35026E-06   -.64427E-04
  11  norm          2.1941        4.1846        .81234E-07   -.22761E-03
  12  norm          .10000E-03    .46626       -.14941E-08** at limit **
  13  Prefactor     59.469        50.009        .21020E-06    .66132E-05
  14  Prefactor     11.173        17.072       -.55039E-07   -.24267E-04
  15  Prefactor     .10000E-03    15.059        .52213E-07** at limit **
  16  Prefactor     44.399        39.821       -.59201E-06   -.34590E-04
  17  Prefactor     .10000E-03    29.832        .18613E-05** at limit **
  18  norm          4.1126        .81337       -.18923E-08   -.24165E-04
  19  norm          4.5176        3.9186        .36783E-07   -.41853E-04
  20  Prefactor     2.7926        6.3347        .70264E-06   -.17851E-03
  21  Normalizat    .65948        .14762       -.11098E-07   -.78198E-04
  22  Prefactor     .93893        .14224       -.29136E-06   -.89414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0742
  norm       = 0.0001
  Prefactor  = 13.3983
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2379
  Prefactor  = 3.31086
  norm       = 2.19405
  norm       = 0.0001
  Prefactor  = 59.4688
  Prefactor  = 11.1732
  Prefactor  = 0.0001
  Prefactor  = 44.399
  Prefactor  = 0.0001
  norm       = 4.11261
  norm       = 4.51756
  Prefactor  = 2.79261
  Normalizat = 0.659477
  Prefactor  = 0.938934
 **********
 **   18 **HESSE 
 **********

 FCN=   6677.385     FROM HESSE     STATUS=OK           344 CALLS     2709 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.074        9.7267        .10317E-03   -1.4931    
   2  norm          .10000E-03    11.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.398        9.9781        .10946E-03   -1.4976    
   4  norm          .10000E-03    1.7469        .99796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4018        .12360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1569        .11706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    69.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.238        23.409        .10260E-03   -1.4927    
  10  Prefactor     3.3109        7.5572        .22180E-03   -1.5344    
  11  norm          2.1941        4.1166        .19777E-03   -1.5412    
  12  norm          .10000E-03    .46824        .54480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     59.469        49.876        .52028E-04   -1.4164    
  14  Prefactor     11.173        16.994        .11985E-03   -1.5039    
  15  Prefactor     .10000E-03    15.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.399        39.829        .60164E-04   -1.4374    
  17  Prefactor     .10000E-03    30.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1126        .82292        .28813E-04   -1.5302    
  19  norm          4.5176        3.9632        .13362E-03   -1.5283    
  20  Prefactor     2.7926        6.1965        .24347E-03   -1.5374    
  21  Normalizat    .65948        .17181        .25776E-03   -1.0552    
  22  Prefactor     .93893        .16637        .21358E-03   -.94794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68907e-10
Minuit parameter uncertainties:
  1  9.72768
  2  1.19374e-06
  3  9.97936
  4  4.25778e-05
  5  0.00014951
  6  1.10055e-06
  7  9.41165e-07
  8  0.000230252
  9  23.4228
  10  7.55938
  11  4.11708
  12  1.8763e-07
  13  49.9113
  14  17.0015
  15  1.29362e-05
  16  39.8527
  17  0.000218669
  18  0.822918
  19  3.96339
  20  6.19791
  21  0.171947
  22  0.166458
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.389e-01  1.665e-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:  6.595e-01  1.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/12576/likelihoodResults_470534401_470793601_4FGL_J2331.3-1558_daily_bin892.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) = 6676.99516124
delta logL = 0.389946893989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6676.96605228
delta logL = 0.419055857898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.469       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7819       1.0000          .0000       10.000    
     3 'Normalizat'    .67548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92860       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.

 FCN=   6676.966     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.511        1093.7        .25459E-02    .58342E-04
   2  Index         1.7843        5.7805        .27218       -.45770E-04
   3  Normalizat    .67525        .20527        .41962E-01    .21802E-03
   4  Prefactor     .92892        .15083        .45369E-01    .31302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5112
  Index      = 1.78434
  Normalizat = 0.675247
  Prefactor  = 0.928917
 **********
 **   18 **HESSE 
 **********

 FCN=   6676.966     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.511        19.848        .10184E-03   -1.4920    
   2  Index         1.7843        .79449        .11193E-01   -.69858    
   3  Normalizat    .67525        .16796        .25511E-03   -1.0488    
   4  Prefactor     .92892        .16431        .21460E-03   -.95138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78547e-11
Minuit parameter uncertainties:
  1  19.8568
  2  0.800304
  3  0.168083
  4  0.164402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12576': 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) = 6676.96604539
delta logL = 0.419062740212

Extracting fit parameters...

4FGL J2331.3-1558
   Spectrum: PowerLaw
425    Prefactor:  1.551e+01  1.986e+01  1.000e-04  1.000e+04 ( 1.000e-13)
426        Index:  1.784e+00  8.003e-01  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:  9.289e-01  1.644e-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:  6.752e-01  1.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 352.839 -15.978
Photon Index (Free Index): 1.78 +/- 0.80
Photon Flux (Free Index): 1.21e-08 +/- 2.19e-08
Energy Flux (Free Index): 1.52e-05 +/- 2.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/12576/cmap_HighResolution_470534401_470793601_4FGL_J2331.3-1558_daily_bin892.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.64e-03', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='4.19e-01', photon_flux2='1.21e-08', job_status='DONE', time_completed='2021-09-29 23:25:24.858303', photon_index_error2='0.80', photon_index2='1.78', ts='0.86', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='9.80e-08', energy_flux_error2='2.34e-05', EG='0.66', time_epoch_completed='1632983124.86', return_code='0', job_id='12576', GAL2='0.93', EG2='0.68', return_code2='0', photon_flux_error2='2.19e-08', ts2='1.71', photon_index='2.54' WHERE bin_id='892' AND source_name='4FGL J2331.3-1558' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 23:25:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 12576: <4FGL_J2331.3-1558_daily_bin892> in cluster <slac> Done

Job <4FGL_J2331.3-1558_daily_bin892> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 23:11:00 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 23:11:02 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:11:02 2021
Terminated at Wed Sep 29 23:25:25 2021
Results reported at Wed Sep 29 23:25:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2331.3-1558_daily_bin892 352.839 -15.9777 470534401 470793601 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 :                                   628.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

