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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1026
RA = 351.182, Dec = -40.6834
tmin = 505267201, tmax = 505526401
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='851742', job_status='RUN', time_executed='2021-09-29 16:47:27.650938', time_epoch_executed='1632959247.65' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851742

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851742/ft1_4FGL_J2324.7-4041_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851742/ft2_4FGL_J2324.7-4041_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851742/ft1_4FGL_J2324.7-4041_daily_bin1026.fits outfile=/scratch/kocevski/851742/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1026.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=505267201.0 tmax=505526401.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.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851742/ft2_4FGL_J2324.7-4041_daily_bin1026.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/851742/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1026.fits evtable="EVENTS" outfile="/scratch/kocevski/851742/ft1_filtered_4FGL_J2324.7-4041_daily_bin1026.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.52
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851742/ft1_filtered_4FGL_J2324.7-4041_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/851742/ft2_4FGL_J2324.7-4041_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/851742/ltcube_505267201_505526401_4FGL_J2324.7-4041_daily_bin1026.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/851742/ft2_4FGL_J2324.7-4041_daily_bin1026.fits
.....................!
real 12.79
user 12.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851742/ft1_filtered_4FGL_J2324.7-4041_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/851742/ft2_4FGL_J2324.7-4041_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/851742/ltcube_505267201_505526401_4FGL_J2324.7-4041_daily_bin1026.fits outfile=/scratch/kocevski/851742/expmap_505267201_505526401_4FGL_J2324.7-4041_daily_bin1026.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/851742/ltcube_505267201_505526401_4FGL_J2324.7-4041_daily_bin1026.fits
.....................!
real 189.81
user 185.01
sys 4.49

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/851742/ft1_filtered_4FGL_J2324.7-4041_daily_bin1026.fits scfile=/scratch/kocevski/851742/ft2_4FGL_J2324.7-4041_daily_bin1026.fits outfile=/scratch/kocevski/851742/cmap_505267201_505526401_4FGL_J2324.7-4041_daily_bin1026.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/851742/ft1_filtered_4FGL_J2324.7-4041_daily_bin1026.fits scfile=/scratch/kocevski/851742/ft2_4FGL_J2324.7-4041_daily_bin1026.fits outfile=/scratch/kocevski/851742/cmap_HighResolution_505267201_505526401_4FGL_J2324.7-4041_daily_bin1026.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.074       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17368E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5453       1.0000         .10000E-03   10000.    
     5 'Prefactor '    58.212       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.347       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15647E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6877       1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.496       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.480       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1715       1.0000         .10000E-03   10000.    
    16 'norm      '    4.9021       1.0000         .10000E-03   10000.    
    17 'norm      '    4.8732       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    59.078       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .23656       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .13145       1.0000         .10000E-03   10000.    
    24 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1157       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.020       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .17005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.948       1.0000         .10000E-03   10000.    
    30 'Prefactor '    24.544       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1387       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .61838       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=   4708.932     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     4563 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.180        61.637        .89893E-06    .65135E-05
   2  Prefactor     .10000E-03    10.771        .28736E-06** at limit **
   3  Prefactor     .10044E-03    176.21       -.26685E-04** at limit **
   4  Prefactor     1.5460        2.1894       -.19428E-07   -.19175E-03
   5  Prefactor     58.217        48.662        .31960E-07   -.62269E-04
   6  Prefactor     .10000E-03    2.5850        .13007E-06** at limit **
   7  Prefactor     31.296        25.495        .25818E-06   -.69326E-04
   8  Prefactor     .10000E-03    15.197       -.13625E-06** at limit **
   9  Prefactor     .42917        8.0857        .22242E-05    .19856E-04
  10  Prefactor     1.7054        16.848       -.66724E-06   -.11067E-03
  11  Prefactor     44.530        41.878        .11139E-06   -.28443E-04
  12  Prefactor     27.457        40.604       -.28169E-07   -.19702E-04
  13  Prefactor     .10000E-03    15.263        .11570E-05** at limit **
  14  norm          .10000E-03    25.039        .17683E-05** at limit **
  15  norm          5.1718        7.8248       -.53026E-06   -.27458E-03
  16  norm          4.9159        4.9100        .56630E-06    .55019E-04
  17  norm          4.8766        5.8463        .17833E-07   -.51548E-04
  18  Prefactor     .10000E-03    1.9176        .20101E-06** at limit **
  19  Prefactor     59.326        47.360        .41951E-06    .28743E-04
  20  Prefactor     .10000E-03    15.457        .25009E-06** at limit **
  21  norm          .20339        12.220       -.61720E-05    .97526E-04
  22  Prefactor     .10000E-03    3.5936        .18817E-06** at limit **
  23  norm          .13213        .97952        .28441E-06    .69155E-03
  24  norm          .10000E-03    2.4630        .17953E-06** at limit **
  25  Prefactor     2.1179        2.9281       -.11293E-06   -.28690E-03
  26  Prefactor     .10000E-03    31.096        .12900E-05** at limit **
  27  Prefactor     23.053        51.554        .18025E-06    .30419E-04
  28  Prefactor     .10003E-03    7.8226        .30547E-05** at limit **
  29  Prefactor     10.957        5.2169       -.55120E-06   -.11620E-02
  30  Prefactor     24.607        50.164        .36082E-06    .15678E-03
  31  Normalizat    1.1375        .21549        .25439E-05   -.13087E-03
  32  Prefactor     .61880        .22218       -.49879E-05   -.81524E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.1799
  Prefactor  = 0.0001
  Prefactor  = 0.000100445
  Prefactor  = 1.54596
  Prefactor  = 58.2173
  Prefactor  = 0.0001
  Prefactor  = 31.296
  Prefactor  = 0.0001
  Prefactor  = 0.429175
  Prefactor  = 1.70541
  Prefactor  = 44.5299
  Prefactor  = 27.4569
  Prefactor  = 0.000100001
  norm       = 0.000100003
  norm       = 5.17181
  norm       = 4.91593
  norm       = 4.87656
  Prefactor  = 0.0001
  Prefactor  = 59.3263
  Prefactor  = 0.0001
  norm       = 0.20339
  Prefactor  = 0.0001
  norm       = 0.132129
  norm       = 0.0001
  Prefactor  = 2.1179
  Prefactor  = 0.000100002
  Prefactor  = 23.053
  Prefactor  = 0.00010003
  Prefactor  = 10.9573
  Prefactor  = 24.607
  Normalizat = 1.13748
  Prefactor  = 0.618795
 **********
 **   18 **HESSE 
 **********

 FCN=   4708.932     FROM HESSE     STATUS=OK           673 CALLS     5236 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.180        61.596        .60389E-04   -1.4378    
   2  Prefactor     .10000E-03    10.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10044E-03    30.577        .10733       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5460        2.1668        .11740E-03   -1.5459    
   5  Prefactor     58.217        48.471        .26291E-03   -1.4180    
   6  Prefactor     .10000E-03    2.5907        .10777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.296        25.437        .71565E-04   -1.4589    
   8  Prefactor     .10000E-03    15.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .42917        54.687        .35303E-02   -1.5577    
  10  Prefactor     1.7054        16.769        .32410E-03   -1.5447    
  11  Prefactor     44.530        41.884        .60103E-04   -1.4372    
  12  Prefactor     27.457        40.593        .76423E-04   -1.4659    
  13  Prefactor     .10000E-03    15.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    25.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1718        7.9369        .17678E-03   -1.5253    
  16  norm          4.9159        5.3585        .13803E-03   -1.5264    
  17  norm          4.8766        5.8413        .17589E-03   -1.5266    
  18  Prefactor     .10000E-03    1.9234        .92855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     59.326        50.313        .52198E-04   -1.4166    
  20  Prefactor     .10000E-03    15.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .20339        36.968        .20992E-02   -1.5618    
  22  Prefactor     .10000E-03    3.5986        .12708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .13213        1.7155        .11345E-02   -1.5635    
  24  norm          .10000E-03    2.5080        .10526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.1179        2.9059        .13278E-03   -1.5417    
  26  Prefactor     .10000E-03    31.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     23.053        51.521        .83486E-04   -1.4747    
  28  Prefactor     .10003E-03    17.005        .30907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.957        5.2643        .51751E-03   -1.5046    
  30  Prefactor     24.607        48.740        .80856E-04   -1.4715    
  31  Normalizat    1.1375        .22370        .20852E-03   -.88557    
  32  Prefactor     .61880        .22838        .29475E-03   -1.0680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15716e-09
