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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin328
RA = 351.883, Dec = -32.9869
tmin = 324345601, tmax = 324604801
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='914011', job_status='RUN', time_executed='2021-09-29 20:00:35.530512', time_epoch_executed='1632970835.53' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914011/ft1_4FGL_J2327.5-3259_daily_bin328.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914011/ft2_4FGL_J2327.5-3259_daily_bin328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914011/ft1_4FGL_J2327.5-3259_daily_bin328.fits outfile=/scratch/kocevski/914011/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin328.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=324345601.0 tmax=324604801.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 14.16
user 13.73
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914011/ft1_filtered_4FGL_J2327.5-3259_daily_bin328.fits" evtable="EVENTS" scfile=/scratch/kocevski/914011/ft2_4FGL_J2327.5-3259_daily_bin328.fits sctable="SC_DATA" outfile=/scratch/kocevski/914011/ltcube_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.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/914011/ft2_4FGL_J2327.5-3259_daily_bin328.fits
.....................!
real 10.83
user 10.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914011/ft1_filtered_4FGL_J2327.5-3259_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/914011/ft2_4FGL_J2327.5-3259_daily_bin328.fits sctable="SC_DATA" expcube=/scratch/kocevski/914011/ltcube_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.fits outfile=/scratch/kocevski/914011/expmap_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.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/914011/ltcube_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.fits
.....................!
real 191.03
user 184.97
sys 5.68

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/914011/ft1_filtered_4FGL_J2327.5-3259_daily_bin328.fits scfile=/scratch/kocevski/914011/ft2_4FGL_J2327.5-3259_daily_bin328.fits outfile=/scratch/kocevski/914011/cmap_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914011/ft1_filtered_4FGL_J2327.5-3259_daily_bin328.fits scfile=/scratch/kocevski/914011/ft2_4FGL_J2327.5-3259_daily_bin328.fits outfile=/scratch/kocevski/914011/cmap_HighResolution_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/914011/ft1_filtered_4FGL_J2327.5-3259_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/914011/ft2_4FGL_J2327.5-3259_daily_bin328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/914011/Model_4FGL_J2327.5-3259_daily_bin328.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/914011/ft1_filtered_4FGL_J2327.5-3259_daily_bin328.fits.........!
real 13.83
user 12.53
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/914011/ft1_filtered_4FGL_J2327.5-3259_daily_bin328.fits', '/scratch/kocevski/914011/ft2_4FGL_J2327.5-3259_daily_bin328.fits', expMap='/scratch/kocevski/914011/expmap_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.fits', expCube='/scratch/kocevski/914011/ltcube_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/914011/Model_4FGL_J2327.5-3259_daily_bin328.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/914011/ft1_filtered_4FGL_J2327.5-3259_daily_bin328.fits
Spacecraft file(s): /scratch/kocevski/914011/ft2_4FGL_J2327.5-3259_daily_bin328.fits
Exposure map: /scratch/kocevski/914011/expmap_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.fits
Exposure cube: /scratch/kocevski/914011/ltcube_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/914011/Model_4FGL_J2327.5-3259_daily_bin328.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 112.258352702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13896E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20578E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40860E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    56.554       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1041       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .45147       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=   108.9138     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     2754 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    417.75       -.82341E-06** at limit **
   2  Prefactor     .10000E-03    8.5885        .30537E-08** at limit **
   3  Prefactor     .10000E-03    64.239       -.80537E-07** at limit **
   4  Prefactor     .10000E-03    56.797        .67461E-07** at limit **
   5  Prefactor     .10000E-03    649.28        .33164E-06** at limit **
   6  Prefactor     .10000E-03    20.215       -.72685E-08** at limit **
   7  Prefactor     .10000E-03    53.919        .26098E-06** at limit **
   8  norm          .10000E-03    8.5777       -.90352E-09** at limit **
   9  Prefactor     .10000E-03    27.848        .42644E-07** at limit **
  10  Prefactor     .10000E-03    11.357       -.33587E-11** at limit **
  11  norm          .10000E-03    1.0328        .22905E-09** at limit **
  12  Prefactor     .10000E-03    150.25        .21685E-06** at limit **
  13  Prefactor     .10000E-03    17.724        .66611E-08** at limit **
  14  norm          .10000E-03    43.678        .12343E-06** at limit **
  15  norm          .10000E-03    28.498        .21650E-07** at limit **
  16  Prefactor     .10004E-03    2156.2        .66926E-05** at limit **
  17  Prefactor     .10000E-03    128.30       -.12714E-06** at limit **
  18  norm          56.446        37.682       -.38587E-05    .32332E-05
  19  norm          .10000E-03    6.3947        .70725E-09** at limit **
  20  Prefactor     .10000E-03    53.196        .86581E-07** at limit **
  21  norm          .10000E-03    13.646        .42790E-07** at limit **
  22  Prefactor     .10000E-03    224.25        .50216E-06** at limit **
  23  Prefactor     .10000E-03    215.65        .58858E-06** at limit **
  24  Prefactor     1.0992        220.15        .68353E-05    .13462E-05
  25  Prefactor     .10000E-03    115.59       -.29573E-06** at limit **
  26  Normalizat    .10000E-01    .18495        .22565E-05** at limit **
  27  Prefactor     .45176        .29723       -.45795E-05   -.18448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  norm       = 56.4463
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 1.0992
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.451758
 **********
 **   18 **HESSE 
 **********

 FCN=   108.9138     FROM HESSE     STATUS=OK           464 CALLS     3218 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    417.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.5884        .29940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    64.238        .81960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    56.797        .77057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    649.95        .20203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.215        .45943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.972        .75095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.5777        .29922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.848        .53931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.357        .34431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0328        .10381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    150.25        .12553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.724        .43018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    43.699        .67560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    28.498        .54554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    2186.2        .19468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    128.29        .11595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          56.446        37.404        .49853E-04   -1.4204    
  19  norm          .10000E-03    6.3946        .25834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.195        .74569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.648        .37745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    224.24        .15354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    215.65        .15055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.0992        218.32        .25855E-03   -1.5498    
  25  Prefactor     .10000E-03    115.58        .11003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .18717        .13870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .45176        .29199        .12347E-03   -1.1424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60064e-11
