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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin138
RA = 351.883, Dec = -32.9869
tmin = 275097601, tmax = 275356801
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='912654', job_status='RUN', time_executed='2021-09-29 19:57:43.621482', time_epoch_executed='1632970663.62' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912654

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912654/ft1_4FGL_J2327.5-3259_daily_bin138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912654/ft2_4FGL_J2327.5-3259_daily_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912654/ft1_4FGL_J2327.5-3259_daily_bin138.fits outfile=/scratch/kocevski/912654/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin138.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=275097601.0 tmax=275356801.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.95
user 4.69
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912654/ft2_4FGL_J2327.5-3259_daily_bin138.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/912654/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin138.fits evtable="EVENTS" outfile="/scratch/kocevski/912654/ft1_filtered_4FGL_J2327.5-3259_daily_bin138.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912654/ft1_filtered_4FGL_J2327.5-3259_daily_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/912654/ft2_4FGL_J2327.5-3259_daily_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/912654/ltcube_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.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/912654/ft2_4FGL_J2327.5-3259_daily_bin138.fits
.....................!
real 15.39
user 14.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912654/ft1_filtered_4FGL_J2327.5-3259_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/912654/ft2_4FGL_J2327.5-3259_daily_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/912654/ltcube_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.fits outfile=/scratch/kocevski/912654/expmap_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.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/912654/ltcube_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.fits
.....................!
real 192.37
user 186.76
sys 5.25

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/912654/ft1_filtered_4FGL_J2327.5-3259_daily_bin138.fits scfile=/scratch/kocevski/912654/ft2_4FGL_J2327.5-3259_daily_bin138.fits outfile=/scratch/kocevski/912654/cmap_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912654/ft1_filtered_4FGL_J2327.5-3259_daily_bin138.fits scfile=/scratch/kocevski/912654/ft2_4FGL_J2327.5-3259_daily_bin138.fits outfile=/scratch/kocevski/912654/cmap_HighResolution_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912654/ft1_filtered_4FGL_J2327.5-3259_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/912654/ft2_4FGL_J2327.5-3259_daily_bin138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912654/Model_4FGL_J2327.5-3259_daily_bin138.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/912654/ft1_filtered_4FGL_J2327.5-3259_daily_bin138.fits.....................!
real 30.13
user 28.85
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/912654/ft1_filtered_4FGL_J2327.5-3259_daily_bin138.fits', '/scratch/kocevski/912654/ft2_4FGL_J2327.5-3259_daily_bin138.fits', expMap='/scratch/kocevski/912654/expmap_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.fits', expCube='/scratch/kocevski/912654/ltcube_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/912654/Model_4FGL_J2327.5-3259_daily_bin138.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/912654/ft1_filtered_4FGL_J2327.5-3259_daily_bin138.fits
Spacecraft file(s): /scratch/kocevski/912654/ft2_4FGL_J2327.5-3259_daily_bin138.fits
Exposure map: /scratch/kocevski/912654/expmap_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.fits
Exposure cube: /scratch/kocevski/912654/ltcube_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/912654/Model_4FGL_J2327.5-3259_daily_bin138.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) = 3003.3902304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4646       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5682       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7959       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5833       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11205E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.3323       1.0000         .10000E-03   10000.    
    16 'Prefactor '    139.20       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.182       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1336       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .57661       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=   3003.371     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3739 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5294        365.29       -.17131E-05    .99185E-05
   2  Prefactor     4.5675        4.8163       -.27723E-07    .39969E-04
   3  Prefactor     .10000E-03    11.091        .97376E-07** at limit **
   4  Prefactor     .10000E-03    17.767        .17231E-06** at limit **
   5  Prefactor     2.8081        257.41        .29371E-06    .21156E-05
   6  Prefactor     .10000E-03    31.014       -.12738E-06** at limit **
   7  Prefactor     .10000E-03    8.5443       -.11230E-06** at limit **
   8  norm          .10000E-03    1.6119       -.31707E-07** at limit **
   9  Prefactor     .10000E-03    12.331       -.26093E-07** at limit **
  10  Prefactor     .10000E-03    12.194       -.15561E-06** at limit **
  11  norm          1.5834        .78440        .11753E-07    .51303E-04
  12  Prefactor     .10000E-03    82.601       -.23793E-06** at limit **
  13  Prefactor     .10000E-03    8.1654       -.98107E-07** at limit **
  14  norm          .10000E-03    3.9754       -.61589E-06** at limit **
  15  norm          6.3318        10.014        .96676E-08    .23573E-04
  16  Prefactor     139.16        59.923        .46105E-06    .10421E-03
  17  Prefactor     .10000E-03    82.637       -.49993E-06** at limit **
  18  norm          .10000E-03    7.6238       -.33616E-05** at limit **
  19  norm          .10000E-03    2.6251       -.12423E-06** at limit **
  20  Prefactor     .10000E-03    23.843       -.19742E-06** at limit **
  21  norm          .10000E-03    2.3713       -.62869E-06** at limit **
  22  Prefactor     .10000E-03    76.583        .33464E-07** at limit **
  23  Prefactor     28.191        54.382       -.13513E-06    .69118E-05
  24  Prefactor     .10000E-03    2.7860        .43258E-07** at limit **
  25  Prefactor     .10000E-03    23.069        .80628E-07** at limit **
  26  Normalizat    1.1340        .22764        .33446E-06    .79491E-04
  27  Prefactor     .57615        .22571        .45611E-06    .54515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.52943
  Prefactor  = 4.56755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.33183
  Prefactor  = 139.161
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.1915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13402
  Prefactor  = 0.576151
 **********
 **   18 **HESSE 
 **********

 FCN=   3003.371     FROM HESSE     STATUS=OK           476 CALLS     4215 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5294        359.64        .17189E-03   -1.5238    
   2  Prefactor     4.5675        4.8270        .11823E-03   -1.5280    
   3  Prefactor     .10000E-03    11.093        .17826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8081        255.84        .24331E-03   -1.5373    
   6  Prefactor     .10000E-03    31.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5795        .15645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6146        .67945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5834        .78126        .32710E-04   -1.5456    
  12  Prefactor     .10000E-03    82.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.2002        .15290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.9807        .10661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.3318        10.007        .15951E-03   -1.5205    
  16  Prefactor     139.16        60.646        .17071E-03   -1.3343    
  17  Prefactor     .10000E-03    82.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.6235        .14606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6802        .86704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3779        .82378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    76.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.191        54.373        .75466E-04   -1.4646    
  24  Prefactor     .10000E-03    2.7954        .89319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1340        .26606        .20459E-03   -.88667    
  27  Prefactor     .57615        .26206        .28329E-03   -1.0860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58229e-11
