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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1123
RA = 351.182, Dec = -40.6834
tmin = 530409601, tmax = 530668801
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='851894', job_status='RUN', time_executed='2021-09-29 16:48:02.322782', time_epoch_executed='1632959282.32' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851894

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851894/ft1_4FGL_J2324.7-4041_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851894/ft2_4FGL_J2324.7-4041_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851894/ft1_4FGL_J2324.7-4041_daily_bin1123.fits outfile=/scratch/kocevski/851894/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1123.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=530409601.0 tmax=530668801.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 2.89
user 2.66
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851894/ft1_filtered_4FGL_J2324.7-4041_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/851894/ft2_4FGL_J2324.7-4041_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/851894/ltcube_530409601_530668801_4FGL_J2324.7-4041_daily_bin1123.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/851894/ft2_4FGL_J2324.7-4041_daily_bin1123.fits
.....................!
real 9.29
user 9.00
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851894/ft1_filtered_4FGL_J2324.7-4041_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/851894/ft2_4FGL_J2324.7-4041_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/851894/ltcube_530409601_530668801_4FGL_J2324.7-4041_daily_bin1123.fits outfile=/scratch/kocevski/851894/expmap_530409601_530668801_4FGL_J2324.7-4041_daily_bin1123.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/851894/ltcube_530409601_530668801_4FGL_J2324.7-4041_daily_bin1123.fits
.....................!
real 153.36
user 149.01
sys 4.10

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/851894/ft1_filtered_4FGL_J2324.7-4041_daily_bin1123.fits scfile=/scratch/kocevski/851894/ft2_4FGL_J2324.7-4041_daily_bin1123.fits outfile=/scratch/kocevski/851894/cmap_530409601_530668801_4FGL_J2324.7-4041_daily_bin1123.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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851894/ft1_filtered_4FGL_J2324.7-4041_daily_bin1123.fits scfile=/scratch/kocevski/851894/ft2_4FGL_J2324.7-4041_daily_bin1123.fits outfile=/scratch/kocevski/851894/cmap_HighResolution_530409601_530668801_4FGL_J2324.7-4041_daily_bin1123.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.47
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851894/ft1_filtered_4FGL_J2324.7-4041_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/851894/ft2_4FGL_J2324.7-4041_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851894/Model_4FGL_J2324.7-4041_daily_bin1123.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/851894/ft1_filtered_4FGL_J2324.7-4041_daily_bin1123.fits.....................!
real 37.46
user 36.40
sys 0.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .44268       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.719       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.625       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.364       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2514       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0251       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.089       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.127       1.0000         .10000E-03   10000.    
    21 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.4455       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.6496       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.9099       1.0000         .10000E-03   10000.    
    30 'Prefactor '    53.285       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .57032       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6394.044     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     3612 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.210        1.0055        .14203E-06   -.11338E-03
   2  Prefactor     .43515        1.9780       -.12751E-04    .37378E-03
   3  Prefactor     .10010E-03    25.654       -.39851E-04** at limit **
   4  Prefactor     .10000E-03    1.1184       -.99348E-07** at limit **
   5  Prefactor     .10008E-03    9.8599       -.28466E-06** at limit **
   6  Prefactor     .10000E-03    3.7658        .37230E-05** at limit **
   7  Prefactor     .10001E-03    8.7135       -.41594E-05** at limit **
   8  Prefactor     13.720        1.0424        .39193E-06   -.19604E-03
   9  Prefactor     22.626        1.0030        .75913E-07    .29604E-05
  10  Prefactor     .10000E-03    1.5092        .16553E-05** at limit **
  11  Prefactor     .10020E-03    5.1961       -.12447E-04** at limit **
  12  Prefactor     .10002E-03    13.955        .24615E-04** at limit **
  13  Prefactor     15.365        1.0202       -.15879E-06   -.33624E-04
  14  norm          4.2507        1.0081        .60241E-07    .57360E-04
  15  norm          .10000E-03    1.8805        .49781E-06** at limit **
  16  norm          .10000E-03    1.6489       -.26777E-06** at limit **
  17  norm          1.0263        1.2845        .27896E-06    .19165E-03
  18  Prefactor     2.5125        2.6499        .61436E-06   -.25852E-03
  19  Prefactor     19.096        2.9759        .31969E-05   -.32901E-02
  20  Prefactor     33.128        1.0009       -.33622E-07    .73594E-04
  21  norm          .10000E-03    2.9436       -.48059E-06** at limit **
  22  Prefactor     .10000E-03    2.4971       -.22380E-05** at limit **
  23  norm          .10000E-03    1.8929       -.15686E-05** at limit **
  24  norm          1.4455        2.0116       -.10636E-06    .66614E-04
  25  Prefactor     .10000E-03    1.4774       -.80776E-06** at limit **
  26  Prefactor     .10005E-03    7.7249        .10858E-04** at limit **
  27  Prefactor     .10002E-03    10.563        .15885E-04** at limit **
  28  Prefactor     9.6505        1.0032       -.24704E-07   -.17756E-03
  29  Prefactor     1.9101        1.0434       -.14733E-06   -.91952E-03
  30  Prefactor     53.284        1.2057       -.46381E-06    .17446E-02
  31  Normalizat    .57008        .18002        .18366E-06   -.15686E-04
  32  Prefactor     1.3146        .21038       -.16876E-06   -.31722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2104
  Prefactor  = 0.435148
  Prefactor  = 0.000100103
  Prefactor  = 0.0001
  Prefactor  = 0.000100079
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 13.7198
  Prefactor  = 22.626
  Prefactor  = 0.0001
  Prefactor  = 0.000100204
  Prefactor  = 0.000100016
  Prefactor  = 15.3653
  norm       = 4.25075
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.02628
  Prefactor  = 2.5125
  Prefactor  = 19.0963
  Prefactor  = 33.1276
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.44548
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.000100023
  Prefactor  = 9.65047
  Prefactor  = 1.91008
  Prefactor  = 53.2838
  Normalizat = 0.570082
  Prefactor  = 1.31459
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.044     FROM HESSE     STATUS=OK           735 CALLS     4347 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.210        34.827        .29914E-02   -1.5038    
   2  Prefactor     .43515        10.981        .11034       -1.5576    
   3  Prefactor     .10010E-03    36.010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1030        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10008E-03    11.768        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    32.381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.720        17.007        .27035E-02   -1.4967    
   9  Prefactor     22.626        11.777        .21053E-02   -1.4756    
  10  Prefactor     .10000E-03    1.5058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10020E-03    9.8932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    30.588        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.365        12.041        .25545E-02   -1.4924    
  14  norm          4.2507        8.0407        .48854E-02   -1.5296    
  15  norm          .10000E-03    1.8776        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6436        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0263        4.5008        .12651E-01   -1.5505    
  18  Prefactor     2.5125        2.6573        .64439E-02   -1.5391    
  19  Prefactor     19.096        23.162        .22918E-02   -1.4834    
  20  Prefactor     33.128        30.793        .17405E-02   -1.4556    
  21  norm          .10000E-03    2.9013        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1338        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .42478        .31353E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.4455        2.0677        .89644E-02   -1.5468    
  25  Prefactor     .10000E-03    1.4537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10005E-03    8.7866        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    31.367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.6505        6.9695        .32251E-02   -1.5087    
  29  Prefactor     1.9101        3.7057        .75204E-02   -1.5432    
  30  Prefactor     53.284        54.441        .13737E-02   -1.4247    
  31  Normalizat    .57008        .15962        .61410E-01   -1.0927    
  32  Prefactor     1.3146        .17536        .48776E-01   -.82874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34465e-07
