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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1047
RA = 351.182, Dec = -40.6834
tmin = 510710401, tmax = 510969601
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='851774', job_status='RUN', time_executed='2021-09-29 16:46:08.703402', time_epoch_executed='1632959168.7' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1047'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851774

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851774/ft1_4FGL_J2324.7-4041_daily_bin1047.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851774/ft2_4FGL_J2324.7-4041_daily_bin1047.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851774/ft1_4FGL_J2324.7-4041_daily_bin1047.fits outfile=/scratch/kocevski/851774/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1047.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=510710401.0 tmax=510969601.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.51
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851774/ft1_filtered_4FGL_J2324.7-4041_daily_bin1047.fits" evtable="EVENTS" scfile=/scratch/kocevski/851774/ft2_4FGL_J2324.7-4041_daily_bin1047.fits sctable="SC_DATA" outfile=/scratch/kocevski/851774/ltcube_510710401_510969601_4FGL_J2324.7-4041_daily_bin1047.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/851774/ft2_4FGL_J2324.7-4041_daily_bin1047.fits
.....................!
real 12.02
user 11.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851774/ft1_filtered_4FGL_J2324.7-4041_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/851774/ft2_4FGL_J2324.7-4041_daily_bin1047.fits sctable="SC_DATA" expcube=/scratch/kocevski/851774/ltcube_510710401_510969601_4FGL_J2324.7-4041_daily_bin1047.fits outfile=/scratch/kocevski/851774/expmap_510710401_510969601_4FGL_J2324.7-4041_daily_bin1047.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/851774/ltcube_510710401_510969601_4FGL_J2324.7-4041_daily_bin1047.fits
.....................!
real 192.08
user 186.45
sys 5.16

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/851774/ft1_filtered_4FGL_J2324.7-4041_daily_bin1047.fits scfile=/scratch/kocevski/851774/ft2_4FGL_J2324.7-4041_daily_bin1047.fits outfile=/scratch/kocevski/851774/cmap_510710401_510969601_4FGL_J2324.7-4041_daily_bin1047.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851774/ft1_filtered_4FGL_J2324.7-4041_daily_bin1047.fits scfile=/scratch/kocevski/851774/ft2_4FGL_J2324.7-4041_daily_bin1047.fits outfile=/scratch/kocevski/851774/cmap_HighResolution_510710401_510969601_4FGL_J2324.7-4041_daily_bin1047.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851774/ft1_filtered_4FGL_J2324.7-4041_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/851774/ft2_4FGL_J2324.7-4041_daily_bin1047.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851774/Model_4FGL_J2324.7-4041_daily_bin1047.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/851774/ft1_filtered_4FGL_J2324.7-4041_daily_bin1047.fits.....................!
real 42.64
user 41.25
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3921       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18795E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6685       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0279       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.320       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.474       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6850       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.366       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.6054       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    62.628       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1524       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .61780       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1896       1.0000         .10000E-03   10000.    
    24 'norm      '    1.4834       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2221       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.0790       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.1691       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .99659       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .77185       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .75012       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=   5715.776     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     3802 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3929        86.331       -.36391E-05    .17643E-05
   2  Prefactor     .10000E-03    4.4148        .13101E-06** at limit **
   3  Prefactor     .10009E-03    54.001       -.15097E-04** at limit **
   4  Prefactor     3.6673        3.5644       -.61496E-06    .16819E-03
   5  Prefactor     .10000E-03    20.119       -.13100E-05** at limit **
   6  Prefactor     9.0276        6.5705       -.11604E-06    .33548E-04
   7  Prefactor     33.321        17.642       -.27272E-06   -.44000E-05
   8  Prefactor     .10000E-03    12.599       -.78971E-06** at limit **
   9  Prefactor     18.474        11.204       -.23502E-06    .29204E-04
  10  Prefactor     3.6839        6.0502       -.20880E-05    .81172E-04
  11  Prefactor     .10000E-03    16.716        .12789E-05** at limit **
  12  Prefactor     .10000E-03    10.784        .76896E-06** at limit **
  13  Prefactor     11.360        13.576        .57374E-06   -.11664E-04
  14  norm          .10000E-03    2.2380        .16891E-07** at limit **
  15  norm          8.6062        5.7878        .21181E-06   -.52592E-04
  16  norm          .10000E-03    1.3720       -.13547E-08** at limit **
  17  norm          .10000E-03    2.1143       -.14162E-06** at limit **
  18  Prefactor     .10001E-03    2.9343        .71931E-06** at limit **
  19  Prefactor     62.680        30.588        .92796E-06    .66266E-04
  20  Prefactor     .10000E-03    10.931       -.89538E-06** at limit **
  21  norm          2.1509        2.3294       -.12809E-06    .49078E-04
  22  Prefactor     .61558        8.8563       -.36362E-07   -.29451E-03
  23  norm          1.1899        .93551       -.49418E-07   -.99439E-03
  24  norm          1.4807        2.6151       -.11659E-05    .39123E-04
  25  Prefactor     2.2225        3.0913       -.21186E-05   -.45060E-03
  26  Prefactor     .10000E-03    89.842        .24811E-04** at limit **
  27  Prefactor     .10001E-03    80.819        .24777E-04** at limit **
  28  Prefactor     2.0823        3.8726       -.13448E-05    .40690E-04
  29  Prefactor     2.1681        2.8721       -.91204E-06    .18972E-04
  30  Prefactor     .96401        34.249        .54928E-05   -.16768E-04
  31  Normalizat    .77191        .15133        .45573E-06   -.19816E-03
  32  Prefactor     .75011        .15677        .18231E-05   -.23937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39286
  Prefactor  = 0.0001
  Prefactor  = 0.000100089
  Prefactor  = 3.66733
  Prefactor  = 0.0001
  Prefactor  = 9.02757
  Prefactor  = 33.3207
  Prefactor  = 0.0001
  Prefactor  = 18.4741
  Prefactor  = 3.68387
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3603
  norm       = 0.0001
  norm       = 8.60616
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 62.6803
  Prefactor  = 0.0001
  norm       = 2.15089
  Prefactor  = 0.615579
  norm       = 1.18986
  norm       = 1.48068
  Prefactor  = 2.22254
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 2.08233
  Prefactor  = 2.16808
  Prefactor  = 0.964015
  Normalizat = 0.771906
  Prefactor  = 0.750109
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.776     FROM HESSE     STATUS=OK           673 CALLS     4475 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3929        86.386        .19217E-03   -1.5289    
   2  Prefactor     .10000E-03    4.4174        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10009E-03    210.37        .68239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6673        3.5543        .13289E-03   -1.5325    
   5  Prefactor     .10000E-03    20.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0276        6.5688        .13339E-03   -1.5107    
   7  Prefactor     33.321        17.638        .69419E-04   -1.4553    
   8  Prefactor     .10000E-03    12.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.474        11.205        .93184E-04   -1.4848    
  10  Prefactor     3.6839        6.0281        .21040E-03   -1.5324    
  11  Prefactor     .10000E-03    16.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.360        13.527        .11883E-03   -1.5034    
  14  norm          .10000E-03    2.2381        .11046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.6062        5.7840        .13665E-03   -1.5121    
  16  norm          .10000E-03    1.3734        .86423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1215        .10736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    4.8376        .23150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     62.680        30.610        .50706E-04   -1.4123    
  20  Prefactor     .10000E-03    10.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1509        2.3097        .11241E-03   -1.5415    
  22  Prefactor     .61558        23.618        .39315E-02   -1.5551    
  23  norm          1.1899        .92336        .58165E-04   -1.5490    
  24  norm          1.4807        2.5758        .15452E-03   -1.5465    
  25  Prefactor     2.2225        3.0347        .14694E-03   -1.5410    
  26  Prefactor     .10000E-03    103.55        .50866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    83.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.0823        3.8518        .18809E-03   -1.5419    
  29  Prefactor     2.1681        2.8614        .14061E-03   -1.5413    
  30  Prefactor     .96401        242.59        .77235E-02   -1.5512    
  31  Normalizat    .77191        .17721        .21104E-03   -1.0112    
  32  Prefactor     .75011        .18418        .23887E-03   -1.0159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30638e-08
