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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin1465
RA = 351.883, Dec = -32.9869
tmin = 619056001, tmax = 619315201
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='918836', job_status='RUN', time_executed='2021-09-29 20:17:13.274011', time_epoch_executed='1632971833.27' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918836/ft1_4FGL_J2327.5-3259_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918836/ft2_4FGL_J2327.5-3259_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918836/ft1_4FGL_J2327.5-3259_daily_bin1465.fits outfile=/scratch/kocevski/918836/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1465.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=619056001.0 tmax=619315201.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.60
user 3.38
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/918836/ft2_4FGL_J2327.5-3259_daily_bin1465.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918836/ft2_4FGL_J2327.5-3259_daily_bin1465.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/918836/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin1465.fits evtable="EVENTS" outfile="/scratch/kocevski/918836/ft1_filtered_4FGL_J2327.5-3259_daily_bin1465.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918836/ft1_filtered_4FGL_J2327.5-3259_daily_bin1465.fits" evtable="EVENTS" scfile=/scratch/kocevski/918836/ft2_4FGL_J2327.5-3259_daily_bin1465.fits sctable="SC_DATA" outfile=/scratch/kocevski/918836/ltcube_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.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/918836/ft2_4FGL_J2327.5-3259_daily_bin1465.fits
.....................!
real 11.88
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918836/ft1_filtered_4FGL_J2327.5-3259_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/918836/ft2_4FGL_J2327.5-3259_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/918836/ltcube_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.fits outfile=/scratch/kocevski/918836/expmap_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.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/918836/ltcube_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.fits
.....................!
real 192.87
user 187.43
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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J2327.5-3259 @ 351.883 -32.9869

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/918836/ft1_filtered_4FGL_J2327.5-3259_daily_bin1465.fits scfile=/scratch/kocevski/918836/ft2_4FGL_J2327.5-3259_daily_bin1465.fits outfile=/scratch/kocevski/918836/cmap_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.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=351.883 yref=-32.9869 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918836/ft1_filtered_4FGL_J2327.5-3259_daily_bin1465.fits scfile=/scratch/kocevski/918836/ft2_4FGL_J2327.5-3259_daily_bin1465.fits outfile=/scratch/kocevski/918836/cmap_HighResolution_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.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=351.883 yref=-32.9869 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/918836/ft1_filtered_4FGL_J2327.5-3259_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/918836/ft2_4FGL_J2327.5-3259_daily_bin1465.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/918836/Model_4FGL_J2327.5-3259_daily_bin1465.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/918836/ft1_filtered_4FGL_J2327.5-3259_daily_bin1465.fits.....................!
real 36.41
user 35.13
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/918836/ft1_filtered_4FGL_J2327.5-3259_daily_bin1465.fits', '/scratch/kocevski/918836/ft2_4FGL_J2327.5-3259_daily_bin1465.fits', expMap='/scratch/kocevski/918836/expmap_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.fits', expCube='/scratch/kocevski/918836/ltcube_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/918836/Model_4FGL_J2327.5-3259_daily_bin1465.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2327.5-3259'

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  7.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.557e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
456        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/918836/ft1_filtered_4FGL_J2327.5-3259_daily_bin1465.fits
Spacecraft file(s): /scratch/kocevski/918836/ft2_4FGL_J2327.5-3259_daily_bin1465.fits
Exposure map: /scratch/kocevski/918836/expmap_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.fits
Exposure cube: /scratch/kocevski/918836/ltcube_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/918836/Model_4FGL_J2327.5-3259_daily_bin1465.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) = 4232.9185988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7632       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.601       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2556       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8136       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6711       1.0000         .10000E-03   10000.    
    12 'Prefactor '    74.121       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.719       1.0000         .10000E-03   10000.    
    14 'norm      '    4.9694       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1762       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11440E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    25.712       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    59.560       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    52.106       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0248       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4232.917     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     4001 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.617       -.31977E-05** at limit **
   2  Prefactor     2.7632        3.5639        .18867E-06   -.12419E-04
   3  Prefactor     19.601        31.459        .10548E-05   -.12130E-04
   4  Prefactor     20.501        27.262        .71799E-06    .35608E-04
   5  Prefactor     .10000E-03    48.457       -.17911E-04** at limit **
   6  Prefactor     1.2574        4.3187        .15912E-05   -.82005E-03
   7  Prefactor     .10000E-03    4.4900       -.13449E-07** at limit **
   8  norm          .10000E-03    3.0203        .10965E-06** at limit **
   9  Prefactor     14.468        17.212        .22271E-05    .53728E-04
  10  Prefactor     4.8042        18.256       -.10462E-04   -.12948E-03
  11  norm          1.6711        1.0609        .95050E-08    .13670E-03
  12  Prefactor     74.125        67.335        .28465E-05    .17277E-04
  13  Prefactor     11.728        23.179        .89707E-05    .11292E-03
  14  norm          4.9701        6.0874        .73428E-06   -.20916E-03
  15  norm          .10000E-03    11.759       -.11701E-05** at limit **
  16  Prefactor     8.1717        44.475       -.61066E-05   -.50684E-04
  17  Prefactor     .10000E-03    25.203       -.43564E-05** at limit **
  18  norm          .10000E-03    5.3300        .45506E-06** at limit **
  19  norm          25.712        7.4241       -.85939E-07   -.11894E-03
  20  Prefactor     .10000E-03    39.940        .11924E-04** at limit **
  21  norm          .10000E-03    1.5240        .22102E-07** at limit **
  22  Prefactor     59.561        175.60        .23362E-05   -.92268E-05
  23  Prefactor     .10000E-03    40.272        .11198E-04** at limit **
  24  Prefactor     .10000E-03    14.977        .33143E-05** at limit **
  25  Prefactor     52.098        66.838       -.80163E-05   -.73172E-04
  26  Normalizat    1.0247        .24292        .28137E-05   -.15288E-03
  27  Prefactor     .96786        .24372       -.27874E-05    .27783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.76323
  Prefactor  = 19.6014
  Prefactor  = 20.501
  Prefactor  = 0.0001
  Prefactor  = 1.25743
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.4683
  Prefactor  = 4.80419
  norm       = 1.67113
  Prefactor  = 74.1247
  Prefactor  = 11.7276
  norm       = 4.97009
  norm       = 0.0001
  Prefactor  = 8.17173
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.712
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.5613
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 52.0975
  Normalizat = 1.02472
  Prefactor  = 0.967857
 **********
 **   18 **HESSE 
 **********

 FCN=   4232.917     FROM HESSE     STATUS=OK           482 CALLS     4483 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7632        3.5481        .12992E-03   -1.5375    
   3  Prefactor     19.601        31.421        .90467E-04   -1.4822    
   4  Prefactor     20.501        27.334        .88463E-04   -1.4802    
   5  Prefactor     .10000E-03    48.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2574        31.440        .19928E-02   -1.5484    
   7  Prefactor     .10000E-03    4.4972        .13464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.0321        .11027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.468        17.126        .10531E-03   -1.4947    
  10  Prefactor     4.8042        18.009        .18336E-03   -1.5270    
  11  norm          1.6711        1.0621        .43476E-04   -1.5449    
  12  Prefactor     74.125        67.372        .46635E-04   -1.3984    
  13  Prefactor     11.728        22.972        .11702E-03   -1.5023    
  14  norm          4.9701        5.6948        .15516E-03   -1.5262    
  15  norm          .10000E-03    11.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.1717        38.815        .14021E-03   -1.5136    
  17  Prefactor     .10000E-03    25.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.1649        .24410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          25.712        7.4281        .79001E-04   -1.4693    
  20  Prefactor     .10000E-03    39.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.5273        .78411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     59.561        176.62        .51987E-04   -1.4163    
  23  Prefactor     .10000E-03    40.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     52.098        67.282        .55561E-04   -1.4263    
  26  Normalizat    1.0247        .28964        .25382E-03   -.92207    
  27  Prefactor     .96786        .28661        .13766E-02   -.93809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50771e-09
