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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1598
RA = 351.737, Dec = -41.5089
tmin = 653529601, tmax = 653788801
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='904678', job_status='RUN', time_executed='2021-09-29 19:31:08.683612', time_epoch_executed='1632969068.68' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/904678

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/904678/ft1_4FGL_J2326.9-4130_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/904678/ft2_4FGL_J2326.9-4130_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/904678/ft1_4FGL_J2326.9-4130_daily_bin1598.fits outfile=/scratch/kocevski/904678/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1598.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=653529601.0 tmax=653788801.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 5.29
user 5.01
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/904678/ft2_4FGL_J2326.9-4130_daily_bin1598.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/904678/ft2_4FGL_J2326.9-4130_daily_bin1598.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/904678/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1598.fits evtable="EVENTS" outfile="/scratch/kocevski/904678/ft1_filtered_4FGL_J2326.9-4130_daily_bin1598.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/904678/ft1_filtered_4FGL_J2326.9-4130_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/904678/ft2_4FGL_J2326.9-4130_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/904678/ltcube_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.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/904678/ft2_4FGL_J2326.9-4130_daily_bin1598.fits
.....................!
real 11.99
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/904678/ft1_filtered_4FGL_J2326.9-4130_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/904678/ft2_4FGL_J2326.9-4130_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/904678/ltcube_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.fits outfile=/scratch/kocevski/904678/expmap_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.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/904678/ltcube_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.fits
.....................!
real 191.16
user 185.27
sys 5.38

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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J2326.9-4130 @ 351.737 -41.5089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/904678/ft1_filtered_4FGL_J2326.9-4130_daily_bin1598.fits scfile=/scratch/kocevski/904678/ft2_4FGL_J2326.9-4130_daily_bin1598.fits outfile=/scratch/kocevski/904678/cmap_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.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.737 yref=-41.5089 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/904678/ft1_filtered_4FGL_J2326.9-4130_daily_bin1598.fits scfile=/scratch/kocevski/904678/ft2_4FGL_J2326.9-4130_daily_bin1598.fits outfile=/scratch/kocevski/904678/cmap_HighResolution_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.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.737 yref=-41.5089 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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/904678/ft1_filtered_4FGL_J2326.9-4130_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/904678/ft2_4FGL_J2326.9-4130_daily_bin1598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/904678/Model_4FGL_J2326.9-4130_daily_bin1598.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/904678/ft1_filtered_4FGL_J2326.9-4130_daily_bin1598.fits.....................!
real 45.71
user 44.25
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/904678/ft1_filtered_4FGL_J2326.9-4130_daily_bin1598.fits', '/scratch/kocevski/904678/ft2_4FGL_J2326.9-4130_daily_bin1598.fits', expMap='/scratch/kocevski/904678/expmap_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.fits', expCube='/scratch/kocevski/904678/ltcube_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/904678/Model_4FGL_J2326.9-4130_daily_bin1598.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2326.9-4130'

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  7.129e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.777e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
437        Scale:  7.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/904678/ft1_filtered_4FGL_J2326.9-4130_daily_bin1598.fits
Spacecraft file(s): /scratch/kocevski/904678/ft2_4FGL_J2326.9-4130_daily_bin1598.fits
Exposure map: /scratch/kocevski/904678/expmap_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.fits
Exposure cube: /scratch/kocevski/904678/ltcube_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/904678/Model_4FGL_J2326.9-4130_daily_bin1598.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) = 6440.64699847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.423       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1091       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .94113       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0568       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.192       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.011       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7079       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.449       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4110       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7313       1.0000         .10000E-03   10000.    
    19 'norm      '    16.092       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.764       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2903       1.0000         .10000E-03   10000.    
    26 'norm      '    .15576E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.3098       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.155       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.2629       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .13136E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .58987       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2098       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6440.543     FROM MIGRAD    STATUS=CONVERGED    902 CALLS     3984 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.287        .99234E-06** at limit **
   2  Prefactor     .10000E-03    14.006        .25739E-05** at limit **
   3  Prefactor     39.425        38.419        .20205E-05   -.55953E-04
   4  Prefactor     7.1093        11.051       -.75724E-06   -.64118E-03
   5  Prefactor     .10000E-03    3.0745        .26731E-06** at limit **
   6  Prefactor     .94193        2.7674       -.32935E-06   -.11930E-02
   7  Prefactor     .10000E-03    10.706       -.20393E-05** at limit **
   8  Prefactor     3.0578        5.4436        .15611E-05   -.56873E-03
   9  Prefactor     25.193        15.940       -.48701E-06   -.27003E-04
  10  Prefactor     .10000E-03    4.1608       -.18450E-07** at limit **
  11  Prefactor     14.013        12.319       -.14168E-05   -.10021E-03
  12  Prefactor     4.7091        5.7285       -.14892E-05   -.38999E-03
  13  Prefactor     11.449        15.486        .26821E-06   -.78248E-05
  14  Prefactor     18.157        50.076        .70108E-04   -.35941E-05
  15  Prefactor     .10000E-03    18.369        .23620E-05** at limit **
  16  norm          .10000E-03    10.503        .22866E-05** at limit **
  17  norm          3.4111        4.1716        .16032E-06    .11953E-05
  18  norm          2.7311        2.6619        .49557E-07    .13930E-03
  19  norm          16.093        8.0376       -.19489E-07   -.15991E-03
  20  Prefactor     14.764        6.4178        .92276E-06    .81559E-04
  21  Prefactor     .10000E-03    42.656       -.94202E-06** at limit **
  22  Prefactor     .10000E-03    111.48        .87462E-05** at limit **
  23  norm          .10000E-03    3.6672        .86464E-07** at limit **
  24  Prefactor     .10000E-03    14.873       -.43112E-05** at limit **
  25  norm          1.2904        .91769        .47229E-07   -.33701E-03
  26  norm          .10000E-03    2.0994        .59030E-06** at limit **
  27  Prefactor     5.3101        3.9607       -.24508E-07   -.41041E-03
  28  Prefactor     17.152        21.259        .93333E-06   -.64300E-04
  29  Prefactor     2.2656        6.0711       -.84002E-06   -.72981E-03
  30  Prefactor     .10000E-03    1.9734        .51044E-06** at limit **
  31  Prefactor     .10000E-03    42.695       -.15824E-05** at limit **
  32  Normalizat    .58970        .15875       -.44358E-05   -.29067E-03
  33  Prefactor     1.2098        .17491       -.34923E-06   -.42289E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.4245
  Prefactor  = 7.10928
  Prefactor  = 0.0001
  Prefactor  = 0.941931
  Prefactor  = 0.0001
  Prefactor  = 3.05781
  Prefactor  = 25.1929
  Prefactor  = 0.0001
  Prefactor  = 14.0135
  Prefactor  = 4.70908
  Prefactor  = 11.449
  Prefactor  = 18.1569
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.41111
  norm       = 2.73112
  norm       = 16.093
  Prefactor  = 14.7635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.29036
  norm       = 0.000100002
  Prefactor  = 5.3101
  Prefactor  = 17.1523
  Prefactor  = 2.26563
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.589702
  Prefactor  = 1.2098
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.543     FROM HESSE     STATUS=OK           699 CALLS     4683 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.425        38.296        .63838E-04   -1.4451    
   4  Prefactor     7.1093        11.067        .75225E-03   -1.5175    
   5  Prefactor     .10000E-03    3.1451        .13737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .94193        2.7628        .21596E-03   -1.5514    
   7  Prefactor     .10000E-03    10.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0578        5.4097        .23204E-03   -1.5358    
   9  Prefactor     25.193        15.932        .79811E-04   -1.4704    
  10  Prefactor     .10000E-03    4.1643        .15987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.013        12.308        .10701E-03   -1.4959    
  12  Prefactor     4.7091        5.7293        .18546E-03   -1.5274    
  13  Prefactor     11.449        15.484        .11840E-03   -1.5031    
  14  Prefactor     18.157        49.422        .94134E-04   -1.4855    
  15  Prefactor     .10000E-03    18.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.935        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4111        4.1689        .17560E-03   -1.5339    
  18  norm          2.7311        2.6669        .12595E-03   -1.5377    
  19  norm          16.093        8.0331        .99842E-04   -1.4905    
  20  Prefactor     14.764        6.3911        .10424E-03   -1.4939    
  21  Prefactor     .10000E-03    43.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    113.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.7977        .29852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.173        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2904        .90508        .61178E-04   -1.5481    
  26  norm          .10000E-03    8.5460        .21909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.3101        3.9457        .12220E-03   -1.5247    
  28  Prefactor     17.152        21.182        .96700E-04   -1.4879    
  29  Prefactor     2.2656        6.0549        .27306E-03   -1.5407    
  30  Prefactor     .10000E-03    5.9263        .21302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    42.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .58970        .18680        .26368E-03   -1.0842    
  33  Prefactor     1.2098        .21355        .22282E-03   -.86030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40989e-09
