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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1094
RA = 351.737, Dec = -41.5089
tmin = 522892801, tmax = 523152001
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='901023', job_status='RUN', time_executed='2021-09-29 19:24:15.116768', time_epoch_executed='1632968655.12' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901023

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901023/ft1_4FGL_J2326.9-4130_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901023/ft2_4FGL_J2326.9-4130_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901023/ft1_4FGL_J2326.9-4130_daily_bin1094.fits outfile=/scratch/kocevski/901023/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1094.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=522892801.0 tmax=523152001.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.73
user 3.49
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901023/ft2_4FGL_J2326.9-4130_daily_bin1094.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/901023/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1094.fits evtable="EVENTS" outfile="/scratch/kocevski/901023/ft1_filtered_4FGL_J2326.9-4130_daily_bin1094.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901023/ft1_filtered_4FGL_J2326.9-4130_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/901023/ft2_4FGL_J2326.9-4130_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/901023/ltcube_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.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/901023/ft2_4FGL_J2326.9-4130_daily_bin1094.fits
.....................!
real 11.64
user 11.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901023/ft1_filtered_4FGL_J2326.9-4130_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/901023/ft2_4FGL_J2326.9-4130_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/901023/ltcube_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.fits outfile=/scratch/kocevski/901023/expmap_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.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/901023/ltcube_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.fits
.....................!
real 190.06
user 185.32
sys 4.41

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/901023/ft1_filtered_4FGL_J2326.9-4130_daily_bin1094.fits scfile=/scratch/kocevski/901023/ft2_4FGL_J2326.9-4130_daily_bin1094.fits outfile=/scratch/kocevski/901023/cmap_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901023/ft1_filtered_4FGL_J2326.9-4130_daily_bin1094.fits scfile=/scratch/kocevski/901023/ft2_4FGL_J2326.9-4130_daily_bin1094.fits outfile=/scratch/kocevski/901023/cmap_HighResolution_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901023/ft1_filtered_4FGL_J2326.9-4130_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/901023/ft2_4FGL_J2326.9-4130_daily_bin1094.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901023/Model_4FGL_J2326.9-4130_daily_bin1094.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/901023/ft1_filtered_4FGL_J2326.9-4130_daily_bin1094.fits.....................!
real 34.40
user 33.15
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/901023/ft1_filtered_4FGL_J2326.9-4130_daily_bin1094.fits', '/scratch/kocevski/901023/ft2_4FGL_J2326.9-4130_daily_bin1094.fits', expMap='/scratch/kocevski/901023/expmap_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.fits', expCube='/scratch/kocevski/901023/ltcube_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/901023/Model_4FGL_J2326.9-4130_daily_bin1094.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/901023/ft1_filtered_4FGL_J2326.9-4130_daily_bin1094.fits
Spacecraft file(s): /scratch/kocevski/901023/ft2_4FGL_J2326.9-4130_daily_bin1094.fits
Exposure map: /scratch/kocevski/901023/expmap_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.fits
Exposure cube: /scratch/kocevski/901023/ltcube_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/901023/Model_4FGL_J2326.9-4130_daily_bin1094.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) = 4037.45659135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92403E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32777E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.681       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.963       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8897       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.474       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0050       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .97997E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.386       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.020       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .64536E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.956       1.0000         .10000E-03   10000.    
    16 'norm      '    .10919E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0859       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37413       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.6714       1.0000         .10000E-03   10000.    
    23 'norm      '    5.1901       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8887       1.0000         .10000E-03   10000.    
    25 'norm      '    1.8014       1.0000         .10000E-03   10000.    
    26 'norm      '    1.7834       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.245       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .80797E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    45.915       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.5226       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .38733       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4037.321     FROM MIGRAD    STATUS=CONVERGED    243 CALLS     3363 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.932        .43571E-05** at limit **
   2  Prefactor     .10000E-03    41.476        .12631E-04** at limit **
   3  Prefactor     32.700        15.425        .59180E-06    .26524E-02
   4  Prefactor     20.663        7.8199        .11577E-05   -.10524E-03
   5  Prefactor     2.8635        9.9420       -.10837E-05   -.29259E-04
   6  Prefactor     .10000E-03    2.8379       -.84432E-06** at limit **
   7  Prefactor     28.713        28.278       -.68290E-05   -.30986E-03
   8  Prefactor     4.9813        10.633       -.18568E-05   -.52441E-04
   9  Prefactor     .10000E-03    13.910       -.53540E-06** at limit **
  10  Prefactor     37.239        28.344        .49285E-06   -.41336E-03
  11  Prefactor     .10000E-03    7.9979        .40415E-06** at limit **
  12  Prefactor     .10000E-03    5.5134       -.37407E-05** at limit **
  13  Prefactor     39.670        42.673        .12824E-06   -.24363E-02
  14  Prefactor     .10000E-03    31.085        .25011E-05** at limit **
  15  Prefactor     22.794        17.802       -.23329E-05    .62763E-07
  16  norm          .10000E-03    5.1076       -.18719E-05** at limit **
  17  norm          .10000E-03    2.4221        .32057E-05** at limit **
  18  norm          .10000E-03    4.0995       -.17886E-05** at limit **
  19  norm          .73312        47.688       -.61903E-05   -.22583E-05
  20  Prefactor     .10000E-03    3.0630        .27852E-05** at limit **
  21  Prefactor     .10010E-03    185.69        .30820E-04** at limit **
  22  Prefactor     8.8303        64.297        .15992E-06   -.14320E-02
  23  norm          5.2500        5.1440       -.50420E-06   -.14526E-04
  24  Prefactor     5.9301        13.120       -.16237E-05   -.11973E-03
  25  norm          1.8032        1.3526        .11685E-06    .37971E-06
  26  norm          1.7832        4.5780       -.20056E-05    .58577E-05
  27  Prefactor     .10000E-03    2.3159       -.33060E-05** at limit **
  28  Prefactor     17.147        27.980       -.11624E-05   -.56623E-03
  29  Prefactor     .10000E-03    5.7942       -.88397E-06** at limit **
  30  Prefactor     .10000E-03    15.188        .63639E-05** at limit **
  31  Prefactor     50.151        89.632        .12582E-04   -.24856E-03
  32  Normalizat    1.5233        .28380       -.73099E-06   -.95150E-05
  33  Prefactor     .38685        .27573        .12643E-05   -.20414E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 32.6998
  Prefactor  = 20.663
  Prefactor  = 2.86347
  Prefactor  = 0.0001
  Prefactor  = 28.7128
  Prefactor  = 4.98131
  Prefactor  = 0.0001
  Prefactor  = 37.239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.6703
  Prefactor  = 0.0001
  Prefactor  = 22.7937
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.733115
  Prefactor  = 0.0001
  Prefactor  = 0.0001001
  Prefactor  = 8.83033
  norm       = 5.25004
  Prefactor  = 5.93009
  norm       = 1.80316
  norm       = 1.78321
  Prefactor  = 0.0001
  Prefactor  = 17.1467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.1507
  Normalizat = 1.5233
  Prefactor  = 0.386853
 **********
 **   18 **HESSE 
 **********

 FCN=   4037.321     FROM HESSE     STATUS=OK           783 CALLS     4146 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.895        .10407E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.911        .98652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.700        52.921        .17523E-02   -1.4564    
   4  Prefactor     20.663        34.896        .21870E-02   -1.4799    
   5  Prefactor     2.8635        14.727        .59766E-02   -1.5370    
   6  Prefactor     .10000E-03    2.8109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.713        33.716        .19108E-02   -1.4636    
   8  Prefactor     4.9813        10.661        .44938E-02   -1.5262    
   9  Prefactor     .10000E-03    13.885        .10388E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.239        33.774        .16387E-02   -1.4487    
  11  Prefactor     .10000E-03    7.9958        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4370        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.670        64.763        .16041E-02   -1.4447    
  14  Prefactor     .10000E-03    31.074        .10512E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.794        17.779        .20900E-02   -1.4753    
  16  norm          .10000E-03    5.1075        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.0747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .73312        13.691        .70503E-01   -1.5537    
  20  Prefactor     .10000E-03    3.0589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10010E-03    38.964        .12688       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.8303        136.49        .32214E-02   -1.5114    
  23  norm          5.2500        5.9169        .44113E-02   -1.5250    
  24  Prefactor     5.9301        13.201        .41372E-02   -1.5221    
  25  norm          1.8032        1.3600        .77862E-02   -1.5439    
  26  norm          1.7832        4.6486        .78334E-02   -1.5441    
  27  Prefactor     .10000E-03    2.2827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     17.147        28.987        .24111E-02   -1.4880    
  29  Prefactor     .10000E-03    5.7441        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.6516        .55477E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     50.151        89.496        .14793E-02   -1.4290    
  32  Normalizat    1.5233        .25163        .45450E-01   -.77126    
  33  Prefactor     .38685        .25099        .88040E-01   -1.1748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30747e-07
