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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1043
RA = 351.182, Dec = -40.6834
tmin = 509673601, tmax = 509932801
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='851768', job_status='RUN', time_executed='2021-09-29 16:47:03.054199', time_epoch_executed='1632959223.05' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851768/ft1_4FGL_J2324.7-4041_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851768/ft2_4FGL_J2324.7-4041_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851768/ft1_4FGL_J2324.7-4041_daily_bin1043.fits outfile=/scratch/kocevski/851768/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1043.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=509673601.0 tmax=509932801.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.58
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851768/ft2_4FGL_J2324.7-4041_daily_bin1043.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/851768/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1043.fits evtable="EVENTS" outfile="/scratch/kocevski/851768/ft1_filtered_4FGL_J2324.7-4041_daily_bin1043.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851768/ft1_filtered_4FGL_J2324.7-4041_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/851768/ft2_4FGL_J2324.7-4041_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/851768/ltcube_509673601_509932801_4FGL_J2324.7-4041_daily_bin1043.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/851768/ft2_4FGL_J2324.7-4041_daily_bin1043.fits
.....................!
real 12.57
user 12.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851768/ft1_filtered_4FGL_J2324.7-4041_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/851768/ft2_4FGL_J2324.7-4041_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/851768/ltcube_509673601_509932801_4FGL_J2324.7-4041_daily_bin1043.fits outfile=/scratch/kocevski/851768/expmap_509673601_509932801_4FGL_J2324.7-4041_daily_bin1043.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/851768/ltcube_509673601_509932801_4FGL_J2324.7-4041_daily_bin1043.fits
.....................!
real 190.57
user 185.93
sys 4.12

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/851768/ft1_filtered_4FGL_J2324.7-4041_daily_bin1043.fits scfile=/scratch/kocevski/851768/ft2_4FGL_J2324.7-4041_daily_bin1043.fits outfile=/scratch/kocevski/851768/cmap_509673601_509932801_4FGL_J2324.7-4041_daily_bin1043.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851768/ft1_filtered_4FGL_J2324.7-4041_daily_bin1043.fits scfile=/scratch/kocevski/851768/ft2_4FGL_J2324.7-4041_daily_bin1043.fits outfile=/scratch/kocevski/851768/cmap_HighResolution_509673601_509932801_4FGL_J2324.7-4041_daily_bin1043.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851768/ft1_filtered_4FGL_J2324.7-4041_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/851768/ft2_4FGL_J2324.7-4041_daily_bin1043.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851768/Model_4FGL_J2324.7-4041_daily_bin1043.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/851768/ft1_filtered_4FGL_J2324.7-4041_daily_bin1043.fits.....................!
real 35.65
user 34.36
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8161       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6953       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10772E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.218       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.306       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.050       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.460       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.321       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8037       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2291       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6210       1.0000         .10000E-03   10000.    
    17 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8173       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5033       1.0000         .10000E-03   10000.    
    21 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .84098       1.0000         .10000E-03   10000.    
    24 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.6519       1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.287       1.0000         .10000E-03   10000.    
    27 'Prefactor '    42.825       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.026       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0274       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0452       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=   4232.604     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4362 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.444        .34405E-06** at limit **
   2  Prefactor     4.8210        18.428        .15530E-06   -.21707E-04
   3  Prefactor     .10000E-03    14.679       -.71314E-07** at limit **
   4  Prefactor     5.6979        5.5030        .16457E-06    .17179E-03
   5  Prefactor     .10000E-03    17.668        .12048E-06** at limit **
   6  Prefactor     .10012E-03    10.631       -.20910E-05** at limit **
   7  Prefactor     48.229        35.954       -.37240E-06   -.56961E-04
   8  Prefactor     16.294        28.812        .25653E-05    .24241E-03
   9  Prefactor     17.077        19.451       -.55610E-06   -.19056E-03
  10  Prefactor     12.459        10.708       -.73099E-07   -.19252E-04
  11  Prefactor     13.348        42.020       -.16465E-05   -.44862E-04
  12  Prefactor     .10000E-03    47.845        .66966E-06** at limit **
  13  Prefactor     .10000E-03    12.759       -.43024E-07** at limit **
  14  norm          4.8032        13.610        .59395E-05   -.11747E-03
  15  norm          2.2314        5.3487        .29269E-06   -.26526E-04
  16  norm          3.6208        3.7795       -.44759E-07    .10622E-04
  17  norm          .10000E-03    3.3768        .36414E-07** at limit **
  18  Prefactor     7.8206        7.5011       -.26906E-06   -.24332E-04
  19  Prefactor     .10000E-03    57.512       -.11033E-05** at limit **
  20  Prefactor     1.6066        495.68        .10133E-04    .14618E-04
  21  norm          .10000E-03    3.0357        .98638E-08** at limit **
  22  Prefactor     .10000E-03    11.592       -.84072E-07** at limit **
  23  norm          .84010        1.6078        .17434E-06   -.44726E-04
  24  norm          .10000E-03    2.4206        .69987E-08** at limit **
  25  Prefactor     1.6487        4.4590        .55856E-06   -.41640E-04
  26  Prefactor     37.288        32.946       -.13770E-06    .28401E-04
  27  Prefactor     42.740        54.427       -.17590E-05   -.13075E-03
  28  Prefactor     .10000E-03    2.2928        .46423E-07** at limit **
  29  Prefactor     .10000E-03    4.1448        .10386E-07** at limit **
  30  Prefactor     12.015        38.325        .34952E-05    .13348E-03
  31  Normalizat    1.0277        .22316       -.34225E-06    .11002E-03
  32  Prefactor     1.0451        .23699       -.56590E-06    .88129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.82101
  Prefactor  = 0.0001
  Prefactor  = 5.69793
  Prefactor  = 0.0001
  Prefactor  = 0.000100119
  Prefactor  = 48.2291
  Prefactor  = 16.2943
  Prefactor  = 17.0771
  Prefactor  = 12.4593
  Prefactor  = 13.3484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.80321
  norm       = 2.23137
  norm       = 3.6208
  norm       = 0.0001
  Prefactor  = 7.82063
  Prefactor  = 0.000100001
  Prefactor  = 1.60663
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.840096
  norm       = 0.0001
  Prefactor  = 1.64871
  Prefactor  = 37.288
  Prefactor  = 42.7398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0149
  Normalizat = 1.02773
  Prefactor  = 1.04508
 **********
 **   18 **HESSE 
 **********

 FCN=   4232.604     FROM HESSE     STATUS=OK           657 CALLS     5019 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8210        18.389        .18332E-03   -1.5269    
   3  Prefactor     .10000E-03    14.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6979        5.4736        .14253E-03   -1.5231    
   5  Prefactor     .10000E-03    17.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10012E-03    38.768        .38439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.229        36.014        .57747E-04   -1.4318    
   8  Prefactor     16.294        29.517        .99184E-04   -1.4900    
   9  Prefactor     17.077        19.576        .96997E-04   -1.4881    
  10  Prefactor     12.459        10.710        .11348E-03   -1.5002    
  11  Prefactor     13.348        41.954        .10975E-03   -1.4977    
  12  Prefactor     .10000E-03    47.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8032        14.003        .91779E-03   -1.5270    
  15  norm          2.2314        5.3048        .22375E-03   -1.5409    
  16  norm          3.6208        3.7842        .12610E-03   -1.5327    
  17  norm          .10000E-03    3.3805        .11674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8206        7.4478        .14342E-03   -1.5149    
  19  Prefactor     .10000E-03    57.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6066        498.60        .34914E-03   -1.5454    
  21  norm          .10000E-03    3.0799        .11062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .84010        1.5407        .10054E-03   -1.5525    
  24  norm          .10000E-03    2.4678        .98816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.6487        4.3673        .20158E-03   -1.5451    
  26  Prefactor     37.288        32.595        .65634E-04   -1.4486    
  27  Prefactor     42.740        55.088        .30630E-03   -1.4400    
  28  Prefactor     .10000E-03    2.2967        .96196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.2145        .12909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     12.015        39.036        .11551E-03   -1.5015    
  31  Normalizat    1.0277        .26360        .24629E-03   -.92107    
  32  Prefactor     1.0451        .28227        .26895E-03   -.91242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96575e-09