Minuit parameter uncertainties:
  1  61.6853
  2  7.26037e-05
  3  0.00738032
  4  2.16694
  5  48.5041
  6  1.04813e-05
  7  25.4456
  8  6.27917e-05
  9  9.6972
  10  10.699
  11  41.9117
  12  40.6337
  13  0.000292352
  14  0.000537241
  15  7.93851
  16  5.35906
  17  5.84196
  18  1.77951e-05
  19  50.3491
  20  6.87642e-05
  21  5.48623
  22  2.08778e-05
  23  0.951863
  24  6.11923e-06
  25  2.90605
  26  0.000530525
  27  51.6203
  28  0.0014297
  29  5.26454
  30  48.8191
  31  0.223887
  32  0.228726
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  4.916e+00  5.359e+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:  6.188e-01  2.287e-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.137e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.95
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.21e-08 +/- 1.31e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 2.84e-05

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

Saving results to:
/scratch/kocevski/851742/likelihoodResults_505267201_505526401_4FGL_J2324.7-4041_daily_bin1026.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) = 4708.71009743
delta logL = 0.222316900172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4708.70705018
delta logL = 0.225364148469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6472       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1416       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61947       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=   4708.707     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6481        93.418        .52881E-02    .31224E-04
   2  alpha         2.1414        3.0764        .22897        .41182E-04
   3  Normalizat    1.1297        .11219        .36900E-01   -.20209E-05
   4  Prefactor     .61954        .83570E-01    .66516E-01    .47349E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64814
  alpha      = 2.14145
  Normalizat = 1.12969
  Prefactor  = 0.619545
 **********
 **   18 **HESSE 
 **********

 FCN=   4708.707     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6481        4.5668        .10691E-03   -1.5326    
   2  alpha         2.1414        .84424        .12858E-01   -.14392    
   3  Normalizat    1.1297        .20711        .20904E-03   -.88804    
   4  Prefactor     .61954        .22128        .29435E-03   -1.0677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39922e-09
