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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1361
RA = 351.182, Dec = -40.6834
tmin = 592099201, tmax = 592358401
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='853337', job_status='RUN', time_executed='2021-09-29 16:51:55.399565', time_epoch_executed='1632959515.4' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853337

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853337/ft1_4FGL_J2324.7-4041_daily_bin1361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853337/ft2_4FGL_J2324.7-4041_daily_bin1361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853337/ft1_4FGL_J2324.7-4041_daily_bin1361.fits outfile=/scratch/kocevski/853337/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1361.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=592099201.0 tmax=592358401.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.49
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853337/ft1_filtered_4FGL_J2324.7-4041_daily_bin1361.fits" evtable="EVENTS" scfile=/scratch/kocevski/853337/ft2_4FGL_J2324.7-4041_daily_bin1361.fits sctable="SC_DATA" outfile=/scratch/kocevski/853337/ltcube_592099201_592358401_4FGL_J2324.7-4041_daily_bin1361.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/853337/ft2_4FGL_J2324.7-4041_daily_bin1361.fits
.....................!
real 11.58
user 11.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853337/ft1_filtered_4FGL_J2324.7-4041_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/853337/ft2_4FGL_J2324.7-4041_daily_bin1361.fits sctable="SC_DATA" expcube=/scratch/kocevski/853337/ltcube_592099201_592358401_4FGL_J2324.7-4041_daily_bin1361.fits outfile=/scratch/kocevski/853337/expmap_592099201_592358401_4FGL_J2324.7-4041_daily_bin1361.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/853337/ltcube_592099201_592358401_4FGL_J2324.7-4041_daily_bin1361.fits
.....................!
real 190.06
user 185.44
sys 4.29

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/853337/ft1_filtered_4FGL_J2324.7-4041_daily_bin1361.fits scfile=/scratch/kocevski/853337/ft2_4FGL_J2324.7-4041_daily_bin1361.fits outfile=/scratch/kocevski/853337/cmap_592099201_592358401_4FGL_J2324.7-4041_daily_bin1361.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853337/ft1_filtered_4FGL_J2324.7-4041_daily_bin1361.fits scfile=/scratch/kocevski/853337/ft2_4FGL_J2324.7-4041_daily_bin1361.fits outfile=/scratch/kocevski/853337/cmap_HighResolution_592099201_592358401_4FGL_J2324.7-4041_daily_bin1361.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853337/ft1_filtered_4FGL_J2324.7-4041_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/853337/ft2_4FGL_J2324.7-4041_daily_bin1361.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853337/Model_4FGL_J2324.7-4041_daily_bin1361.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/853337/ft1_filtered_4FGL_J2324.7-4041_daily_bin1361.fits.....................!
real 36.97
user 35.22
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.767       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.025       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28900E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.682       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3147       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15103E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.6439       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .17548E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5501       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12078E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.195       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7593       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2926       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1202       1.0000         .10000E-03   10000.    
    24 'norm      '    1.4435       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .42262E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10777E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2216       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77415       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=   4405.149     FROM MIGRAD    STATUS=CONVERGED   1596 CALLS     4498 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.888        .18142E-02** at limit **
   2  Prefactor     12.802        23.074        .11210E-03   -.27077E-04
   3  Prefactor     .10000E-03    9.4240        .18142E-02** at limit **
   4  Prefactor     .10000E-03    1.2069        .71103E-03** at limit **
   5  Prefactor     25.997        25.744        .78526E-04   -.13175E-04
   6  Prefactor     .10000E-03    3.4657        .12030E-02** at limit **
   7  Prefactor     .10000E-03    20.162        .18142E-02** at limit **
   8  Prefactor     .10015E-03    25.783        .82189E-01** at limit **
   9  Prefactor     12.756        19.948        .11248E-03   -.14858E-04
  10  Prefactor     .10000E-03    1.5748        .81329E-03** at limit **
  11  Prefactor     3.3654        45.661        .22235E-03   -.68003E-05
  12  Prefactor     .10000E-03    147.86        .18142E-02** at limit **
  13  Prefactor     .10000E-03    5.9898        .15852E-02** at limit **
  14  norm          7.6477        9.9208        .14505E-03   -.41541E-05
  15  norm          .10000E-03    2.3858        .10011E-02** at limit **
  16  norm          .10000E-03    2.4288        .10089E-02** at limit **
  17  norm          .25526        82.691        .33701E-02   -.34968E-03
  18  Prefactor     9.5552        8.7108        .12968E-03   -.26125E-04
  19  Prefactor     .10000E-03    18.848        .18142E-02** at limit **
  20  Prefactor     13.190        48.431        .11027E-03   -.55054E-04
  21  norm          2.7665        4.2986        .15533E-03    .40694E-04
  22  Prefactor     8.3002        18.745        .13922E-03   -.36258E-04
  23  norm          1.1198        1.3660        .79016E-04   -.29653E-03
  24  norm          1.4450        4.3707        .21889E-03    .12756E-03
  25  Prefactor     .83953E-01    52.541        .19725E-02   -.12833E-03
  26  Prefactor     .10000E-03    22.016        .18142E-02** at limit **
  27  Prefactor     .10000E-03    37.668        .18142E-02** at limit **
  28  Prefactor     .10000E-03    2.6927        .10611E-02** at limit **
  29  Prefactor     .10000E-03    16.280        .21026E-02** at limit **
  30  Prefactor     .10000E-03    41.386        .18142E-02** at limit **
  31  Normalizat    1.2209        .24744        .21295E-03   -.34777E-03
  32  Prefactor     .77414        .26269        .28414E-03   -.23395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.8021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.9973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100155
  Prefactor  = 12.7561
  Prefactor  = 0.0001
  Prefactor  = 3.36537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.64769
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.255257
  Prefactor  = 9.55516
  Prefactor  = 0.0001
  Prefactor  = 13.1904
  norm       = 2.76654
  Prefactor  = 8.30019
  norm       = 1.11975
  norm       = 1.445
  Prefactor  = 0.0839527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.22093
  Prefactor  = 0.774135
 **********
 **   18 **HESSE 
 **********

 FCN=   4405.149     FROM HESSE     STATUS=OK           639 CALLS     5137 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.802        23.053        .44842E-05   -1.4992    
   3  Prefactor     .10000E-03    9.4241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2069        .14221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.997        25.743        .31410E-05   -1.4688    
   6  Prefactor     .10000E-03    3.4661        .24061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10015E-03    21.710        .92606E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.756        19.935        .44992E-05   -1.4994    
  10  Prefactor     .10000E-03    1.5748        .16266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3654        45.639        .88939E-05   -1.5341    
  12  Prefactor     .10000E-03    147.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.9900        .31703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.6477        9.9205        .58018E-05   -1.5155    
  15  norm          .10000E-03    2.3858        .20021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4288        .20178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .25526        82.994        .13481E-03   -1.5607    
  18  Prefactor     9.5552        8.7090        .51871E-05   -1.5090    
  19  Prefactor     .10000E-03    18.849        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.190        48.352        .44108E-05   -1.4981    
  21  norm          2.7665        4.2960        .62131E-05   -1.5375    
  22  Prefactor     8.3002        18.739        .55686E-05   -1.5132    
  23  norm          1.1198        1.3579        .31606E-05   -1.5496    
  24  norm          1.4450        4.3679        .87557E-05   -1.5468    
  25  Prefactor     .83953E-01    52.249        .78901E-04   -1.5650    
  26  Prefactor     .10000E-03    22.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    37.669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.6929        .21222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    16.407        .42052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    41.388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2209        .24684        .42590E-04   -.85958    
  32  Prefactor     .77414        .26232        .11365E-04   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17525e-09
