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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1126
RA = 351.737, Dec = -41.5089
tmin = 531187201, tmax = 531446401
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='901072', job_status='RUN', time_executed='2021-09-29 19:21:02.255289', time_epoch_executed='1632968462.26' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901072

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901072/ft1_4FGL_J2326.9-4130_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901072/ft2_4FGL_J2326.9-4130_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901072/ft1_4FGL_J2326.9-4130_daily_bin1126.fits outfile=/scratch/kocevski/901072/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1126.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=531187201.0 tmax=531446401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.11
user 3.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901072/ft1_filtered_4FGL_J2326.9-4130_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/901072/ft2_4FGL_J2326.9-4130_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/901072/ltcube_531187201_531446401_4FGL_J2326.9-4130_daily_bin1126.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/901072/ft2_4FGL_J2326.9-4130_daily_bin1126.fits
.....................!
real 11.51
user 11.17
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901072/ft1_filtered_4FGL_J2326.9-4130_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/901072/ft2_4FGL_J2326.9-4130_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/901072/ltcube_531187201_531446401_4FGL_J2326.9-4130_daily_bin1126.fits outfile=/scratch/kocevski/901072/expmap_531187201_531446401_4FGL_J2326.9-4130_daily_bin1126.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/901072/ltcube_531187201_531446401_4FGL_J2326.9-4130_daily_bin1126.fits
.....................!
real 189.59
user 184.58
sys 4.70

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/901072/ft1_filtered_4FGL_J2326.9-4130_daily_bin1126.fits scfile=/scratch/kocevski/901072/ft2_4FGL_J2326.9-4130_daily_bin1126.fits outfile=/scratch/kocevski/901072/cmap_531187201_531446401_4FGL_J2326.9-4130_daily_bin1126.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901072/ft1_filtered_4FGL_J2326.9-4130_daily_bin1126.fits scfile=/scratch/kocevski/901072/ft2_4FGL_J2326.9-4130_daily_bin1126.fits outfile=/scratch/kocevski/901072/cmap_HighResolution_531187201_531446401_4FGL_J2326.9-4130_daily_bin1126.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901072/ft1_filtered_4FGL_J2326.9-4130_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/901072/ft2_4FGL_J2326.9-4130_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901072/Model_4FGL_J2326.9-4130_daily_bin1126.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/901072/ft1_filtered_4FGL_J2326.9-4130_daily_bin1126.fits....................!
real 36.99
user 35.74
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.968       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.123       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.301       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4829       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.204       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.841       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5964       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.734       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7048       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4493       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5847       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    114.71       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .38683       1.0000         .10000E-03   10000.    
    26 'norm      '    2.0001       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0196       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12646E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .42714       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3726       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .67720       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=   4610.802     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     4568 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.918        51.778       -.13307E-05   -.10099E-03
   2  Prefactor     .10000E-03    17.038       -.29097E-06** at limit **
   3  Prefactor     25.118        34.441       -.81786E-06   -.60300E-05
   4  Prefactor     .10000E-03    11.688       -.38368E-07** at limit **
   5  Prefactor     11.298        10.840       -.22498E-07    .33438E-04
   6  Prefactor     .10000E-03    1.0910        .63332E-07** at limit **
   7  Prefactor     .10000E-03    16.097        .13649E-06** at limit **
   8  Prefactor     8.4831        7.7829        .15750E-06    .61216E-05
   9  Prefactor     27.206        26.912        .21623E-06    .10014E-04
  10  Prefactor     20.841        20.651        .92971E-07    .66122E-06
  11  Prefactor     .10000E-03    6.7355        .53726E-07** at limit **
  12  Prefactor     6.5971        8.4524        .27415E-06   -.51588E-07
  13  Prefactor     24.733        38.917        .18929E-06   -.10817E-05
  14  Prefactor     .10000E-03    63.516        .69124E-06** at limit **
  15  Prefactor     .10000E-03    4.1138        .66425E-07** at limit **
  16  norm          .10000E-03    8.8770        .15061E-07** at limit **
  17  norm          2.7050        4.2122        .13599E-06    .50569E-04
  18  norm          3.4502        4.2911        .80161E-07    .39153E-04
  19  norm          1.5850        7.0727        .18661E-05    .10318E-04
  20  Prefactor     .10000E-03    2.7980        .15476E-06** at limit **
  21  Prefactor     .10000E-03    15.822        .22597E-06** at limit **
  22  Prefactor     114.68        69.833       -.65671E-06   -.12391E-03
  23  norm          .10000E-03    1.6300        .21328E-07** at limit **
  24  Prefactor     .10000E-03    8.4060        .31566E-06** at limit **
  25  norm          .38689        .51632       -.74557E-08   -.17581E-03
  26  norm          2.0009        3.9159        .46244E-06    .10720E-04
  27  Prefactor     .10000E-03    1.6720       -.20497E-06** at limit **
  28  Prefactor     4.0219        28.022        .11892E-04    .29134E-04
  29  Prefactor     .10000E-03    6.7020        .50511E-07** at limit **
  30  Prefactor     .42629        3.5572       -.73352E-06    .27136E-03
  31  Prefactor     .10000E-03    74.992       -.27074E-06** at limit **
  32  Normalizat    1.3730        .21720        .17077E-05   -.51682E-04
  33  Prefactor     .67669        .23257       -.41794E-05    .95617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.918
  Prefactor  = 0.0001
  Prefactor  = 25.1184
  Prefactor  = 0.0001
  Prefactor  = 11.2979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.48311
  Prefactor  = 27.2064
  Prefactor  = 20.8412
  Prefactor  = 0.0001
  Prefactor  = 6.59706
  Prefactor  = 24.7331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.70501
  norm       = 3.45015
  norm       = 1.58502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 114.675
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.386885
  norm       = 2.00093
  Prefactor  = 0.0001
  Prefactor  = 4.02189
  Prefactor  = 0.000100004
  Prefactor  = 0.426293
  Prefactor  = 0.0001
  Normalizat = 1.37296
  Prefactor  = 0.676689
 **********
 **   18 **HESSE 
 **********

 FCN=   4610.802     FROM HESSE     STATUS=OK           699 CALLS     5267 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.918        51.849        .91963E-04   -1.4838    
   2  Prefactor     .10000E-03    17.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.118        34.414        .79920E-04   -1.4705    
   4  Prefactor     .10000E-03    11.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.298        10.889        .11917E-03   -1.5036    
   6  Prefactor     .10000E-03    1.0946        .69262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4831        7.7825        .13764E-03   -1.5125    
   9  Prefactor     27.206        26.909        .76809E-04   -1.4664    
  10  Prefactor     20.841        20.649        .87736E-04   -1.4795    
  11  Prefactor     .10000E-03    6.7549        .17212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5971        8.4461        .15625E-03   -1.5194    
  13  Prefactor     24.733        38.905        .80545E-04   -1.4713    
  14  Prefactor     .10000E-03    63.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1178        .13450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.9260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7050        4.1940        .16888E-03   -1.5379    
  18  norm          3.4502        4.2869        .15253E-03   -1.5336    
  19  norm          1.5850        7.0339        .33726E-03   -1.5456    
  20  Prefactor     .10000E-03    2.8168        .11090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     114.68        70.081        .18782E-03   -1.3562    
  23  norm          .10000E-03    1.6339        .84606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.4387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .38689        .47877        .54665E-03   -1.5584    
  26  norm          2.0009        3.8921        .18052E-03   -1.5425    
  27  Prefactor     .10000E-03    1.6957        .85846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.0219        28.411        .10057E-02   -1.5307    
  29  Prefactor     .10000E-03    48.685        .33733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .42629        20.362        .23171E-02   -1.5577    
  31  Prefactor     .10000E-03    75.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3730        .25620        .21339E-03   -.81414    
  33  Prefactor     .67669        .26849        .31556E-03   -1.0445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31102e-09
