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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1410
RA = 351.182, Dec = -40.6834
tmin = 604800001, tmax = 605059201
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='853418', job_status='RUN', time_executed='2021-09-29 16:53:39.843815', time_epoch_executed='1632959619.84' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853418/ft1_4FGL_J2324.7-4041_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853418/ft2_4FGL_J2324.7-4041_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853418/ft1_4FGL_J2324.7-4041_daily_bin1410.fits outfile=/scratch/kocevski/853418/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1410.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=604800001.0 tmax=605059201.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.06
user 4.83
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853418/ft1_filtered_4FGL_J2324.7-4041_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/853418/ft2_4FGL_J2324.7-4041_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/853418/ltcube_604800001_605059201_4FGL_J2324.7-4041_daily_bin1410.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/853418/ft2_4FGL_J2324.7-4041_daily_bin1410.fits
.....................!
real 11.75
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853418/ft1_filtered_4FGL_J2324.7-4041_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/853418/ft2_4FGL_J2324.7-4041_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/853418/ltcube_604800001_605059201_4FGL_J2324.7-4041_daily_bin1410.fits outfile=/scratch/kocevski/853418/expmap_604800001_605059201_4FGL_J2324.7-4041_daily_bin1410.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/853418/ltcube_604800001_605059201_4FGL_J2324.7-4041_daily_bin1410.fits
.....................!
real 191.71
user 186.02
sys 5.38

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/853418/ft1_filtered_4FGL_J2324.7-4041_daily_bin1410.fits scfile=/scratch/kocevski/853418/ft2_4FGL_J2324.7-4041_daily_bin1410.fits outfile=/scratch/kocevski/853418/cmap_604800001_605059201_4FGL_J2324.7-4041_daily_bin1410.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853418/ft1_filtered_4FGL_J2324.7-4041_daily_bin1410.fits scfile=/scratch/kocevski/853418/ft2_4FGL_J2324.7-4041_daily_bin1410.fits outfile=/scratch/kocevski/853418/cmap_HighResolution_604800001_605059201_4FGL_J2324.7-4041_daily_bin1410.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853418/ft1_filtered_4FGL_J2324.7-4041_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/853418/ft2_4FGL_J2324.7-4041_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853418/Model_4FGL_J2324.7-4041_daily_bin1410.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/853418/ft1_filtered_4FGL_J2324.7-4041_daily_bin1410.fits.....................!
real 33.22
user 31.97
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9812       1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.930       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.163       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.901       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.300       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.248       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8402       1.0000         .10000E-03   10000.    
    14 'norm      '    6.8763       1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.224       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.545       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.927       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .79811       1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    75.197       1.0000         .10000E-03   10000.    
    27 'Prefactor '    89.030       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    11.443       1.0000         .10000E-03   10000.    
    30 'Prefactor '    33.619       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .53382       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.5328       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=   3964.110     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4389 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.355        .13063E-04** at limit **
   2  Prefactor     .10000E-03    35.878       -.57511E-05** at limit **
   3  Prefactor     .10000E-03    62.106       -.79605E-05** at limit **
   4  Prefactor     2.9815        4.7549       -.16912E-05   -.39017E-03
   5  Prefactor     55.937        56.159        .74968E-05    .90788E-05
   6  Prefactor     .10000E-03    3.8647       -.80957E-07** at limit **
   7  Prefactor     56.166        39.011        .23836E-05   -.10547E-04
   8  Prefactor     18.897        36.685       -.56045E-05   -.50215E-05
   9  Prefactor     .10000E-03    13.178        .80159E-05** at limit **
  10  Prefactor     .10000E-03    6.5748       -.15931E-07** at limit **
  11  Prefactor     16.301        37.631        .17140E-05    .75848E-06
  12  Prefactor     50.230        87.345       -.22824E-04   -.47265E-05
  13  Prefactor     9.8405        17.702       -.99040E-06    .86404E-05
  14  norm          6.8758        11.671       -.36553E-06   -.20600E-04
  15  norm          .10000E-03    12.020       -.33984E-05** at limit **
  16  norm          .10000E-03    2.2861       -.16558E-07** at limit **
  17  norm          18.226        16.601        .29842E-05    .10483E-04
  18  Prefactor     14.543        9.0033       -.35733E-06    .19443E-03
  19  Prefactor     .10000E-03    12.122       -.57050E-05** at limit **
  20  Prefactor     44.898        83.655       -.39382E-04   -.38429E-05
  21  norm          .10000E-03    1.5085       -.11860E-07** at limit **
  22  Prefactor     .10000E-03    23.311       -.21383E-05** at limit **
  23  norm          .79777        1.3341       -.23672E-06   -.74652E-03
  24  norm          .10000E-03    1.7832       -.32409E-07** at limit **
  25  Prefactor     .10000E-03    2.3200       -.76804E-07** at limit **
  26  Prefactor     75.197        37.447        .48916E-06    .55803E-04
  27  Prefactor     89.027        131.51       -.36097E-05   -.61131E-05
  28  Prefactor     .10000E-03    10.644        .16677E-05** at limit **
  29  Prefactor     11.440        6.7926        .19105E-06    .24967E-04
  30  Prefactor     33.629        81.355        .14878E-04   -.14085E-04
  31  Normalizat    .53388        .25917        .41733E-05    .18208E-04
  32  Prefactor     1.5328        .27649        .12016E-05    .18670E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.98155
  Prefactor  = 55.9374
  Prefactor  = 0.0001
  Prefactor  = 56.1659
  Prefactor  = 18.8975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3014
  Prefactor  = 50.2303
  Prefactor  = 9.84052
  norm       = 6.8758
  norm       = 0.0001
  norm       = 0.0001
  norm       = 18.2257
  Prefactor  = 14.5432
  Prefactor  = 0.0001
  Prefactor  = 44.8977
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.797774
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.1974
  Prefactor  = 89.0271
  Prefactor  = 0.000100001
  Prefactor  = 11.4397
  Prefactor  = 33.6285
  Normalizat = 0.533878
  Prefactor  = 1.53277
 **********
 **   18 **HESSE 
 **********

 FCN=   3964.110     FROM HESSE     STATUS=OK           653 CALLS     5042 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    62.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9815        4.7622        .16393E-03   -1.5363    
   5  Prefactor     55.937        56.147        .53638E-04   -1.4211    
   6  Prefactor     .10000E-03    3.8980        .12086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.166        38.980        .53527E-04   -1.4208    
   8  Prefactor     18.897        36.639        .92126E-04   -1.4838    
   9  Prefactor     .10000E-03    13.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6271        .15760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.301        37.635        .99205E-04   -1.4900    
  12  Prefactor     50.230        87.409        .56574E-04   -1.4289    
  13  Prefactor     9.8405        17.545        .12774E-03   -1.5080    
  14  norm          6.8758        11.668        .15300E-03   -1.5183    
  15  norm          .10000E-03    12.370        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2890        .92972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.226        16.590        .93821E-04   -1.4854    
  18  Prefactor     14.543        8.9099        .10502E-03   -1.4945    
  19  Prefactor     .10000E-03    12.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.898        83.666        .59815E-04   -1.4367    
  21  norm          .10000E-03    1.5104        .75511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .79777        1.1914        .85605E-03   -1.5529    
  24  norm          .10000E-03    1.7896        .82101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.3280        .93535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     75.197        37.244        .46303E-04   -1.3971    
  27  Prefactor     89.027        131.44        .42583E-04   -1.3818    
  28  Prefactor     .10000E-03    10.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     11.440        6.7929        .11796E-03   -1.5031    
  30  Prefactor     33.629        81.291        .69111E-04   -1.4548    
  31  Normalizat    .53388        .30046        .34346E-03   -1.1087    
  32  Prefactor     1.5328        .32798        .24142E-03   -.76626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45159e-10