Minuit parameter uncertainties:
  1  8.94779e-06
  2  23.0685
  3  1.97178e-08
  4  1.30548e-08
  5  25.7537
  6  4.25256e-06
  7  4.80122e-05
  8  0.00366757
  9  19.9454
  10  2.33503e-07
  11  24.8091
  12  0.000427646
  13  4.74563e-06
  14  9.92261
  15  1.11987e-06
  16  1.67039e-06
  17  9.2165
  18  8.71017
  19  1.61165e-05
  20  48.496
  21  4.29647
  22  18.7522
  23  1.35793
  24  4.36885
  25  4.18996
  26  1.25942e-05
  27  3.96784e-06
  28  3.71521e-06
  29  0.000392276
  30  4.1914e-05
  31  0.247077
  32  0.262741
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.670e-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:  7.741e-01  2.627e-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.221e+00  2.471e-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: 3.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853337/likelihoodResults_592099201_592358401_4FGL_J2324.7-4041_daily_bin1361.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) = 4405.15062008
delta logL = -0.00182047625094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4405.14879991
delta logL = -3.05124558508e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6229       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77426       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=   4405.149     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      229 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    186.99        .10089E-02** at limit **
   2  alpha         1.6169        3.1714        .50000        .71352E-06
   3  Normalizat    1.2209        .46426E-01    .21295E-03    .12400E-03
   4  Prefactor     .77414        .50699E-01    .28413E-03    .76622E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 1.61687
  Normalizat = 1.22093
  Prefactor  = 0.774135
 **********
 **   18 **HESSE 
 **********

 FCN=   4405.149     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      258 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    567.47        .20178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6169        3.2842        .50000       -.36105    
   3  Normalizat    1.2209        .17315        .42590E-04   -.85958    
   4  Prefactor     .77414        .18900        .11365E-04   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.77051e-09
Minuit parameter uncertainties:
  1  0.00301622
  2  1913.67
  3  0.173233
  4  0.189162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853337': 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): 102
logL (Free Index) = 4405.14879961
delta logL = 1.90084392671e-09

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.016e-03  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.617e+00  1.914e+03  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:  7.741e-01  1.892e-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.221e+00  1.732e-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/853337/cmap_HighResolution_592099201_592358401_4FGL_J2324.7-4041_daily_bin1361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-05', job_status='DONE', photon_flux_upper_limit='3.02e-08', time_completed='2021-09-29 17:04:39.048964', job_id='853337', GAL2='0.77', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632960279.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.90e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1361' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:04:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 853337: <4FGL_J2324.7-4041_daily_bin1361> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1361> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:50:31 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:50:32 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:50:32 2021
Terminated at Wed Sep 29 17:04:39 2021
Results reported at Wed Sep 29 17:04:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1361 351.182 -40.6834 592099201 592358401 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 :                                   724.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            848 sec.

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