Minuit parameter uncertainties:
  1  0.000106884
  2  18.4101
  3  1.39021e-05
  4  5.47405
  5  1.43557e-05
  6  0.00430245
  7  36.0305
  8  29.5429
  9  19.583
  10  10.7115
  11  42.0471
  12  0.000261247
  13  6.68148e-06
  14  14.0129
  15  5.30595
  16  3.78442
  17  1.16895e-06
  18  7.44872
  19  0.000432982
  20  57.0902
  21  2.08073e-06
  22  1.15372e-05
  23  1.54081
  24  1.46031e-06
  25  4.36815
  26  32.6106
  27  55.1541
  28  4.38928e-07
  29  3.09918e-06
  30  39.1191
  31  0.263937
  32  0.282677
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.621e+00  3.784e+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:  1.045e+00  2.827e-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.028e+00  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 8.88e-09 +/- 9.28e-09
Energy Flux (Fixed Index): 1.92e-05 +/- 2.01e-05

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) = 4232.59046396
delta logL = 0.0135767301326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4232.58945339
delta logL = 0.0145872981975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7967       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4811       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0449       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=   4232.589     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7951        179.80        .51791E-02   -.13306E-03
   2  alpha         1.4807        4.1084        .46622        .53211E-05
   3  Normalizat    1.0286        .16088        .42287E-01    .69102E-05
   4  Prefactor     1.0450        .12137        .60816E-01    .69085E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.79511
  alpha      = 1.48066
  Normalizat = 1.02865
  Prefactor  = 1.04504
 **********
 **   18 **HESSE 
 **********

 FCN=   4232.589     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .99E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7951        4.0498        .12938E-03   -1.5318    
   2  alpha         1.4807        .80752        .18127E-01   -.41997    
   3  Normalizat    1.0286        .25350        .24619E-03   -.92077    
   4  Prefactor     1.0450        .28001        .26896E-03   -.91243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88708e-14
Minuit parameter uncertainties:
  1  4.05009
  2  0.825387
  3  0.253795
  4  0.280399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851768': 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) = 4232.58945298
delta logL = 0.0145877066707

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.795e+00  4.050e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.481e+00  8.254e-01  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.045e+00  2.804e-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.029e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.48 +/- 0.83
Photon Flux (Free Index): 7.61e-09 +/- 1.02e-08
Energy Flux (Free Index): 2.42e-05 +/- 4.27e-05

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/851768/cmap_HighResolution_509673601_509932801_4FGL_J2324.7-4041_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.88e-09', energy_flux2='2.42e-05', photon_flux_error='9.28e-09', dlogl='1.46e-02', energy_flux='1.92e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2021-09-29 16:57:53.559116', photon_index_error2='0.83', photon_index2='1.48', ts='4.10', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='4.27e-05', EG='1.03', time_epoch_completed='1632959873.56', return_code='0', job_id='851768', GAL2='1.05', EG2='1.03', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='1.02e-08', ts2='4.13', photon_index='1.62' WHERE bin_id='1043' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:57:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 851768: <4FGL_J2324.7-4041_daily_bin1043> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1043 351.182 -40.6834 509673601 509932801 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 :                                   637.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            732 sec.

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

