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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin912
RA = 351.182, Dec = -40.6834
tmin = 475718401, tmax = 475977601
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='851565', job_status='RUN', time_executed='2021-09-29 16:45:50.043165', time_epoch_executed='1632959150.04' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='912'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851565/ft1_4FGL_J2324.7-4041_daily_bin912.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851565/ft2_4FGL_J2324.7-4041_daily_bin912.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851565/ft1_4FGL_J2324.7-4041_daily_bin912.fits outfile=/scratch/kocevski/851565/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin912.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=475718401.0 tmax=475977601.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.53
user 3.26
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851565/ft1_filtered_4FGL_J2324.7-4041_daily_bin912.fits" evtable="EVENTS" scfile=/scratch/kocevski/851565/ft2_4FGL_J2324.7-4041_daily_bin912.fits sctable="SC_DATA" outfile=/scratch/kocevski/851565/ltcube_475718401_475977601_4FGL_J2324.7-4041_daily_bin912.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/851565/ft2_4FGL_J2324.7-4041_daily_bin912.fits
.....................!
real 11.93
user 11.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851565/ft1_filtered_4FGL_J2324.7-4041_daily_bin912.fits evtable="EVENTS" scfile=/scratch/kocevski/851565/ft2_4FGL_J2324.7-4041_daily_bin912.fits sctable="SC_DATA" expcube=/scratch/kocevski/851565/ltcube_475718401_475977601_4FGL_J2324.7-4041_daily_bin912.fits outfile=/scratch/kocevski/851565/expmap_475718401_475977601_4FGL_J2324.7-4041_daily_bin912.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/851565/ltcube_475718401_475977601_4FGL_J2324.7-4041_daily_bin912.fits
.....................!
real 192.84
user 187.19
sys 5.31

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/851565/ft1_filtered_4FGL_J2324.7-4041_daily_bin912.fits scfile=/scratch/kocevski/851565/ft2_4FGL_J2324.7-4041_daily_bin912.fits outfile=/scratch/kocevski/851565/cmap_475718401_475977601_4FGL_J2324.7-4041_daily_bin912.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851565/ft1_filtered_4FGL_J2324.7-4041_daily_bin912.fits scfile=/scratch/kocevski/851565/ft2_4FGL_J2324.7-4041_daily_bin912.fits outfile=/scratch/kocevski/851565/cmap_HighResolution_475718401_475977601_4FGL_J2324.7-4041_daily_bin912.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.182 yref=-40.6834 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851565/ft1_filtered_4FGL_J2324.7-4041_daily_bin912.fits evtable="EVENTS" scfile=/scratch/kocevski/851565/ft2_4FGL_J2324.7-4041_daily_bin912.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851565/Model_4FGL_J2324.7-4041_daily_bin912.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/851565/ft1_filtered_4FGL_J2324.7-4041_daily_bin912.fits.....................!
real 46.06
user 44.13
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.115       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6345       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.780       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.928       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1526       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23403       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.265       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.0715       1.0000         .10000E-03   10000.    
    16 'norm      '    15.500       1.0000         .10000E-03   10000.    
    17 'norm      '    8.5563       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11433E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    121.06       1.0000         .10000E-03   10000.    
    21 'norm      '    3.9896       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .43786       1.0000         .10000E-03   10000.    
    24 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .61160E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    54.732       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14796       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.3628       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .18942E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0662       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .69583       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=   6025.670     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4464 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.104        36.687        .92436E-07   -.32731E-05
   2  Prefactor     .10000E-03    11.826        .14153E-06** at limit **
   3  Prefactor     .10000E-03    11.687        .13259E-06** at limit **
   4  Prefactor     4.6336        3.2017        .96636E-08   -.70461E-04
   5  Prefactor     .10000E-03    11.764        .11905E-06** at limit **
   6  Prefactor     13.778        6.5775       -.82691E-07   -.93473E-04
   7  Prefactor     18.926        13.939       -.68857E-07   -.28441E-04
   8  Prefactor     .10000E-03    7.1574        .26405E-06** at limit **
   9  Prefactor     6.1472        9.8927        .99275E-07    .54142E-04
  10  Prefactor     .22793        4.8585        .28120E-05   -.72572E-03
  11  Prefactor     19.260        29.794        .61904E-07   -.22243E-04
  12  Prefactor     .10000E-03    21.610        .18824E-06** at limit **
  13  Prefactor     .10000E-03    8.5688        .26821E-06** at limit **
  14  norm          .10000E-03    3.5882        .95289E-07** at limit **
  15  norm          7.0711        5.0370       -.17065E-06    .46627E-04
  16  norm          15.504        7.3655       -.19187E-07   -.14685E-03
  17  norm          8.5557        8.8565        .13712E-06   -.35379E-05
  18  Prefactor     .10000E-03    1.6945        .84977E-07** at limit **
  19  Prefactor     .10000E-03    63.146        .74154E-06** at limit **
  20  Prefactor     121.00        54.182       -.16726E-06   -.65294E-04
  21  norm          3.9906        3.7339       -.11430E-06   -.12670E-03
  22  Prefactor     .10000E-03    3.8894        .12240E-06** at limit **
  23  norm          .43804        .67138        .61215E-06    .32289E-02
  24  norm          .10000E-03    1.9857        .18107E-06** at limit **
  25  Prefactor     .10186E-01    1.4204       -.42717E-06    .33944E-03
  26  Prefactor     .10000E-03    6.3508        .68356E-07** at limit **
  27  Prefactor     54.657        68.799        .14365E-05    .14414E-04
  28  Prefactor     .12021        3.4042        .36042E-06   -.26510E-03
  29  Prefactor     5.3603        4.0665       -.72225E-08    .46705E-04
  30  Prefactor     .10001E-03    85.782       -.39772E-05** at limit **
  31  Normalizat    1.0669        .18639        .30907E-05   -.93334E-04
  32  Prefactor     .69507        .19887       -.45109E-05   -.75078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.63365
  Prefactor  = 0.0001
  Prefactor  = 13.7782
  Prefactor  = 18.9261
  Prefactor  = 0.0001
  Prefactor  = 6.14723
  Prefactor  = 0.227927
  Prefactor  = 19.2601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.07113
  norm       = 15.5036
  norm       = 8.55571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 121
  norm       = 3.99056
  Prefactor  = 0.0001
  norm       = 0.438037
  norm       = 0.0001
  Prefactor  = 0.0101862
  Prefactor  = 0.0001
  Prefactor  = 54.6568
  Prefactor  = 0.120211
  Prefactor  = 5.36034
  Prefactor  = 0.000100005
  Normalizat = 1.06692
  Prefactor  = 0.695071
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.670     FROM HESSE     STATUS=OK           673 CALLS     5137 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.104        36.701        .89305E-04   -1.4811    
   2  Prefactor     .10000E-03    11.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6336        3.2019        .11061E-03   -1.5277    
   5  Prefactor     .10000E-03    11.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.778        6.5806        .10790E-03   -1.4965    
   7  Prefactor     18.926        13.943        .92060E-04   -1.4838    
   8  Prefactor     .10000E-03    7.1756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1472        9.9335        .16185E-03   -1.5212    
  10  Prefactor     .22793        6.9849        .24542E-02   -1.5613    
  11  Prefactor     19.260        29.802        .91251E-04   -1.4830    
  12  Prefactor     .10000E-03    21.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.6201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.5905        .14361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.0711        5.0518        .14225E-03   -1.5176    
  16  norm          15.504        7.3767        .10173E-03   -1.4920    
  17  norm          8.5557        8.8506        .13704E-03   -1.5123    
  18  Prefactor     .10000E-03    1.7027        .98615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    63.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     121.00        54.198        .18288E-03   -1.3504    
  21  norm          3.9906        3.7349        .13127E-03   -1.5308    
  22  Prefactor     .10000E-03    3.9018        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43804        .65981        .84361E-03   -1.5576    
  24  norm          .10000E-03    2.0214        .10670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10186E-01    2.2131        .33421E-01   -1.5688    
  26  Prefactor     .10000E-03    6.3571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     54.657        69.217        .27109E-03   -1.4228    
  28  Prefactor     .12021        79.880        .26439E-02   -1.5639    
  29  Prefactor     5.3603        4.0742        .12957E-03   -1.5245    
  30  Prefactor     .10001E-03    86.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0669        .20893        .21026E-03   -.90821    
  32  Prefactor     .69507        .21821        .28212E-03   -1.0372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08134e-09
