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


Performing analysis on: 4FGL_J2327.5-3259_daily_bin288
RA = 351.883, Dec = -32.9869
tmin = 313977601, tmax = 314236801
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='912876', job_status='RUN', time_executed='2021-09-29 19:55:55.006894', time_epoch_executed='1632970555.01' WHERE source_name='4FGL J2327.5-3259' and cadence='daily' and bin_id='288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912876

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912876/ft1_4FGL_J2327.5-3259_daily_bin288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912876/ft2_4FGL_J2327.5-3259_daily_bin288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912876/ft1_4FGL_J2327.5-3259_daily_bin288.fits outfile=/scratch/kocevski/912876/ft1_filteredMKT_4FGL_J2327.5-3259_daily_bin288.fits ra=351.883 dec=-32.9869 rad=12.0 tmin=313977601.0 tmax=314236801.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.44
user 3.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912876/ft1_filtered_4FGL_J2327.5-3259_daily_bin288.fits" evtable="EVENTS" scfile=/scratch/kocevski/912876/ft2_4FGL_J2327.5-3259_daily_bin288.fits sctable="SC_DATA" outfile=/scratch/kocevski/912876/ltcube_313977601_314236801_4FGL_J2327.5-3259_daily_bin288.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/912876/ft2_4FGL_J2327.5-3259_daily_bin288.fits
.....................!
real 12.30
user 11.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912876/ft1_filtered_4FGL_J2327.5-3259_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/912876/ft2_4FGL_J2327.5-3259_daily_bin288.fits sctable="SC_DATA" expcube=/scratch/kocevski/912876/ltcube_313977601_314236801_4FGL_J2327.5-3259_daily_bin288.fits outfile=/scratch/kocevski/912876/expmap_313977601_314236801_4FGL_J2327.5-3259_daily_bin288.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/912876/ltcube_313977601_314236801_4FGL_J2327.5-3259_daily_bin288.fits
.....................!
real 191.67
user 185.78
sys 5.57

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/912876/ft1_filtered_4FGL_J2327.5-3259_daily_bin288.fits scfile=/scratch/kocevski/912876/ft2_4FGL_J2327.5-3259_daily_bin288.fits outfile=/scratch/kocevski/912876/cmap_313977601_314236801_4FGL_J2327.5-3259_daily_bin288.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912876/ft1_filtered_4FGL_J2327.5-3259_daily_bin288.fits scfile=/scratch/kocevski/912876/ft2_4FGL_J2327.5-3259_daily_bin288.fits outfile=/scratch/kocevski/912876/cmap_HighResolution_313977601_314236801_4FGL_J2327.5-3259_daily_bin288.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.59
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912876/ft1_filtered_4FGL_J2327.5-3259_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/912876/ft2_4FGL_J2327.5-3259_daily_bin288.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912876/Model_4FGL_J2327.5-3259_daily_bin288.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/912876/ft1_filtered_4FGL_J2327.5-3259_daily_bin288.fits.....................!
real 48.78
user 47.55
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1456       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.503       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23491E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.313       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.991       1.0000         .10000E-03   10000.    
    11 'norm      '    .34857       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20862E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5853       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6240       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4502       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .91585E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3799       1.0000         .10000E-03   10000.    
    18 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4473       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18328E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95700       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81994       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=   6876.026     FROM MIGRAD    STATUS=CONVERGED   1169 CALLS     3382 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.838        .18142E-02** at limit **
   2  Prefactor     .10000E-03    .83805        .73394E-03** at limit **
   3  Prefactor     4.7909        5.6820        .18379E-03   -.14475E-04
   4  Prefactor     8.1474        22.193        .14048E-03   -.11816E-04
   5  Prefactor     30.501        26.398        .72545E-04    .12380E-04
   6  Prefactor     .10018E-03    55.941        .38230E-02** at limit **
   7  Prefactor     .10000E-03    1.9145        .11197E-02** at limit **
   8  norm          11.312        4.6230        .10140E-03   -.44508E-04
   9  Prefactor     .10000E-03    5.4704        .18142E-02** at limit **
  10  Prefactor     11.994        10.245        .11568E-03    .85008E-04
  11  norm          .34810        .45771        .53569E-03    .11880E-02
  12  Prefactor     .10000E-03    203.28        .18142E-02** at limit **
  13  Prefactor     1.5879        14.023        .33717E-03   -.25120E-04
  14  norm          2.6240        2.6066        .12924E-03    .35715E-04
  15  norm          5.4503        7.9628        .17212E-03    .37187E-04
  16  Prefactor     .10001E-03    30.563        .10633    ** at limit **
  17  Prefactor     5.3749        58.599        .17326E-03   -.71522E-05
  18  norm          .10000E-03    1.5656        .10035E-02** at limit **
  19  norm          .10000E-03    .88826        .75952E-03** at limit **
  20  Prefactor     2.4154        30.148        .13075E-02    .77703E-04
  21  norm          .10000E-03    1.0033        .80826E-03** at limit **
  22  Prefactor     .10000E-03    166.28        .18142E-02** at limit **
  23  Prefactor     .10000E-03    21.742        .18142E-02** at limit **
  24  Prefactor     .10000E-03    1.0272        .81876E-03** at limit **
  25  Prefactor     .10000E-03    17.310        .18142E-02** at limit **
  26  Normalizat    .95681        .17648        .20857E-03    .64266E-04
  27  Prefactor     .82015        .18778        .24668E-03   -.93186E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.79089
  Prefactor  = 8.1474
  Prefactor  = 30.5008
  Prefactor  = 0.000100183
  Prefactor  = 0.0001
  norm       = 11.3124
  Prefactor  = 0.0001
  Prefactor  = 11.9941
  norm       = 0.348102
  Prefactor  = 0.0001
  Prefactor  = 1.58787
  norm       = 2.62403
  norm       = 5.45025
  Prefactor  = 0.000100006
  Prefactor  = 5.37492
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.41535
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.956808
  Prefactor  = 0.820152
 **********
 **   18 **HESSE 
 **********

 FCN=   6876.026     FROM HESSE     STATUS=OK           474 CALLS     3856 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .83816        .14679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7909        5.6820        .73516E-05   -1.5270    
   4  Prefactor     8.1474        22.191        .56190E-05   -1.5137    
   5  Prefactor     30.501        26.394        .29018E-05   -1.4603    
   6  Prefactor     .10018E-03    56.984        .76461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9145        .22393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.312        4.6239        .40562E-05   -1.5035    
   9  Prefactor     .10000E-03    5.4706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.994        10.244        .46273E-05   -1.5015    
  11  norm          .34810        .45751        .21428E-04   -1.5590    
  12  Prefactor     .10000E-03    203.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5879        13.960        .13487E-04   -1.5456    
  14  norm          2.6240        2.6065        .51695E-05   -1.5384    
  15  norm          5.4503        7.9618        .68847E-05   -1.5241    
  16  Prefactor     .10001E-03    29.217        .10926       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3749        58.606        .69303E-05   -1.5244    
  18  norm          .10000E-03    1.5658        .20071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .88831        .15190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4154        30.117        .26150E-03   -1.5397    
  21  norm          .10000E-03    1.0034        .16165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    166.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.0273        .16375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95681        .17665        .83426E-05   -.94492    
  27  Prefactor     .82015        .18801        .98673E-05   -.98990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38169e-09
