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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1584
RA = 351.182, Dec = -40.6834
tmin = 649900801, tmax = 650160001
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='854802', job_status='RUN', time_executed='2021-09-29 16:58:18.075431', time_epoch_executed='1632959898.08' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854802

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854802/ft1_4FGL_J2324.7-4041_daily_bin1584.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854802/ft2_4FGL_J2324.7-4041_daily_bin1584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854802/ft1_4FGL_J2324.7-4041_daily_bin1584.fits outfile=/scratch/kocevski/854802/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1584.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=649900801.0 tmax=650160001.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 5.05
user 4.79
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854802/ft2_4FGL_J2324.7-4041_daily_bin1584.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/854802/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1584.fits evtable="EVENTS" outfile="/scratch/kocevski/854802/ft1_filtered_4FGL_J2324.7-4041_daily_bin1584.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854802/ft1_filtered_4FGL_J2324.7-4041_daily_bin1584.fits" evtable="EVENTS" scfile=/scratch/kocevski/854802/ft2_4FGL_J2324.7-4041_daily_bin1584.fits sctable="SC_DATA" outfile=/scratch/kocevski/854802/ltcube_649900801_650160001_4FGL_J2324.7-4041_daily_bin1584.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/854802/ft2_4FGL_J2324.7-4041_daily_bin1584.fits
.....................!
real 12.26
user 11.24
sys 0.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854802/ft1_filtered_4FGL_J2324.7-4041_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/854802/ft2_4FGL_J2324.7-4041_daily_bin1584.fits sctable="SC_DATA" expcube=/scratch/kocevski/854802/ltcube_649900801_650160001_4FGL_J2324.7-4041_daily_bin1584.fits outfile=/scratch/kocevski/854802/expmap_649900801_650160001_4FGL_J2324.7-4041_daily_bin1584.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/854802/ltcube_649900801_650160001_4FGL_J2324.7-4041_daily_bin1584.fits
.....................!
real 190.09
user 185.11
sys 4.60

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/854802/ft1_filtered_4FGL_J2324.7-4041_daily_bin1584.fits scfile=/scratch/kocevski/854802/ft2_4FGL_J2324.7-4041_daily_bin1584.fits outfile=/scratch/kocevski/854802/cmap_649900801_650160001_4FGL_J2324.7-4041_daily_bin1584.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/854802/ft1_filtered_4FGL_J2324.7-4041_daily_bin1584.fits scfile=/scratch/kocevski/854802/ft2_4FGL_J2324.7-4041_daily_bin1584.fits outfile=/scratch/kocevski/854802/cmap_HighResolution_649900801_650160001_4FGL_J2324.7-4041_daily_bin1584.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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854802/ft1_filtered_4FGL_J2324.7-4041_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/854802/ft2_4FGL_J2324.7-4041_daily_bin1584.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854802/Model_4FGL_J2324.7-4041_daily_bin1584.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/854802/ft1_filtered_4FGL_J2324.7-4041_daily_bin1584.fits.....................!
real 36.51
user 35.10
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.872       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.636       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.154       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12174E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3883       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1846       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.252       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.120       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7543       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4241       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9919       1.0000         .10000E-03   10000.    
    20 'Prefactor '    90.400       1.0000         .10000E-03   10000.    
    21 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.678       1.0000         .10000E-03   10000.    
    23 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    84.062       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .71323       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1334       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=   4583.282     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     4348 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.846        54.509       -.30553E-04    .76075E-05
   2  Prefactor     22.632        20.298       -.77245E-06    .23300E-04
   3  Prefactor     33.148        33.666       -.39316E-05    .75088E-05
   4  Prefactor     .10000E-03    2.0512       -.15702E-05** at limit **
   5  Prefactor     8.4058        34.707        .23759E-04    .56068E-04
   6  Prefactor     3.1883        7.2339       -.25732E-05   -.18370E-03
   7  Prefactor     .10000E-03    28.138       -.20019E-04** at limit **
   8  Prefactor     .10000E-03    7.8508       -.69421E-06** at limit **
   9  Prefactor     31.249        17.472       -.58212E-06    .58218E-04
  10  Prefactor     .10000E-03    3.5978       -.16820E-05** at limit **
  11  Prefactor     20.117        32.079       -.31644E-05    .18742E-04
  12  Prefactor     .10000E-03    31.636        .20847E-04** at limit **
  13  Prefactor     8.7543        14.173       -.17041E-05    .52785E-04
  14  norm          1.4213        20.137       -.43691E-05   -.30799E-03
  15  norm          .10000E-03    4.5263       -.81999E-07** at limit **
  16  norm          .10000E-03    1.9287       -.79894E-07** at limit **
  17  norm          .10000E-03    3.6572        .17857E-05** at limit **
  18  Prefactor     .10000E-03    6.2923        .23433E-06** at limit **
  19  Prefactor     10.003        20.063       -.23547E-05    .10624E-04
  20  Prefactor     90.376        62.184       -.20340E-04    .58764E-05
  21  norm          .10000E-03    2.2868       -.76144E-07** at limit **
  22  Prefactor     45.680        19.213       -.14033E-05    .20525E-03
  23  norm          .10000E-03    .63180       -.25199E-06** at limit **
  24  norm          .10000E-03    1.9313       -.11204E-06** at limit **
  25  Prefactor     .10000E-03    4.1440       -.72683E-06** at limit **
  26  Prefactor     .10000E-03    16.411        .16490E-05** at limit **
  27  Prefactor     .10000E-03    88.018       -.67786E-06** at limit **
  28  Prefactor     .10000E-03    2.5157        .39193E-06** at limit **
  29  Prefactor     .10000E-03    1.7572       -.10430E-06** at limit **
  30  Prefactor     84.024        63.244       -.32924E-04    .12050E-06
  31  Normalizat    .71334        .19793        .10252E-04    .26931E-03
  32  Prefactor     1.1334        .21189       -.35655E-06    .65389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.8456
  Prefactor  = 22.632
  Prefactor  = 33.1484
  Prefactor  = 0.000100003
  Prefactor  = 8.40581
  Prefactor  = 3.18834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.2486
  Prefactor  = 0.0001
  Prefactor  = 20.1173
  Prefactor  = 0.0001
  Prefactor  = 8.75428
  norm       = 1.42126
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0031
  Prefactor  = 90.3759
  norm       = 0.0001
  Prefactor  = 45.6798
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.0244
  Normalizat = 0.713342
  Prefactor  = 1.13341
 **********
 **   18 **HESSE 
 **********

 FCN=   4583.282     FROM HESSE     STATUS=OK           653 CALLS     5001 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.846        54.517        .61226E-04   -1.4398    
   2  Prefactor     22.632        20.291        .84189E-04   -1.4756    
   3  Prefactor     33.148        33.666        .69593E-04   -1.4556    
   4  Prefactor     .10000E-03    10.031        .18513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4058        34.462        .13842E-03   -1.5128    
   6  Prefactor     3.1883        7.2125        .22707E-03   -1.5351    
   7  Prefactor     .10000E-03    28.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.249        17.487        .71673E-04   -1.4589    
  10  Prefactor     .10000E-03    3.6192        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.117        32.090        .89293E-04   -1.4811    
  12  Prefactor     .10000E-03    31.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.7543        14.019        .13547E-03   -1.5116    
  14  norm          1.4213        20.438        .36233E-03   -1.5470    
  15  norm          .10000E-03    4.5585        .14062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9294        .91773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6673        .12644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3257        .16532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.003        19.978        .12677E-03   -1.5075    
  20  Prefactor     90.376        62.275        .42262E-04   -1.3804    
  21  norm          .10000E-03    2.3019        .99610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     45.680        18.907        .59323E-04   -1.4355    
  23  norm          .10000E-03    1.0186        .10105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.9605        .91821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.3040        .26874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    88.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.5219        .10487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.7700        .87598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     84.024        63.232        .21906E-03   -1.3872    
  31  Normalizat    .71334        .23467        .26069E-03   -1.0337    
  32  Prefactor     1.1334        .25419        .23684E-03   -.88406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94909e-09