Minuit parameter uncertainties:
  1  34.8904
  2  4.37237
  3  0.00385816
  4  1.16291e-06
  5  0.00193446
  6  3.32995e-05
  7  0.00123724
  8  17.0132
  9  11.7782
  10  1.0202e-05
  11  0.00283843
  12  0.00140298
  13  12.0428
  14  8.04276
  15  1.23777e-06
  16  6.53497e-06
  17  4.29874
  18  2.6574
  19  23.1732
  20  30.8073
  21  2.43039e-06
  22  3.86895e-05
  23  3.59613e-06
  24  2.06779
  25  1.37082e-05
  26  0.00129929
  27  0.00169262
  28  6.97004
  29  3.70618
  30  54.4923
  31  0.159748
  32  0.175441
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  6.535e-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:  1.315e+00  1.754e-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.701e-01  1.597e-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.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851894/likelihoodResults_530409601_530668801_4FGL_J2324.7-4041_daily_bin1123.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) = 6394.04714066
delta logL = -0.00271949751004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6394.04442116
delta logL = 2.34649633057e-09

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.6250       1.0000          .0000       5.0000    
     3 'Normalizat'    .57009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3146       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=   6394.044     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      232 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    138.45        .10004E-02** at limit **
   2  alpha         1.6424        3.5718        .50000       -.28720E-05
   3  Normalizat    .57008        .36497E-01    .27170E-03    .73226E-05
   4  Prefactor     1.3146        .42649E-01    .21562E-03    .82041E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010003
  alpha      = 1.64236
  Normalizat = 0.570082
  Prefactor  = 1.31459
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.044     FROM HESSE     STATUS=OK            29 CALLS      261 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    20.027        .20009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6424        3.2372        .50000       -.35017    
   3  Normalizat    .57008        .17984        .10868E-04   -1.0927    
   4  Prefactor     1.3146        .21023        .43124E-04   -.82874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79979e-08
Minuit parameter uncertainties:
  1  0.00153984
  2  372.601
  3  0.180024
  4  0.210369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851894': 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) = 6394.04442114
delta logL = 2.16914486373e-08

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.540e-03  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.642e+00  3.726e+02  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.315e+00  2.104e-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.701e-01  1.800e-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/851894/cmap_HighResolution_530409601_530668801_4FGL_J2324.7-4041_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-05', job_status='DONE', photon_flux_upper_limit='2.02e-08', time_completed='2021-09-29 16:59:46.133698', job_id='851894', GAL2='1.31', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1632959986.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='2.17e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1123' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 851894: <4FGL_J2324.7-4041_daily_bin1123> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1123 351.182 -40.6834 530409601 530668801 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 :                                   696.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