Minuit parameter uncertainties:
  1  36.7419
  2  1.89268e-05
  3  1.12786e-05
  4  3.20197
  5  1.29582e-05
  6  6.58095
  7  13.9449
  8  2.29034e-05
  9  9.93614
  10  2.5233
  11  29.8251
  12  2.83432e-05
  13  1.06422e-05
  14  6.69482e-06
  15  5.05215
  16  7.37712
  17  8.85199
  18  1.48049e-06
  19  0.000101357
  20  54.2205
  21  3.73511
  22  4.05733e-06
  23  0.65982
  24  7.96361e-06
  25  0.298822
  26  2.21816e-06
  27  69.3186
  28  6.20329
  29  4.07445
  30  0.0013547
  31  0.209087
  32  0.218474
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.550e+01  7.377e+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.951e-01  2.185e-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.067e+00  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.41
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 3.80e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 8.23e-05 +/- 3.91e-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) = 6025.56863335
delta logL = 0.10095206898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6025.56793073
delta logL = 0.101654693162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.893       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7786       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69747       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=   6025.568     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.883        124.37        .26865E-02    .12454E-04
   2  alpha         1.7778        3.3733        .20075        .54972E-04
   3  Normalizat    1.0613        .11790        .39857E-01   -.13456E-04
   4  Prefactor     .69759        .91842E-01    .63653E-01    .74785E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.8828
  alpha      = 1.77778
  Normalizat = 1.06128
  Prefactor  = 0.697585
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.568     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.883        7.6673        .10746E-03   -1.4963    
   2  alpha         1.7778        .35537        .78788E-02   -.29307    
   3  Normalizat    1.0613        .19105        .21071E-03   -.91005    
   4  Prefactor     .69759        .21156        .28160E-03   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2131e-12