Minuit parameter uncertainties:
  1  2.7128e-05
  2  3.54834
  3  31.4475
  4  27.3512
  5  0.000205079
  6  12.5821
  7  1.17459e-06
  8  2.34615e-05
  9  17.1316
  10  18.0288
  11  1.06207
  12  67.4417
  13  22.9893
  14  5.69543
  15  1.88748e-07
  16  35.657
  17  3.59397e-05
  18  9.34861e-05
  19  7.42838
  20  8.25344e-05
  21  2.79334e-06
  22  178.208
  23  0.00017847
  24  0.00020424
  25  67.3798
  26  0.290088
  27  0.287058
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  3.594e-05  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.557e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
456        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.679e-01  2.871e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.025e+00  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 8.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918836/likelihoodResults_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.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) = 4232.91673267
delta logL = -0.000189018907804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4232.91654442
delta logL = -7.70186488808e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7259       1.0000          .0000       10.000    
     3 'Normalizat'    1.0247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96786       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   4232.917     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      267 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    240.10        .18142E-01** at limit **
   2  Index         2.4786        5.9329        .41732        .24273E-07
   3  Normalizat    1.0247        .16845E-01    .25382E-03    .87385E-04
   4  Prefactor     .96785        .17900E-01    .27533E-03    .83863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47864
  Normalizat = 1.02472
  Prefactor  = 0.967853
 **********
 **   18 **HESSE 
 **********

 FCN=   4232.917     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1693.0        .31907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4786        5.8177        .50000       -.52854    
   3  Normalizat    1.0247        .49582E-01    .10153E-04   -.92207    
   4  Prefactor     .96785        .52687E-01    .11013E-04   -.93809    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02694e-09
Minuit parameter uncertainties:
  1  0.000352945
  2  4610.43
  3  0.0495839
  4  0.0526896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918836': 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) = 4232.91654365
delta logL = 4.01814759243e-09

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  3.529e-04  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.479e+00  4.610e+03  0.000e+00  1.000e+01 (-1.000e+00)
456        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.679e-01  5.269e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.025e+00  4.958e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.883 -32.987

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/918836/cmap_HighResolution_619056001_619315201_4FGL_J2327.5-3259_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-29 20:28:38.745025', job_id='918836', GAL2='0.97', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632972518.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.02e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1465' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:28:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 918836: <4FGL_J2327.5-3259_daily_bin1465> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin1465> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 20:15:24 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:15:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 20:15:25 2021
Terminated at Wed Sep 29 20:28:39 2021
Results reported at Wed Sep 29 20:28:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin1465 351.883 -32.9869 619056001 619315201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2327.5-3259 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   659.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

