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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin508
RA = 351.182, Dec = -40.6834
tmin = 371001601, tmax = 371260801
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='849404', job_status='RUN', time_executed='2021-09-29 16:43:04.186370', time_epoch_executed='1632958984.19' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849404

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849404/ft1_4FGL_J2324.7-4041_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849404/ft2_4FGL_J2324.7-4041_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849404/ft1_4FGL_J2324.7-4041_daily_bin508.fits outfile=/scratch/kocevski/849404/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin508.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.39
user 6.10
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849404/ft2_4FGL_J2324.7-4041_daily_bin508.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/849404/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/849404/ft1_filtered_4FGL_J2324.7-4041_daily_bin508.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849404/ft1_filtered_4FGL_J2324.7-4041_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/849404/ft2_4FGL_J2324.7-4041_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/849404/ltcube_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.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/849404/ft2_4FGL_J2324.7-4041_daily_bin508.fits
.....................!
real 11.86
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849404/ft1_filtered_4FGL_J2324.7-4041_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/849404/ft2_4FGL_J2324.7-4041_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/849404/ltcube_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.fits outfile=/scratch/kocevski/849404/expmap_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.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/849404/ltcube_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.fits
.....................!
real 190.11
user 185.44
sys 4.34

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/849404/ft1_filtered_4FGL_J2324.7-4041_daily_bin508.fits scfile=/scratch/kocevski/849404/ft2_4FGL_J2324.7-4041_daily_bin508.fits outfile=/scratch/kocevski/849404/cmap_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849404/ft1_filtered_4FGL_J2324.7-4041_daily_bin508.fits scfile=/scratch/kocevski/849404/ft2_4FGL_J2324.7-4041_daily_bin508.fits outfile=/scratch/kocevski/849404/cmap_HighResolution_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.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.51
user 0.37
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/849404/ft1_filtered_4FGL_J2324.7-4041_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/849404/ft2_4FGL_J2324.7-4041_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/849404/Model_4FGL_J2324.7-4041_daily_bin508.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/849404/ft1_filtered_4FGL_J2324.7-4041_daily_bin508.fits.....................!
real 36.96
user 35.63
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/849404/ft1_filtered_4FGL_J2324.7-4041_daily_bin508.fits', '/scratch/kocevski/849404/ft2_4FGL_J2324.7-4041_daily_bin508.fits', expMap='/scratch/kocevski/849404/expmap_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.fits', expCube='/scratch/kocevski/849404/ltcube_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/849404/Model_4FGL_J2324.7-4041_daily_bin508.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/849404/ft1_filtered_4FGL_J2324.7-4041_daily_bin508.fits
Spacecraft file(s): /scratch/kocevski/849404/ft2_4FGL_J2324.7-4041_daily_bin508.fits
Exposure map: /scratch/kocevski/849404/expmap_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.fits
Exposure cube: /scratch/kocevski/849404/ltcube_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/849404/Model_4FGL_J2324.7-4041_daily_bin508.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) = 4393.00322317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.029       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39029       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9018       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2394       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .84410       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.469       1.0000         .10000E-03   10000.    
    14 'norm      '    48.274       1.0000         .10000E-03   10000.    
    15 'norm      '    .42245E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.234       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5694       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11632E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.904       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5606       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.768       1.0000         .10000E-03   10000.    
    23 'norm      '    15.682       1.0000         .10000E-03   10000.    
    24 'norm      '    .10720E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.7212       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2053       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .75986       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=   4392.986     FROM MIGRAD    STATUS=CONVERGED    861 CALLS     4382 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.114       -.50420E-06** at limit **
   2  Prefactor     .10000E-03    7.0474       -.20500E-08** at limit **
   3  Prefactor     31.025        51.214        .90077E-06    .11953E-04
   4  Prefactor     .39109        3.7559        .75436E-06   -.44112E-04
   5  Prefactor     .10000E-03    15.337       -.68446E-07** at limit **
   6  Prefactor     3.9011        10.559       -.56122E-06    .78726E-04
   7  Prefactor     9.2407        27.089        .43454E-06   -.16107E-04
   8  Prefactor     .85064        16.539        .17913E-05   -.13464E-03
   9  Prefactor     16.546        15.325        .15107E-06    .47508E-06
  10  Prefactor     .10000E-03    2.3288        .40712E-08** at limit **
  11  Prefactor     .10000E-03    22.052        .75793E-06** at limit **
  12  Prefactor     .10000E-03    52.147        .58778E-06** at limit **
  13  Prefactor     18.472        17.757        .13987E-06    .43231E-04
  14  norm          48.275        23.446       -.32354E-07    .10671E-04
  15  norm          .10011E-03    11.718       -.25307E-05** at limit **
  16  norm          .10000E-03    2.9145        .14021E-06** at limit **
  17  norm          15.227        14.750        .47991E-06    .31527E-04
  18  Prefactor     9.5775        11.830       -.85302E-07    .12847E-03
  19  Prefactor     .10000E-03    112.70       -.52108E-06** at limit **
  20  Prefactor     37.097        72.141       -.47740E-05   -.12229E-03
  21  norm          1.5694        4.4413       -.42832E-06   -.16649E-04
  22  Prefactor     37.759        26.446        .23089E-06    .46144E-04
  23  norm          15.685        3.1964        .16223E-07    .55364E-03
  24  norm          .10000E-03    4.6521       -.47157E-06** at limit **
  25  Prefactor     .10000E-03    1.8078       -.77660E-08** at limit **
  26  Prefactor     .10000E-03    7.1822       -.25020E-07** at limit **
  27  Prefactor     .10000E-03    35.273       -.30002E-06** at limit **
  28  Prefactor     .10000E-03    2.4980       -.33809E-07** at limit **
  29  Prefactor     .10000E-03    2.3142       -.42413E-07** at limit **
  30  Prefactor     4.7633        143.19       -.84459E-06   -.12026E-04
  31  Normalizat    1.2052        .28695       -.51591E-05   -.89065E-04
  32  Prefactor     .75982        .28311        .65278E-05    .10988E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0253
  Prefactor  = 0.391092
  Prefactor  = 0.0001
  Prefactor  = 3.90113
  Prefactor  = 9.24072
  Prefactor  = 0.850635
  Prefactor  = 16.5461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.472
  norm       = 48.2754
  norm       = 0.000100107
  norm       = 0.0001
  norm       = 15.2275
  Prefactor  = 9.57748
  Prefactor  = 0.0001
  Prefactor  = 37.0973
  norm       = 1.56939
  Prefactor  = 37.759
  norm       = 15.6846
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.76328
  Normalizat = 1.20525
  Prefactor  = 0.759817
 **********
 **   18 **HESSE 
 **********

 FCN=   4392.986     FROM HESSE     STATUS=OK           661 CALLS     5043 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.0500        .17186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.025        51.203        .71929E-04   -1.4593    
   4  Prefactor     .39109        7.1847        .23788E-02   -1.5583    
   5  Prefactor     .10000E-03    15.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9011        10.579        .10213E-02   -1.5313    
   7  Prefactor     9.2407        26.940        .13185E-03   -1.5100    
   8  Prefactor     .85064        88.787        .48556E-02   -1.5524    
   9  Prefactor     16.546        15.317        .98463E-04   -1.4894    
  10  Prefactor     .10000E-03    2.3321        .98776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    52.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.472        17.752        .93196E-04   -1.4848    
  14  norm          48.275        23.446        .57713E-04   -1.4317    
  15  norm          .10011E-03    48.610        .37064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9197        .11049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.227        14.782        .10262E-03   -1.4927    
  18  Prefactor     9.5775        11.682        .12955E-03   -1.5089    
  19  Prefactor     .10000E-03    114.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.097        74.753        .32986E-03   -1.4489    
  21  norm          1.5694        4.3244        .21956E-03   -1.5457    
  22  Prefactor     37.759        26.401        .65216E-04   -1.4478    
  23  norm          15.685        3.1746        .23901E-03   -1.4916    
  24  norm          .10000E-03    10.759        .26625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.8157        .87008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.1839        .17349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    35.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.5009        .10228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.3367        .98438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     4.7633        142.59        .18519E-03   -1.5271    
  31  Normalizat    1.2052        .29867        .24457E-03   -.86441    
  32  Prefactor     .75982        .29890        .32036E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62712e-08