Minuit parameter uncertainties:
  1  8.50195e-05
  2  1.14654e-05
  3  38.3195
  4  11.0701
  5  1.83757e-05
  6  2.76322
  7  1.34121e-05
  8  5.41061
  9  15.9345
  10  2.91025e-06
  11  12.3101
  12  5.72999
  13  15.4894
  14  49.5333
  15  6.25405e-05
  16  7.35555e-06
  17  4.1693
  18  2.66704
  19  8.0336
  20  6.39138
  21  0.000139188
  22  0.00037888
  23  2.05519e-05
  24  1.45213e-05
  25  0.905086
  26  0.000232919
  27  3.94588
  28  21.1915
  29  6.05658
  30  0.000132544
  31  0.000198834
  32  0.186998
  33  0.213699
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  1.392e-04  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.777e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
437        Scale:  7.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.210e+00  2.137e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  5.897e-01  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.737 -41.509
Photon Flux Upper Limit: 7.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/904678/likelihoodResults_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.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) = 6440.54351154
delta logL = -0.000110534389023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6440.54340126
delta logL = -2.50050106843e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7097       1.0000          .0000       10.000    
     3 'Normalizat'    .58971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2098       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+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=   6440.543     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      285 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7729.2        .18142E-02** at limit **
   2  Index         2.7689        5.7287        .50000       -.16724E-04
   3  Normalizat    .58970        .62208E-01    .26368E-03   -.16255E-04
   4  Prefactor     1.2098        .73427E-01    .22282E-03   -.55103E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.76887
  Normalizat = 0.589701
  Prefactor  = 1.2098
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.543     FROM HESSE     STATUS=OK            29 CALLS      314 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    49.465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7689        6.3842        .50000       -.46254    
   3  Normalizat    .58970        .17688        .10547E-04   -1.0842    
   4  Prefactor     1.2098        .20905        .89128E-05   -.86030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00066e-10
Minuit parameter uncertainties:
  1  0.00154555
  2  4.89899
  3  0.177052
  4  0.209189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/904678': 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) = 6440.54340104
delta logL = -3.12938936986e-08

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  1.546e-03  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.769e+00  4.899e+00  0.000e+00  1.000e+01 (-1.000e+00)
437        Scale:  7.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.210e+00  2.092e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  5.897e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.737 -41.509

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/904678/cmap_HighResolution_653529601_653788801_4FGL_J2326.9-4130_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.13e-08', time_completed='2021-09-29 19:46:37.167892', job_id='904678', GAL2='1.21', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632969997.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-3.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1598' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:46:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 904678: <4FGL_J2326.9-4130_daily_bin1598> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1598> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:30:30 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:30:32 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:30:32 2021
Terminated at Wed Sep 29 19:46:37 2021
Results reported at Wed Sep 29 19:46:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1598 351.737 -41.5089 653529601 653788801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2326.9-4130 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   916.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