Minuit parameter uncertainties:
  1  51.973
  2  0.00010636
  3  34.4409
  4  3.59716e-06
  5  10.8906
  6  7.45255e-07
  7  3.44992e-05
  8  7.78343
  9  26.9206
  10  20.6556
  11  1.23181e-06
  12  8.44767
  13  38.9447
  14  0.000295121
  15  3.49683e-07
  16  2.99368e-05
  17  4.19448
  18  4.28732
  19  6.67907
  20  1.24167e-06
  21  5.87983e-05
  22  70.132
  23  7.74543e-07
  24  3.33376e-05
  25  0.478772
  26  3.8926
  27  1.68935e-05
  28  21.3931
  29  0.000844265
  30  5.89391
  31  0.000212828
  32  0.256436
  33  0.269006
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  5.880e-05  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:  6.767e-01  2.690e-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.373e+00  2.564e-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: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901072/likelihoodResults_531187201_531446401_4FGL_J2326.9-4130_daily_bin1126.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) = 4610.8022282
delta logL = -0.000300582948512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4610.80193121
delta logL = -3.59706518793e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4837       1.0000          .0000       10.000    
     3 'Normalizat'    1.3730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67669       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=   4610.802     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      329 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.363        .11530    ** at limit **
   2  Index         1.2796        5.1760        .50000       -.13572E-06
   3  Normalizat    1.3730        .98385E-02    .21338E-03    .17107E-03
   4  Prefactor     .67669        .10640E-01    .31556E-03    .12717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.27964
  Normalizat = 1.37296
  Prefactor  = 0.676686
 **********
 **   18 **HESSE 
 **********

 FCN=   4610.802     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      368 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.430        .11208       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2796        6.7804        .50000       -.83915    
   3  Normalizat    1.3730        .99406E-02    .42677E-04   -.81414    
   4  Prefactor     .67669        .10750E-01    .12623E-04   -1.0445    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55197e-10
Minuit parameter uncertainties:
  1  0.000110536
  2  301.43
  3  0.00994065
  4  0.0107502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901072': 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) = 4610.80192464
delta logL = 2.97494170809e-06

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  1.105e-04  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  1.280e+00  3.014e+02  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:  6.767e-01  1.075e-02  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.373e+00  9.941e-03  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/901072/cmap_HighResolution_531187201_531446401_4FGL_J2326.9-4130_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', job_status='DONE', photon_flux_upper_limit='8.66e-08', time_completed='2021-09-29 19:34:09.166401', job_id='901072', GAL2='0.68', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632969249.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1126' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:34:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 901072: <4FGL_J2326.9-4130_daily_bin1126> in cluster <slac> Done

Job <4FGL_J2326.9-4130_daily_bin1126> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 19:20:43 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 19:20:44 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:44 2021
Terminated at Wed Sep 29 19:34:09 2021
Results reported at Wed Sep 29 19:34:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1126 351.737 -41.5089 531187201 531446401 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 :                                   780.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            806 sec.

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