Minuit parameter uncertainties:
  1  7.44502e-05
  2  6.3095e-07
  3  51.2755
  4  3.35258
  5  1.25518e-05
  6  10.584
  7  26.9756
  8  17.4066
  9  15.3211
  10  8.10467e-07
  11  0.000106539
  12  0.000110776
  13  17.7575
  14  23.4506
  15  0.00457316
  16  8.94856e-06
  17  14.7858
  18  11.6843
  19  0.000131736
  20  74.9422
  21  4.32529
  22  26.4091
  23  3.17465
  24  0.000148716
  25  6.12568e-07
  26  1.87213e-06
  27  2.98688e-05
  28  3.36578e-06
  29  3.44694e-06
  30  52.2603
  31  0.299096
  32  0.299535
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  8.949e-06  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:  7.598e-01  2.995e-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.205e+00  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/849404/likelihoodResults_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.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) = 4392.98800284
delta logL = -0.00155021007231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4392.98645262
delta logL = 1.0579242371e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6275       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75982       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4392.986     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      250 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    240.39        .11056E-02** at limit **
   2  alpha         1.8020        4.0569        .50000        .34311E-07
   3  Normalizat    1.2053        .54923E-01    .24459E-03   -.46017E-04
   4  Prefactor     .75981        .58708E-01    .32035E-03   -.35489E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80196
  Normalizat = 1.20525
  Prefactor  = 0.759814
 **********
 **   18 **HESSE 
 **********

 FCN=   4392.986     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    717.16        .22111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8020        3.0203        .50000       -.28298    
   3  Normalizat    1.2053        .25400        .97834E-05   -.86441    
   4  Prefactor     .75981        .27116        .12814E-04   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.7435e-09
Minuit parameter uncertainties:
  1  0.000231371
  2  2565.32
  3  0.254258
  4  0.271638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849404': 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) = 4392.98645238
delta logL = 2.50322045758e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  2.314e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.802e+00  2.565e+03  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:  7.598e-01  2.716e-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.205e+00  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.182 -40.683

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/849404/cmap_HighResolution_371001601_371260801_4FGL_J2324.7-4041_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-05', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2021-09-29 16:55:34.908333', job_id='849404', GAL2='0.76', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632959734.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='508' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:55:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 849404: <4FGL_J2324.7-4041_daily_bin508> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin508> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 16:40:30 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:40:31 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:40:31 2021
Terminated at Wed Sep 29 16:55:35 2021
Results reported at Wed Sep 29 16:55:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin508 351.182 -40.6834 371001601 371260801 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 :                                   747.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             253.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