Minuit parameter uncertainties:
  1  7.66788
  2  0.356692
  3  0.191172
  4  0.2118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851565': 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) = 6025.56792241
delta logL = 0.101663004583

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.388e+01  7.668e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.778e+00  3.567e-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.976e-01  2.118e-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.061e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.64
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.78 +/- 0.36
Photon Flux (Free Index): 4.41e-08 +/- 2.39e-08
Energy Flux (Free Index): 6.39e-05 +/- 4.68e-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/851565/cmap_HighResolution_475718401_475977601_4FGL_J2324.7-4041_daily_bin912.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.80e-08', energy_flux2='6.39e-05', photon_flux_error='1.81e-08', dlogl='1.02e-01', energy_flux='8.23e-05', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-09-29 16:59:08.761926', photon_index_error2='0.36', photon_index2='1.78', ts='12.41', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='4.68e-05', EG='1.07', time_epoch_completed='1632959948.76', return_code='0', job_id='851565', GAL2='0.70', EG2='1.06', return_code2='0', energy_flux_error='3.91e-05', photon_flux_error2='2.39e-08', ts2='12.64', photon_index='1.62' WHERE bin_id='912' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:59:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 851565: <4FGL_J2324.7-4041_daily_bin912> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin912 351.182 -40.6834 475718401 475977601 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 :                                   795.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