Minuit parameter uncertainties:
  1  6.78065e-05
  2  0.000132749
  3  9.92731e-05
  4  4.76276
  5  56.2005
  6  9.68651e-06
  7  38.9977
  8  36.6824
  9  1.07699e-05
  10  1.11412e-05
  11  37.6894
  12  87.6335
  13  17.554
  14  11.6719
  15  4.86487e-05
  16  1.72991e-06
  17  16.5946
  18  8.91071
  19  8.65516e-06
  20  83.8857
  21  1.96769e-06
  22  3.02236e-05
  23  1.19147
  24  3.95288e-06
  25  9.04262e-06
  26  37.2557
  27  131.876
  28  0.000189436
  29  6.79334
  30  81.56
  31  0.301384
  32  0.328432
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.730e-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.533e+00  3.284e-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.339e-01  3.014e-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.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853418/likelihoodResults_604800001_605059201_4FGL_J2324.7-4041_daily_bin1410.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) = 3964.11165083
delta logL = -0.00145670887514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3964.11019402
delta logL = 1.0395569916e-07

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.6138       1.0000          .0000       5.0000    
     3 'Normalizat'    .53387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5328       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=   3964.110     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      248 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.555        .93492E-02** at limit **
   2  alpha         1.3602        3.7218        .50000       -.29956E-07
   3  Normalizat    .53388        .19168E-01    .34346E-03   -.46840E-03
   4  Prefactor     1.5328        .21843E-01    .24142E-03   -.72314E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.3602
  Normalizat = 0.533877
  Prefactor  = 1.53276
 **********
 **   18 **HESSE 
 **********

 FCN=   3964.110     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    231.72        .96222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3602        3.0946        .50000       -.47341    
   3  Normalizat    .53388        .61515E-01    .68692E-04   -1.1087    
   4  Prefactor     1.5328        .70103E-01    .48283E-04   -.76626    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.6049e-09
Minuit parameter uncertainties:
  1  0.000365931
  2  1231.89
  3  0.0615231
  4  0.0701077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853418': 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) = 3964.11019268
delta logL = 1.43797524288e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.659e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.360e+00  1.232e+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:  1.533e+00  7.011e-02  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.339e-01  6.152e-02  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/853418/cmap_HighResolution_604800001_605059201_4FGL_J2324.7-4041_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-05', job_status='DONE', photon_flux_upper_limit='3.10e-08', time_completed='2021-09-29 17:05:49.517267', job_id='853418', GAL2='1.53', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1632960349.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.53', dlogl='1.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1410' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:05:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 853418: <4FGL_J2324.7-4041_daily_bin1410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1410 351.182 -40.6834 604800001 605059201 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 :                                   689.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