Minuit parameter uncertainties:
  1  0.00193742
  2  1.31205e-07
  3  6.59929e-05
  4  5.0129e-05
  5  0.000496016
  6  3.51296e-06
  7  0.00017977
  8  2.87382e-07
  9  2.2504e-05
  10  3.74055e-08
  11  1.71265e-08
  12  0.000252558
  13  2.76931e-06
  14  7.68888e-05
  15  1.29016e-06
  16  0.0182366
  17  0.000154494
  18  37.42
  19  1.19886e-07
  20  6.27137e-05
  21  1.63357e-05
  22  0.000735133
  23  0.000762374
  24  31.0965
  25  0.000328362
  26  1.84211e-06
  27  0.292958
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  1.545e-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:  4.518e-01  2.930e-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.000e-02  1.842e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.883 -32.987
Photon Flux Upper Limit: 5.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/914011/likelihoodResults_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.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) = 108.913836424
delta logL = -3.69541038481e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 108.91379982
delta logL = -3.50812186412e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0957       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45175       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=   108.9138     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11307E-03    229.73        .85900E-02** at limit **
   2  Index         2.8929        8.5185        .50000        .36255E-05
   3  Normalizat    .10000E-01    .99388E-03    .13870E-02** at limit **
   4  Prefactor     .45176        .18233E-01    .12347E-03   -.88481E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00011307
  Index      = 2.89285
  Normalizat = 0.01
  Prefactor  = 0.451759
 **********
 **   18 **HESSE 
 **********

 FCN=   108.9138     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11307E-03    1667.3        .95865E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8929        5.7943        .50000       -.43502    
   3  Normalizat    .10000E-01    .78676E-02    .27740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45176        .51303E-01    .49387E-05   -1.1424    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.46957e-08
Minuit parameter uncertainties:
  1  0.304123
  2  1945.81
  3  7.84714e-07
  4  0.0513083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914011': 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) = 108.913799723
delta logL = -2.53795946037e-07

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  1.131e-04  3.041e-01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  2.893e+00  1.946e+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:  4.518e-01  5.131e-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.000e-02  7.847e-07  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/914011/cmap_HighResolution_324345601_324604801_4FGL_J2327.5-3259_daily_bin328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-02', job_status='DONE', photon_flux_upper_limit='5.31e-07', time_completed='2021-09-29 20:06:59.823073', job_id='914011', GAL2='0.45', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632971219.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='-2.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='328' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:06:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 914011: <4FGL_J2327.5-3259_daily_bin328> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin328> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 20:00:18 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 20:00:20 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:00:20 2021
Terminated at Wed Sep 29 20:07:00 2021
Results reported at Wed Sep 29 20:07:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin328 351.883 -32.9869 324345601 324604801 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 :                                   380.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             502.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   400 sec.
    Turnaround time :                            402 sec.

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

