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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1108
RA = 351.182, Dec = -40.6834
tmin = 526521601, tmax = 526780801
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='851870', job_status='RUN', time_executed='2021-09-29 16:46:57.035293', time_epoch_executed='1632959217.04' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851870

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851870/ft1_4FGL_J2324.7-4041_daily_bin1108.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851870/ft2_4FGL_J2324.7-4041_daily_bin1108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851870/ft1_4FGL_J2324.7-4041_daily_bin1108.fits outfile=/scratch/kocevski/851870/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1108.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=526521601.0 tmax=526780801.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.37
user 4.11
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/851870/ft2_4FGL_J2324.7-4041_daily_bin1108.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851870/ft2_4FGL_J2324.7-4041_daily_bin1108.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/851870/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1108.fits evtable="EVENTS" outfile="/scratch/kocevski/851870/ft1_filtered_4FGL_J2324.7-4041_daily_bin1108.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851870/ft1_filtered_4FGL_J2324.7-4041_daily_bin1108.fits" evtable="EVENTS" scfile=/scratch/kocevski/851870/ft2_4FGL_J2324.7-4041_daily_bin1108.fits sctable="SC_DATA" outfile=/scratch/kocevski/851870/ltcube_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.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/851870/ft2_4FGL_J2324.7-4041_daily_bin1108.fits
.....................!
real 11.60
user 11.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851870/ft1_filtered_4FGL_J2324.7-4041_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/851870/ft2_4FGL_J2324.7-4041_daily_bin1108.fits sctable="SC_DATA" expcube=/scratch/kocevski/851870/ltcube_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.fits outfile=/scratch/kocevski/851870/expmap_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.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/851870/ltcube_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.fits
.....................!
real 189.85
user 184.45
sys 5.09

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

