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


Performing analysis on: 4FGL_J2326.9-4130_daily_bin1281
RA = 351.737, Dec = -41.5089
tmin = 571363201, tmax = 571622401
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='902550', job_status='RUN', time_executed='2021-09-29 19:26:41.392376', time_epoch_executed='1632968801.39' WHERE source_name='4FGL J2326.9-4130' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902550

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902550/ft1_4FGL_J2326.9-4130_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902550/ft2_4FGL_J2326.9-4130_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902550/ft1_4FGL_J2326.9-4130_daily_bin1281.fits outfile=/scratch/kocevski/902550/ft1_filteredMKT_4FGL_J2326.9-4130_daily_bin1281.fits ra=351.737 dec=-41.5089 rad=12.0 tmin=571363201.0 tmax=571622401.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 2.88
user 2.65
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902550/ft1_filtered_4FGL_J2326.9-4130_daily_bin1281.fits" evtable="EVENTS" scfile=/scratch/kocevski/902550/ft2_4FGL_J2326.9-4130_daily_bin1281.fits sctable="SC_DATA" outfile=/scratch/kocevski/902550/ltcube_571363201_571622401_4FGL_J2326.9-4130_daily_bin1281.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/902550/ft2_4FGL_J2326.9-4130_daily_bin1281.fits
.....................!
real 12.48
user 12.13
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902550/ft1_filtered_4FGL_J2326.9-4130_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/902550/ft2_4FGL_J2326.9-4130_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/902550/ltcube_571363201_571622401_4FGL_J2326.9-4130_daily_bin1281.fits outfile=/scratch/kocevski/902550/expmap_571363201_571622401_4FGL_J2326.9-4130_daily_bin1281.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/902550/ltcube_571363201_571622401_4FGL_J2326.9-4130_daily_bin1281.fits
.....................!
real 190.95
user 185.83
sys 4.77

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/902550/ft1_filtered_4FGL_J2326.9-4130_daily_bin1281.fits scfile=/scratch/kocevski/902550/ft2_4FGL_J2326.9-4130_daily_bin1281.fits outfile=/scratch/kocevski/902550/cmap_571363201_571622401_4FGL_J2326.9-4130_daily_bin1281.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902550/ft1_filtered_4FGL_J2326.9-4130_daily_bin1281.fits scfile=/scratch/kocevski/902550/ft2_4FGL_J2326.9-4130_daily_bin1281.fits outfile=/scratch/kocevski/902550/cmap_HighResolution_571363201_571622401_4FGL_J2326.9-4130_daily_bin1281.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902550/ft1_filtered_4FGL_J2326.9-4130_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/902550/ft2_4FGL_J2326.9-4130_daily_bin1281.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902550/Model_4FGL_J2326.9-4130_daily_bin1281.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/902550/ft1_filtered_4FGL_J2326.9-4130_daily_bin1281.fits.....................!
real 31.02
user 29.13
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.018       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.433       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3925       1.0000         .10000E-03   10000.    
     7 'Prefactor '    162.59       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9947       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.016       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.318       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.515       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9130       1.0000         .10000E-03   10000.    
    19 'norm      '    26.040       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.5007       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.374       1.0000         .10000E-03   10000.    
    25 'norm      '    3.9843       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.7536       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.9822       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .21240E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    42.630       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1254       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .88806       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=   3212.134     FROM MIGRAD    STATUS=CONVERGED    879 CALLS     4594 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.912        79.384       -.13460E-05   -.51776E-04
   2  Prefactor     11.361        26.926       -.31283E-06   -.58198E-04
   3  Prefactor     .10000E-03    27.795        .45167E-06** at limit **
   4  Prefactor     .10000E-03    62.457        .20985E-06** at limit **
   5  Prefactor     .10000E-03    12.877        .39511E-06** at limit **
   6  Prefactor     2.3907        8.8580        .13792E-05    .22490E-04
   7  Prefactor     162.57        143.12       -.22706E-06   -.12667E-04
   8  Prefactor     3.9942        11.413        .29443E-06    .39907E-05
   9  Prefactor     .10000E-03    31.971       -.46777E-06** at limit **
  10  Prefactor     16.006        56.746       -.27488E-06   -.10458E-04
  11  Prefactor     28.285        46.574       -.13561E-06   -.21867E-04
  12  Prefactor     .10000E-03    6.5564        .41985E-07** at limit **
  13  Prefactor     56.512        57.334        .14741E-06   -.64223E-05
  14  Prefactor     .10000E-03    120.16        .41173E-06** at limit **
  15  Prefactor     .10000E-03    10.188        .21776E-06** at limit **
  16  norm          .10000E-03    6.6232        .80611E-07** at limit **
  17  norm          .10000E-03    3.3398        .21144E-07** at limit **
  18  norm          5.9131        6.2063       -.52170E-06   -.33762E-04
  19  norm          26.038        15.703       -.15311E-06   -.15691E-04
  20  Prefactor     .10000E-03    4.7551        .14161E-06** at limit **
  21  Prefactor     .10001E-03    180.80       -.35479E-05** at limit **
  22  Prefactor     .10000E-03    25.237        .27751E-06** at limit **
  23  norm          7.4870        7.4002        .17824E-05    .25845E-03
  24  Prefactor     20.348        22.908       -.59407E-06   -.29332E-04
  25  norm          3.9841        1.9856        .12605E-07   -.14871E-03
  26  norm          .10000E-03    3.4263       -.22807E-06** at limit **
  27  Prefactor     2.7539        3.1914        .89179E-07   -.54947E-04
  28  Prefactor     .10000E-03    19.169        .19853E-06** at limit **
  29  Prefactor     2.9713        10.322        .76788E-06    .35157E-04
  30  Prefactor     .10000E-03    3.2236        .57381E-06** at limit **
  31  Prefactor     42.638        70.615       -.10506E-05   -.11994E-05
  32  Normalizat    1.1263        .29593        .39140E-05   -.22622E-03
  33  Prefactor     .88713        .31758       -.70012E-05   -.20437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.912
  Prefactor  = 11.3613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.39072
  Prefactor  = 162.571
  Prefactor  = 3.99424
  Prefactor  = 0.0001
  Prefactor  = 16.0063
  Prefactor  = 28.2855
  Prefactor  = 0.0001
  Prefactor  = 56.5118
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.91314
  norm       = 26.038
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 7.48704
  Prefactor  = 20.3475
  norm       = 3.98414
  norm       = 0.0001
  Prefactor  = 2.75393
  Prefactor  = 0.0001
  Prefactor  = 2.9713
  Prefactor  = 0.0001
  Prefactor  = 42.6383
  Normalizat = 1.1263
  Prefactor  = 0.887131
 **********
 **   18 **HESSE 
 **********

 FCN=   3212.134     FROM HESSE     STATUS=OK           693 CALLS     5287 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.912        79.873        .29238E-03   -1.4337    
   2  Prefactor     11.361        26.538        .11848E-03   -1.5034    
   3  Prefactor     .10000E-03    27.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    62.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3907        8.8276        .26477E-03   -1.5399    
   7  Prefactor     162.57        142.77        .15814E-03   -1.3151    
   8  Prefactor     3.9942        11.406        .20179E-03   -1.5308    
   9  Prefactor     .10000E-03    31.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.006        56.698        .10008E-03   -1.4908    
  11  Prefactor     28.285        46.692        .75286E-04   -1.4644    
  12  Prefactor     .10000E-03    6.5625        .14173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.512        57.321        .53361E-04   -1.4203    
  14  Prefactor     .10000E-03    120.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.210        .17671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.6245        .14247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3403        .10116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9131        6.2221        .13915E-03   -1.5222    
  19  norm          26.038        15.704        .78503E-04   -1.4687    
  20  Prefactor     .10000E-03    4.7599        .12057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    184.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.4870        7.7497        .73218E-03   -1.5161    
  24  Prefactor     20.348        22.951        .88735E-04   -1.4805    
  25  norm          3.9841        1.9835        .51671E-04   -1.5309    
  26  norm          .10000E-03    3.4550        .10251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.7539        3.1803        .10489E-03   -1.5376    
  28  Prefactor     .10000E-03    19.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.9713        10.360        .23509E-03   -1.5363    
  30  Prefactor     .10000E-03    5.2886        .19265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     42.638        70.035        .61399E-04   -1.4401    
  32  Normalizat    1.1263        .33138        .24064E-03   -.88912    
  33  Prefactor     .88713        .34309        .29716E-03   -.96592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78672e-10