Minuit parameter uncertainties:
  1  54.5802
  2  20.2973
  3  33.6857
  4  0.00035831
  5  34.0738
  6  7.21447
  7  8.93615e-05
  8  5.60337e-05
  9  17.4902
  10  4.32924e-05
  11  32.1174
  12  8.82532e-05
  13  14.0242
  14  10.7833
  15  3.62376e-07
  16  1.10208e-06
  17  1.64502e-05
  18  5.42689e-06
  19  19.9912
  20  62.32
  21  1.29012e-06
  22  18.9091
  23  1.75393e-05
  24  4.97782e-06
  25  6.08397e-05
  26  7.07574e-05
  27  0.0011676
  28  5.77019e-05
  29  1.12093e-05
  30  63.2824
  31  0.235005
  32  0.254461
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.102e-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.133e+00  2.545e-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:  7.133e-01  2.350e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854802/likelihoodResults_649900801_650160001_4FGL_J2324.7-4041_daily_bin1584.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) = 4583.28450349
delta logL = -0.00226727582685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4583.28223614
delta logL = 7.67986421124e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6146       1.0000          .0000       5.0000    
     3 'Normalizat'    .71332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1334       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=   4583.282     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      241 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    189.65        .92090E-03** at limit **
   2  alpha         1.4193        2.5132        .50000        .85947E-08
   3  Normalizat    .71335        .49835E-01    .26069E-03    .33493E-04
   4  Prefactor     1.1334        .56164E-01    .23684E-03    .35377E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.41926
  Normalizat = 0.713347
  Prefactor  = 1.1334
 **********
 **   18 **HESSE 
 **********

 FCN=   4583.282     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3402        .18418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4193        2.5733        .50000       -.44704    
   3  Normalizat    .71335        .22149        .10427E-04   -1.0337    
   4  Prefactor     1.1334        .24967        .94737E-05   -.88406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43221e-12
Minuit parameter uncertainties:
  1  1.03018e-05
  2  217.677
  3  0.221768
  4  0.24993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854802': 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) = 4583.28223521
delta logL = 1.00534089142e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.030e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.419e+00  2.177e+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.133e+00  2.499e-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:  7.133e-01  2.218e-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/854802/cmap_HighResolution_649900801_650160001_4FGL_J2324.7-4041_daily_bin1584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-05', job_status='DONE', photon_flux_upper_limit='2.60e-08', time_completed='2021-09-29 17:10:50.044024', job_id='854802', GAL2='1.13', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632960650.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1584' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:10:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 854802: <4FGL_J2324.7-4041_daily_bin1584> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1584> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:55:33 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:55:34 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:55:34 2021
Terminated at Wed Sep 29 17:10:50 2021
Results reported at Wed Sep 29 17:10:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1584 351.182 -40.6834 649900801 650160001 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 :                                   739.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