Setting source of interest to:
4FGL J2324.7-4041 @ 351.182 -40.6834

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/851870/ft1_filtered_4FGL_J2324.7-4041_daily_bin1108.fits scfile=/scratch/kocevski/851870/ft2_4FGL_J2324.7-4041_daily_bin1108.fits outfile=/scratch/kocevski/851870/cmap_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.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.182 yref=-40.6834 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851870/ft1_filtered_4FGL_J2324.7-4041_daily_bin1108.fits scfile=/scratch/kocevski/851870/ft2_4FGL_J2324.7-4041_daily_bin1108.fits outfile=/scratch/kocevski/851870/cmap_HighResolution_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.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.182 yref=-40.6834 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851870/ft1_filtered_4FGL_J2324.7-4041_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/851870/ft2_4FGL_J2324.7-4041_daily_bin1108.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851870/Model_4FGL_J2324.7-4041_daily_bin1108.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/851870/ft1_filtered_4FGL_J2324.7-4041_daily_bin1108.fits.....................!
real 34.95
user 33.68
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851870/ft1_filtered_4FGL_J2324.7-4041_daily_bin1108.fits', '/scratch/kocevski/851870/ft2_4FGL_J2324.7-4041_daily_bin1108.fits', expMap='/scratch/kocevski/851870/expmap_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.fits', expCube='/scratch/kocevski/851870/ltcube_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851870/Model_4FGL_J2324.7-4041_daily_bin1108.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7-4041'

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.376e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/851870/ft1_filtered_4FGL_J2324.7-4041_daily_bin1108.fits
Spacecraft file(s): /scratch/kocevski/851870/ft2_4FGL_J2324.7-4041_daily_bin1108.fits
Exposure map: /scratch/kocevski/851870/expmap_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.fits
Exposure cube: /scratch/kocevski/851870/ltcube_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851870/Model_4FGL_J2324.7-4041_daily_bin1108.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) = 4175.59086789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4328       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.388       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4923       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12034E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33721E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.494       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.773       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4576       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1866       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8892       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4812       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.377       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.5214       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.2559       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.807       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0610       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80120       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4175.586     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     4382 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3210        253.13        .11487E-04    .63929E-04
   2  Prefactor     .10000E-03    6.8581        .14070E-06** at limit **
   3  Prefactor     .10000E-03    11.664       -.13078E-07** at limit **
   4  Prefactor     .10000E-03    1.4424       -.10768E-07** at limit **
   5  Prefactor     10.364        59.974        .26147E-05    .92942E-04
   6  Prefactor     9.4931        7.9744       -.12312E-06    .68074E-04
   7  Prefactor     .10064E-03    42.565        .14089E-04** at limit **
   8  Prefactor     .10002E-03    77.730        .22616E-04** at limit **
   9  Prefactor     20.492        15.606       -.39765E-07    .60555E-04
  10  Prefactor     .10000E-03    2.6271       -.62334E-07** at limit **
  11  Prefactor     .10000E-03    23.398       -.22457E-06** at limit **
  12  Prefactor     56.763        63.619        .31815E-06    .63746E-04
  13  Prefactor     .10000E-03    8.3561       -.23201E-06** at limit **
  14  norm          .10000E-03    3.7495       -.34924E-07** at limit **
  15  norm          4.4576        4.7023        .10563E-06    .14318E-03
  16  norm          3.1866        4.1230       -.79122E-07   -.30997E-04
  17  norm          .10000E-03    4.1889       -.16081E-06** at limit **
  18  Prefactor     5.8904        5.4551       -.36050E-08    .25749E-03
  19  Prefactor     .10000E-03    19.109        .41534E-06** at limit **
  20  Prefactor     .10000E-03    33.306       -.10482E-05** at limit **
  21  norm          .10000E-03    2.0149       -.12857E-06** at limit **
  22  Prefactor     .10000E-03    16.783       -.66708E-06** at limit **
  23  norm          .10000E-03    .30079       -.49545E-07** at limit **
  24  norm          .10001E-03    2.6071        .25299E-06** at limit **
  25  Prefactor     3.4813        2.8033       -.65567E-09    .13823E-03
  26  Prefactor     13.378        14.648        .37486E-07    .72020E-04
  27  Prefactor     .10000E-03    46.979        .13105E-05** at limit **
  28  Prefactor     6.5217        6.9387       -.61638E-06    .57239E-03
  29  Prefactor     1.2569        4.3007       -.74417E-06    .86692E-04
  30  Prefactor     10.807        56.575        .70489E-06    .14718E-04
  31  Normalizat    1.0610        .20662        .22589E-05    .61711E-03
  32  Prefactor     .80114        .22179       -.98889E-06    .28858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.32104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3642
  Prefactor  = 9.49306
  Prefactor  = 0.000100636
  Prefactor  = 0.000100019
  Prefactor  = 20.4922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.7634
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.45764
  norm       = 3.18665
  norm       = 0.0001
  Prefactor  = 5.89043
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 3.48127
  Prefactor  = 13.3777
  Prefactor  = 0.000100002
  Prefactor  = 6.52169
  Prefactor  = 1.25689
  Prefactor  = 10.8069
  Normalizat = 1.06104
  Prefactor  = 0.801141
 **********
 **   18 **HESSE 
 **********

 FCN=   4175.586     FROM HESSE     STATUS=OK           649 CALLS     5031 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3210        265.08        .26235E-03   -1.5403    
   2  Prefactor     .10000E-03    6.8608        .16528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4533        .75697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.364        58.952        .12432E-03   -1.5064    
   6  Prefactor     9.4931        7.9720        .13007E-03   -1.5092    
   7  Prefactor     .10064E-03    155.82        .46650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    91.199        .51874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.492        15.595        .88475E-04   -1.4802    
  10  Prefactor     .10000E-03    2.6342        .10229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     56.763        63.668        .53241E-04   -1.4200    
  13  Prefactor     .10000E-03    8.3965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.7504        .12221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4576        4.7060        .14008E-03   -1.5286    
  16  norm          3.1866        4.1150        .14539E-03   -1.5351    
  17  norm          .10000E-03    4.2012        .12920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.8904        5.4513        .14002E-03   -1.5223    
  19  Prefactor     .10000E-03    19.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.0277        .89541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .30412        .34602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    61.623        .19989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.4813        2.8015        .94010E-04   -1.5335    
  26  Prefactor     13.378        14.638        .10952E-03   -1.4976    
  27  Prefactor     .10000E-03    47.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.5217        6.9774        .78576E-03   -1.5197    
  29  Prefactor     1.2569        4.3237        .23511E-03   -1.5484    
  30  Prefactor     10.807        56.368        .12187E-03   -1.5050    
  31  Normalizat    1.0610        .24825        .21328E-03   -.91013    
  32  Prefactor     .80114        .26574        .26584E-03   -.99686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6993e-09
