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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1017
RA = 351.182, Dec = -40.6834
tmin = 502934401, tmax = 503193601
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='851728', job_status='RUN', time_executed='2021-09-29 16:45:56.300549', time_epoch_executed='1632959156.3' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851728

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851728/ft1_4FGL_J2324.7-4041_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851728/ft2_4FGL_J2324.7-4041_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851728/ft1_4FGL_J2324.7-4041_daily_bin1017.fits outfile=/scratch/kocevski/851728/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1017.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=502934401.0 tmax=503193601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.56
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851728/ft1_filtered_4FGL_J2324.7-4041_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/851728/ft2_4FGL_J2324.7-4041_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/851728/ltcube_502934401_503193601_4FGL_J2324.7-4041_daily_bin1017.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/851728/ft2_4FGL_J2324.7-4041_daily_bin1017.fits
.....................!
real 12.13
user 11.39
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851728/ft1_filtered_4FGL_J2324.7-4041_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/851728/ft2_4FGL_J2324.7-4041_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/851728/ltcube_502934401_503193601_4FGL_J2324.7-4041_daily_bin1017.fits outfile=/scratch/kocevski/851728/expmap_502934401_503193601_4FGL_J2324.7-4041_daily_bin1017.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/851728/ltcube_502934401_503193601_4FGL_J2324.7-4041_daily_bin1017.fits
.....................!
real 190.07
user 184.68
sys 5.03

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/851728/ft1_filtered_4FGL_J2324.7-4041_daily_bin1017.fits scfile=/scratch/kocevski/851728/ft2_4FGL_J2324.7-4041_daily_bin1017.fits outfile=/scratch/kocevski/851728/cmap_502934401_503193601_4FGL_J2324.7-4041_daily_bin1017.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851728/ft1_filtered_4FGL_J2324.7-4041_daily_bin1017.fits scfile=/scratch/kocevski/851728/ft2_4FGL_J2324.7-4041_daily_bin1017.fits outfile=/scratch/kocevski/851728/cmap_HighResolution_502934401_503193601_4FGL_J2324.7-4041_daily_bin1017.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/851728/ft1_filtered_4FGL_J2324.7-4041_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/851728/ft2_4FGL_J2324.7-4041_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851728/Model_4FGL_J2324.7-4041_daily_bin1017.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/851728/ft1_filtered_4FGL_J2324.7-4041_daily_bin1017.fits.....................!
real 44.77
user 43.49
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.092       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40948       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.820       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.790       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9701       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.660       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13065E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13212E-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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.1967       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5189       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.6640       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.802       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.569       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    153.04       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .59598       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1193       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=   6240.414     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     4407 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.082        41.303       -.91286E-06   -.38209E-04
   2  Prefactor     .18908        14.250       -.56466E-08   -.36777E-05
   3  Prefactor     .10000E-03    26.948       -.84846E-08** at limit **
   4  Prefactor     .10000E-03    1.7925       -.39593E-07** at limit **
   5  Prefactor     10.810        31.341       -.59852E-06   -.21484E-04
   6  Prefactor     16.788        7.5198        .35484E-07    .10950E-04
   7  Prefactor     4.9685        9.0932        .29908E-05   -.14733E-03
   8  Prefactor     15.653        18.799        .43874E-07   -.65986E-06
   9  Prefactor     .10000E-03    6.0691       -.47256E-07** at limit **
  10  Prefactor     .10000E-03    2.4160       -.15999E-07** at limit **
  11  Prefactor     .10000E-03    29.729       -.12580E-05** at limit **
  12  Prefactor     .10000E-03    42.734        .63256E-06** at limit **
  13  Prefactor     .10000E-03    7.1968        .18643E-06** at limit **
  14  norm          .10000E-03    3.8409       -.11906E-08** at limit **
  15  norm          .10000E-03    2.6651        .80373E-07** at limit **
  16  norm          .10000E-03    2.5451        .18557E-08** at limit **
  17  norm          .10000E-03    2.1646        .14361E-07** at limit **
  18  Prefactor     .10000E-03    2.7706        .93734E-07** at limit **
  19  Prefactor     .10000E-03    11.234        .90933E-06** at limit **
  20  Prefactor     .10000E-03    9.5580       -.48228E-06** at limit **
  21  norm          6.1974        3.3536        .44404E-07   -.64478E-04
  22  Prefactor     .10000E-03    14.264       -.69578E-06** at limit **
  23  norm          .10000E-03    .29724        .83747E-07** at limit **
  24  norm          1.5187        2.5363        .27807E-06   -.40474E-04
  25  Prefactor     7.6635        5.2218       -.29556E-06   -.99056E-04
  26  Prefactor     10.831        26.080        .19438E-05    .92315E-04
  27  Prefactor     .10000E-03    20.282        .11516E-05** at limit **
  28  Prefactor     13.567        6.9353        .18295E-06   -.45387E-05
  29  Prefactor     .10000E-03    2.7473        .18029E-06** at limit **
  30  Prefactor     153.03        65.549       -.77474E-06   -.70043E-04
  31  Normalizat    .59614        .15469       -.45913E-06   -.12848E-04
  32  Prefactor     1.1193        .17104       -.17205E-06   -.17364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0823
  Prefactor  = 0.189083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8103
  Prefactor  = 16.788
  Prefactor  = 4.9685
  Prefactor  = 15.6526
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.19741
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.51869
  Prefactor  = 7.6635
  Prefactor  = 10.8308
  Prefactor  = 0.0001
  Prefactor  = 13.5673
  Prefactor  = 0.0001
  Prefactor  = 153.029
  Normalizat = 0.596144
  Prefactor  = 1.11929
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.414     FROM HESSE     STATUS=OK           673 CALLS     5080 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.082        41.477        .76967E-04   -1.4667    
   2  Prefactor     .18908        17.981        .91215E-01   -1.5621    
   3  Prefactor     .10000E-03    27.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8222        .10312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.810        31.366        .12180E-03   -1.5050    
   6  Prefactor     16.788        7.5236        .97744E-04   -1.4888    
   7  Prefactor     4.9685        9.2283        .90197E-03   -1.5262    
   8  Prefactor     15.653        18.786        .10121E-03   -1.4916    
   9  Prefactor     .10000E-03    6.1640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2174        .42608E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.2528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.8452        .15120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.2440        .25120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5582        .12278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1710        .11350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7966        .12835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.5808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.1974        3.3373        .10067E-03   -1.5210    
  22  Prefactor     .10000E-03    14.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .30308        .83852E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5187        2.5059        .15520E-03   -1.5461    
  25  Prefactor     7.6635        5.2644        .12208E-03   -1.5154    
  26  Prefactor     10.831        26.685        .12190E-03   -1.5050    
  27  Prefactor     .10000E-03    20.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.567        6.9409        .10874E-03   -1.4971    
  29  Prefactor     .10000E-03    2.7978        .12750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     153.03        65.961        .16292E-03   -1.3228    
  31  Normalizat    .59614        .17844        .25416E-03   -1.0815    
  32  Prefactor     1.1193        .19782        .21916E-03   -.88852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7692e-10