Minuit parameter uncertainties:
  1  39.025
  2  5.65407e-06
  3  0.00866311
  4  3.55449
  5  5.81517e-05
  6  6.56929
  7  17.6405
  8  8.17167e-06
  9  11.2062
  10  6.02911
  11  5.28019e-05
  12  3.6713e-05
  13  13.5308
  14  1.00299e-06
  15  5.78435
  16  1.19918e-06
  17  4.07307e-06
  18  0.000433929
  19  30.6172
  20  4.42123e-05
  21  2.30981
  22  7.62856
  23  0.923369
  24  2.57602
  25  3.03492
  26  0.00070068
  27  0.00149948
  28  3.85223
  29  2.86157
  30  30.7097
  31  0.177346
  32  0.184328
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.199e-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.501e-01  1.843e-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.719e-01  1.773e-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: 1.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851774/likelihoodResults_510710401_510969601_4FGL_J2324.7-4041_daily_bin1047.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) = 5715.77559257
delta logL = -6.15477802057e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5715.77559181
delta logL = 1.49942025018e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6020       1.0000          .0000       5.0000    
     3 'Normalizat'    .77198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75003       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=   5715.776     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      234 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.975        .86973E-03** at limit **
   2  alpha         1.4028        2.8636        .18058       -.75422E-07
   3  Normalizat    .77191        .16220        .21104E-03    .78595E-04
   4  Prefactor     .75011        .18235        .23887E-03    .71058E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.40284
  Normalizat = 0.771906
  Prefactor  = 0.75011
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.776     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4410        .17395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4028        3.0028        .72232E-02   -.45433    
   3  Normalizat    .77191        .16237        .84417E-05   -1.0112    
   4  Prefactor     .75011        .18255        .95547E-05   -1.0159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83287e-10
Minuit parameter uncertainties:
  1  5.46672e-05
  2  118.87
  3  0.162474
  4  0.182693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851774': 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) = 5715.77559025
delta logL = 1.70418479684e-06

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  5.467e-05  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.403e+00  1.189e+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:  7.501e-01  1.827e-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.719e-01  1.625e-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/851774/cmap_HighResolution_510710401_510969601_4FGL_J2324.7-4041_daily_bin1047.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-05', job_status='DONE', photon_flux_upper_limit='1.83e-08', time_completed='2021-09-29 17:00:08.110450', job_id='851774', GAL2='0.75', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632960008.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.70e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1047' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:00:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 851774: <4FGL_J2324.7-4041_daily_bin1047> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1047> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:43 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:45 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:45 2021
Terminated at Wed Sep 29 17:00:08 2021
Results reported at Wed Sep 29 17:00:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1047 351.182 -40.6834 510710401 510969601 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 :                                   831.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