Minuit parameter uncertainties:
  1  80.0564
  2  26.5653
  3  5.46424e-05
  4  5.43452e-05
  5  1.929e-05
  6  8.83241
  7  143.076
  8  11.412
  9  0.000100388
  10  56.8894
  11  46.7522
  12  2.14832e-06
  13  57.3771
  14  0.000579377
  15  1.46573e-05
  16  6.98012e-06
  17  1.78934e-06
  18  6.22278
  19  15.7064
  20  8.55191e-06
  21  0.00286989
  22  7.6706e-05
  23  7.75069
  24  22.9613
  25  1.98354
  26  2.0461e-05
  27  3.18045
  28  6.48535e-08
  29  10.3665
  30  4.60583e-05
  31  70.171
  32  0.332
  33  0.343932
Done.

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

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  2.870e-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:  8.871e-01  3.439e-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.126e+00  3.320e-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.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902550/likelihoodResults_571363201_571622401_4FGL_J2326.9-4130_daily_bin1281.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) = 3212.13366393
delta logL = -2.57412971223e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3212.13363826
delta logL = -6.24991116638e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7432       1.0000          .0000       10.000    
     3 'Normalizat'    1.1263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88714       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=   3212.134     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      291 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    335.05        .36285E-03** at limit **
   2  Index         2.8600        6.4143        .50000       -.78311E-05
   3  Normalizat    1.1263        .29602        .24063E-03    .27001E-04
   4  Prefactor     .88712        .32958        .29716E-03   -.24561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100029
  Index      = 2.86001
  Normalizat = 1.12631
  Prefactor  = 0.887124
 **********
 **   18 **HESSE 
 **********

 FCN=   3212.134     FROM HESSE     STATUS=OK            29 CALLS      320 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    324.86        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8600        6.4096        .50000       -.44228    
   3  Normalizat    1.1263        .29634        .96252E-05   -.88912    
   4  Prefactor     .88712        .32994        .11886E-04   -.96592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50228e-10
Minuit parameter uncertainties:
  1  0.00613876
  2  4.52226
  3  0.296777
  4  0.330681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902550': 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) = 3212.13363806
delta logL = 1.37506958708e-07

Extracting fit parameters...

4FGL J2326.9-4130
   Spectrum: PowerLaw
435    Prefactor:  1.000e-04  6.139e-03  1.000e-04  1.000e+04 ( 1.000e-13)
436        Index:  2.860e+00  4.522e+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:  8.871e-01  3.307e-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.126e+00  2.968e-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/902550/cmap_HighResolution_571363201_571622401_4FGL_J2326.9-4130_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2021-09-29 19:38:25.523472', job_id='902550', GAL2='0.89', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632969505.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1281' AND source_name='4FGL J2326.9-4130' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 19:38:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 902550: <4FGL_J2326.9-4130_daily_bin1281> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2326.9-4130_daily_bin1281 351.737 -41.5089 571363201 571622401 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 :                                   641.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