Minuit parameter uncertainties:
  1  89.7557
  2  4.8274
  3  1.1976e-05
  4  1.65576e-05
  5  53.8448
  6  4.559e-06
  7  1.23109e-06
  8  7.30066e-07
  9  3.52412e-06
  10  1.31072e-05
  11  0.781266
  12  9.22247e-05
  13  3.10155e-06
  14  3.19856e-06
  15  10.0095
  16  60.6729
  17  0.000106526
  18  1.58661e-05
  19  1.41467e-06
  20  3.50031e-05
  21  8.56217e-07
  22  9.38471e-05
  23  54.4688
  24  1.30842e-06
  25  3.07219e-05
  26  0.26638
  27  0.262616
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  1.065e-04  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:  5.762e-01  2.626e-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.134e+00  2.664e-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: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912654/likelihoodResults_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.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) = 3003.3713961
delta logL = -5.73414818064e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3003.37133876
delta logL = -1.848093234e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0460       1.0000          .0000       10.000    
     3 'Normalizat'    1.1340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57615       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=   3003.371     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      272 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10075E-03    1002.7        .18142E-02** at limit **
   2  Index         2.9985        5.3145        .50000        .10601E-05
   3  Normalizat    1.1340        .18565E-01    .20459E-03    .74145E-04
   4  Prefactor     .57615        .18942E-01    .28329E-03    .39087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100753
  Index      = 2.99854
  Normalizat = 1.13402
  Prefactor  = 0.57615
 **********
 **   18 **HESSE 
 **********

 FCN=   3003.371     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10075E-03    6923.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9985        7.4358        .50000       -.41184    
   3  Normalizat    1.1340        .40330E-01    .40918E-04   -.88667    
   4  Prefactor     .57615        .41148E-01    .11332E-04   -1.0860    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.39509e-10
Minuit parameter uncertainties:
  1  0.116103
  2  2807.86
  3  0.0403316
  4  0.0411498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912654': 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) = 3003.37133872
delta logL = 3.93488335249e-08

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.008e-04  1.161e-01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.999e+00  2.808e+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:  5.762e-01  4.115e-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.134e+00  4.033e-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/912654/cmap_HighResolution_275097601_275356801_4FGL_J2327.5-3259_daily_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.43e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-29 20:07:06.450085', job_id='912654', GAL2='0.58', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632971226.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='3.93e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='138' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:07:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 912654: <4FGL_J2327.5-3259_daily_bin138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin138 351.883 -32.9869 275097601 275356801 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 :                                   559.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