Minuit parameter uncertainties:
  1  49.8353
  2  2.77659e-05
  3  2.29044e-05
  4  1.29231e-05
  5  49.5107
  6  7.97294
  7  0.0199679
  8  0.0026642
  9  15.5979
  10  1.10936e-05
  11  5.68111e-05
  12  63.7443
  13  3.30355e-05
  14  3.18935e-06
  15  4.70643
  16  4.11538
  17  1.51866e-05
  18  5.45172
  19  0.000134481
  20  0.000364262
  21  9.38209e-06
  22  0.000141388
  23  1.14538e-06
  24  0.00142983
  25  2.80157
  26  14.6424
  27  0.00062368
  28  6.97831
  29  4.32473
  30  49.4355
  31  0.248524
  32  0.266163
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.187e+00  4.115e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.011e-01  2.662e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.061e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 7.81e-09 +/- 1.01e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 2.18e-05

TS (Fixed Index): 1.29
Ra Dec: 351.182 -40.683
Photon Flux Upper Limit: 4.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851870/likelihoodResults_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4173.8358019
delta logL = 1.7497077505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4173.38335366
delta logL = 2.20215599386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68284       1.0000         .10000E-03   10000.    
     2 'alpha     '    .13185E-05   1.0000          .0000       5.0000    
     3 'Normalizat'    1.0515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81461       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4173.383     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      217 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68378        1.0622        .11996E-01   -.68676E-03
   2  alpha          .0000        3.1602        .46360    ** at limit **
   3  Normalizat    1.0516        .19876        .40455E-01   -.13077E-04
   4  Prefactor     .81474        .21958        .43907E-01    .27486E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.683782
  alpha      = 0
  Normalizat = 1.05158
  Prefactor  = 0.814742
 **********
 **   18 **HESSE 
 **********

 FCN=   4173.383     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68378        .70569        .49893E-03   -1.5543    
   2  alpha          .0000        3.2559        .41921E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0516        .23920        .21386E-03   -.91322    
   4  Prefactor     .81474        .26415        .13188E-02   -.99187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30642e-11
Minuit parameter uncertainties:
  1  0.705698
  2  2.83771e-08
  3  0.239449
  4  0.264563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851870': 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) = 4173.38335102
delta logL = 2.20215863848

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  6.838e-01  7.057e-01  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  0.000e+00  2.838e-08  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.147e-01  2.646e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.052e+00  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.71
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.81e-09 +/- 3.93e-09
Energy Flux (Free Index): 1.56e-04 +/- 1.61e-04

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/851870/cmap_HighResolution_526521601_526780801_4FGL_J2324.7-4041_daily_bin1108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-05', comment='SUCCESS', photon_flux='7.81e-09', energy_flux2='1.56e-04', photon_flux_error='1.01e-08', dlogl='2.20e+00', energy_flux='1.69e-05', photon_flux2='3.81e-09', job_status='DONE', time_completed='2021-09-29 16:58:53.983313', photon_index_error2='0.00', photon_index2='0.00', ts='1.29', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='4.19e-08', energy_flux_error2='1.61e-04', EG='1.06', time_epoch_completed='1632959933.98', return_code='0', job_id='851870', GAL2='0.81', EG2='1.05', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='3.93e-09', ts2='5.71', photon_index='1.62' WHERE bin_id='1108' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:58:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 851870: <4FGL_J2324.7-4041_daily_bin1108> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1108> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:53 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:45:54 2021
Terminated at Wed Sep 29 16:58:54 2021
Results reported at Wed Sep 29 16:58:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1108 351.182 -40.6834 526521601 526780801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7-4041 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   702.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            781 sec.

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