Minuit parameter uncertainties:
  1  4.56723
  2  0.861549
  3  0.207254
  4  0.221589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851742': 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) = 4708.70705007
delta logL = 0.225364257323

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  3.648e+00  4.567e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.141e+00  8.615e-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:  6.195e-01  2.216e-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.130e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.40
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 2.14 +/- 0.86
Photon Flux (Free Index): 2.44e-08 +/- 3.21e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.64e-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/851742/cmap_HighResolution_505267201_505526401_4FGL_J2324.7-4041_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.75e-05', comment='SUCCESS', photon_flux='1.21e-08', energy_flux2='1.58e-05', photon_flux_error='1.31e-08', dlogl='2.25e-01', energy_flux='2.61e-05', photon_flux2='2.44e-08', job_status='DONE', time_completed='2021-09-29 17:00:18.922918', photon_index_error2='0.86', photon_index2='2.14', ts='3.95', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='4.51e-08', energy_flux_error2='1.64e-05', EG='1.14', time_epoch_completed='1632960018.92', return_code='0', job_id='851742', GAL2='0.62', EG2='1.13', return_code2='0', energy_flux_error='2.84e-05', photon_flux_error2='3.21e-08', ts2='4.40', photon_index='1.62' WHERE bin_id='1026' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:00:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 851742: <4FGL_J2324.7-4041_daily_bin1026> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1026 351.182 -40.6834 505267201 505526401 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            878 sec.

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