Minuit parameter uncertainties:
  1  41.5209
  2  3.68792
  3  1.76445e-05
  4  3.22257e-06
  5  31.4134
  6  7.52399
  7  9.23099
  8  18.7932
  9  2.31264e-06
  10  0.000174139
  11  0.000131844
  12  8.31838e-05
  13  9.15112e-06
  14  2.22403e-07
  15  1.43975e-05
  16  9.43034e-07
  17  9.93412e-07
  18  9.05201e-07
  19  6.16021e-05
  20  2.96496e-05
  21  3.3374
  22  8.88316e-05
  23  3.78972e-07
  24  2.50609
  25  5.26467
  26  26.7145
  27  0.000124332
  28  6.94129
  29  1.35419e-06
  30  65.9924
  31  0.17861
  32  0.197951
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  9.430e-07  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:  1.119e+00  1.980e-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:  5.961e-01  1.786e-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: 2.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851728/likelihoodResults_502934401_503193601_4FGL_J2324.7-4041_daily_bin1017.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) = 6240.41612276
delta logL = -0.00184071380954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6240.41428162
delta logL = 4.34588400822e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6497       1.0000          .0000       5.0000    
     3 'Normalizat'    .59617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1193       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=   6240.414     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      189 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0168        .90712E-02** at limit **
   2  alpha         1.6772        3.3200        .44658       -.47867E-04
   3  Normalizat    .59614        .14622        .40887E-01    .26654E-04
   4  Prefactor     1.1193        .16938        .36897E-01    .21133E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.67721
  Normalizat = 0.596143
  Prefactor  = 1.11929
 **********
 **   18 **HESSE 
 **********

 FCN=   6240.414     FROM HESSE     STATUS=OK            31 CALLS      220 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7146        .12617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6772        3.3046        .17863       -.33537    
   3  Normalizat    .59614        .16843        .25416E-03   -1.0815    
   4  Prefactor     1.1193        .19521        .21916E-03   -.88852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44461e-09
Minuit parameter uncertainties:
  1  5.2803e-05
  2  2.36465
  3  0.168577
  4  0.195336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851728': 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) = 6240.41428096
delta logL = 1.08802578325e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  5.280e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.677e+00  2.365e+00  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:  1.119e+00  1.953e-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:  5.961e-01  1.686e-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/851728/cmap_HighResolution_502934401_503193601_4FGL_J2324.7-4041_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-05', job_status='DONE', photon_flux_upper_limit='2.51e-08', time_completed='2021-09-29 17:01:15.318817', job_id='851728', GAL2='1.12', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1632960075.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1017' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:01:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 851728: <4FGL_J2324.7-4041_daily_bin1017> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1017> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:40 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:41 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:41 2021
Terminated at Wed Sep 29 17:01:16 2021
Results reported at Wed Sep 29 17:01:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1017 351.182 -40.6834 502934401 503193601 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 :                                   911.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