Minuit parameter uncertainties:
  1  2.13444e-05
  2  7.37296e-08
  3  5.68264
  4  22.213
  5  26.4038
  6  0.00647189
  7  2.49806e-07
  8  4.62408
  9  1.85464e-05
  10  10.2452
  11  0.457516
  12  0.000242621
  13  9.41908
  14  2.60659
  15  7.96331
  16  0.000840161
  17  35.5408
  18  1.72281e-06
  19  1.74263e-06
  20  17.0681
  21  4.23526e-07
  22  0.00031767
  23  6.9119e-06
  24  1.70521e-07
  25  1.74894e-05
  26  0.176759
  27  0.188161
Done.

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

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  5.375e+00  3.554e+01  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:  8.202e-01  1.882e-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:  9.568e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/912876/likelihoodResults_313977601_314236801_4FGL_J2327.5-3259_daily_bin288.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) = 6875.96896219
delta logL = 0.0574837463992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6875.96734899
delta logL = 0.0590969506575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7276       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3804       1.0000          .0000       10.000    
     3 'Normalizat'    .94602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82738       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6875.967     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      348 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7806        70.573        .92531E-03   -.90096E-04
   2  Index         3.3792        3.7887        .88565E-02   -.13019E-04
   3  Normalizat    .94606        .16943        .20964E-03    .18059E-04
   4  Prefactor     .82721        .18441        .24574E-03   -.23872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.78055
  Index      = 3.3792
  Normalizat = 0.946057
  Prefactor  = 0.82721
 **********
 **   18 **HESSE 
 **********

 FCN=   6875.967     FROM HESSE     STATUS=OK            25 CALLS      373 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7806        25.434        .37012E-04   -1.5271    
   2  Index         3.3792        2.5007        .35426E-03   -.33012    
   3  Normalizat    .94606        .16978        .83855E-05   -.94860    
   4  Prefactor     .82721        .18454        .98294E-05   -.98733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71886e-11
Minuit parameter uncertainties:
  1  22.068
  2  2.63486
  3  0.169872
  4  0.184675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912876': 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) = 6875.96734209
delta logL = 0.0591038467992

Extracting fit parameters...

4FGL J2327.5-3259
   Spectrum: PowerLaw
454    Prefactor:  4.781e+00  2.207e+01  1.000e-04  1.000e+04 ( 1.000e-13)
455        Index:  3.379e+00  2.635e+00  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:  8.272e-01  1.847e-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:  9.461e-01  1.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/912876/cmap_HighResolution_313977601_314236801_4FGL_J2327.5-3259_daily_bin288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-09-29 20:10:03.523014', job_id='912876', GAL2='0.83', fit_tolerance='1e-08', EG2='0.95', EG='0.96', time_epoch_completed='1632971403.52', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='5.91e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='288' AND source_name='4FGL J2327.5-3259' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 20:10:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 912876: <4FGL_J2327.5-3259_daily_bin288> in cluster <slac> Done

Job <4FGL_J2327.5-3259_daily_bin288> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 19:55:43 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:55:45 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:45 2021
Terminated at Wed Sep 29 20:10:04 2021
Results reported at Wed Sep 29 20:10:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2327.5-3259_daily_bin288 351.883 -32.9869 313977601 314236801 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 :                                   844.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