Minuit parameter uncertainties:
  1  5.39253e-05
  2  0.000552381
  3  52.9975
  4  34.9306
  5  12.9925
  6  1.74291e-06
  7  33.7385
  8  10.6654
  9  8.59397e-06
  10  33.7914
  11  1.29916e-06
  12  1.26868e-07
  13  64.8777
  14  8.52262e-05
  15  17.7832
  16  1.50282e-06
  17  5.98769e-08
  18  1.10542e-06
  19  6.33747
  20  7.68276e-07
  21  0.00395684
  22  69.6233
  23  5.91757
  24  13.2078
  25  1.36007
  26  4.64957
  27  1.47019e-06
  28  29.0105
  29  2.10857e-06
  30  7.38359e-06
  31  89.7375
  32  0.251835
  33  0.251706
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.001e-04  3.957e-03  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:  3.869e-01  2.517e-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:  1.523e+00  2.518e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901023/likelihoodResults_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.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) = 4037.32104643
delta logL = -1.27432172121e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4037.32104643
delta logL = -1.27413313749e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7772       1.0000          .0000       10.000    
     3 'Normalizat'    1.5233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38685       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4037.321     FROM MIGRAD    STATUS=FAILED       122 CALLS      308 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40604E-02    28.537        .12081       -.38897E-02
   2  Index         2.4122        6.0091        .50000       -.44468E-04
   3  Normalizat    1.5233        .36101E-02    .20090E-03    .39870E-03
   4  Prefactor     .38685        .37635E-02    .39007E-03    .19749E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4037.321     FROM SIMPLEX   STATUS=PROGRESS      65 CALLS      373 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98752        28.537        .19123E-02   -.38897E-02
   2  Index         2.4683        6.0091        .10218E-01   -.44468E-04
   3  Normalizat    1.5232        .36101E-02    .13694E-04    .39870E-03
   4  Prefactor     .38669        .37635E-02    .15099E-04    .19749E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4037.321     FROM MIGRAD    STATUS=FAILED        82 CALLS      455 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97992        947.46        .38089E-02    .56424E-04
   2  Index         2.4655        5.3415        .31365E-01    .66220E-04
   3  Normalizat    1.5230        .26161        .80359E-05    .37758E-02
   4  Prefactor     .38660        .27092        .31206E-05   -.36144E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.979924
  Index      = 2.46548
  Normalizat = 1.52305
  Prefactor  = 0.386599
 **********
 **   18 **HESSE 
 **********

 FCN=   4037.321     FROM HESSE     STATUS=OK            25 CALLS      480 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97992        361.32        .15236E-03   -1.5510    
   2  Index         2.4655        6.2112        .12546E-02   -.53159    
   3  Normalizat    1.5230        .25735        .16072E-05   -.77133    
   4  Prefactor     .38660        .26592        .62411E-06   -1.1750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6998e-07
Minuit parameter uncertainties:
  1  37.8635
  2  5.0445
  3  0.257569
  4  0.266768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901023': 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): 1
logL (Free Index) = 4037.3206893
delta logL = 0.000344384658092

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  9.799e-01  3.786e+01  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.465e+00  5.045e+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:  3.866e-01  2.668e-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:  1.523e+00  2.576e-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/901023/cmap_HighResolution_522892801_523152001_4FGL_J2326.9-4130_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-29 19:36:24.701226', job_id='901023', GAL2='0.39', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1632969384.7', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='3.44e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1094' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:36:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 901023: <4FGL_J2326.9-4130_daily_bin1094> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1094> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:20:38 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:20:40 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:20:40 2021
Terminated at Wed Sep 29 19:36:25 2021
Results reported at Wed Sep 29 19:36:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1094 351.737 -41.5089 522892801 523152001 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 :                                   671.00 sec.
    Max Memory :                                 1006 MB
    Average Memory :                             235.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

