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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1093
RA = 351.182, Dec = -40.6834
tmin = 522633601, tmax = 522892801
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='851846', job_status='RUN', time_executed='2021-09-29 16:46:43.566549', time_epoch_executed='1632959203.57' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851846/ft1_4FGL_J2324.7-4041_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851846/ft2_4FGL_J2324.7-4041_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851846/ft1_4FGL_J2324.7-4041_daily_bin1093.fits outfile=/scratch/kocevski/851846/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1093.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=522633601.0 tmax=522892801.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.59
user 3.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/851846/ft2_4FGL_J2324.7-4041_daily_bin1093.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/851846/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1093.fits evtable="EVENTS" outfile="/scratch/kocevski/851846/ft1_filtered_4FGL_J2324.7-4041_daily_bin1093.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851846/ft1_filtered_4FGL_J2324.7-4041_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/851846/ft2_4FGL_J2324.7-4041_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/851846/ltcube_522633601_522892801_4FGL_J2324.7-4041_daily_bin1093.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/851846/ft2_4FGL_J2324.7-4041_daily_bin1093.fits
.....................!
real 12.04
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851846/ft1_filtered_4FGL_J2324.7-4041_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/851846/ft2_4FGL_J2324.7-4041_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/851846/ltcube_522633601_522892801_4FGL_J2324.7-4041_daily_bin1093.fits outfile=/scratch/kocevski/851846/expmap_522633601_522892801_4FGL_J2324.7-4041_daily_bin1093.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/851846/ltcube_522633601_522892801_4FGL_J2324.7-4041_daily_bin1093.fits
.....................!
real 191.11
user 185.40
sys 5.22

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/851846/ft1_filtered_4FGL_J2324.7-4041_daily_bin1093.fits scfile=/scratch/kocevski/851846/ft2_4FGL_J2324.7-4041_daily_bin1093.fits outfile=/scratch/kocevski/851846/cmap_522633601_522892801_4FGL_J2324.7-4041_daily_bin1093.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851846/ft1_filtered_4FGL_J2324.7-4041_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/851846/ft2_4FGL_J2324.7-4041_daily_bin1093.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851846/Model_4FGL_J2324.7-4041_daily_bin1093.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/851846/ft1_filtered_4FGL_J2324.7-4041_daily_bin1093.fits.....................!
real 35.23
user 33.89
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.958       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.178       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7065       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11621E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.667       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    80.614       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .62867E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    15.488       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58475E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.4179       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.812       1.0000         .10000E-03   10000.    
    23 'norm      '    .68537       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7364       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    69.288       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.576       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.6036       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .88439       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .82521       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=   3955.671     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4482 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.962        87.708        .34899E-05    .13021E-04
   2  Prefactor     .10000E-03    38.864        .30336E-05** at limit **
   3  Prefactor     .10000E-03    14.115       -.79677E-05** at limit **
   4  Prefactor     .10000E-03    3.9513       -.28656E-07** at limit **
   5  Prefactor     .10000E-03    24.515        .54613E-05** at limit **
   6  Prefactor     18.178        9.2445        .92088E-07   -.15034E-04
   7  Prefactor     5.7114        26.612       -.66722E-06   -.18151E-03
   8  Prefactor     .10001E-03    102.95        .68862E-04** at limit **
   9  Prefactor     30.673        19.569        .77824E-06   -.86375E-04
  10  Prefactor     .10000E-03    11.761        .13214E-05** at limit **
  11  Prefactor     80.615        52.166        .12508E-05    .15171E-04
  12  Prefactor     .10000E-03    15.714        .11462E-04** at limit **
  13  Prefactor     .10000E-03    19.662       -.56061E-05** at limit **
  14  norm          .10000E-03    8.9760       -.57869E-08** at limit **
  15  norm          .10000E-03    8.2345        .16442E-07** at limit **
  16  norm          .10196E-03    9.2836       -.51945E-06** at limit **
  17  norm          15.485        10.584        .29459E-06   -.28958E-05
  18  Prefactor     .10002E-03    7.6447       -.10223E-05** at limit **
  19  Prefactor     .10000E-03    23.026       -.37447E-05** at limit **
  20  Prefactor     .10000E-03    19.282       -.25772E-05** at limit **
  21  norm          4.4755        6.0886       -.12634E-06    .15314E-03
  22  Prefactor     25.767        25.230        .29493E-05    .35941E-03
  23  norm          .68454        1.2580       -.43721E-06   -.89997E-03
  24  norm          1.7277        4.5885       -.15683E-06   -.40628E-03
  25  Prefactor     .10000E-03    3.3155       -.22717E-06** at limit **
  26  Prefactor     69.300        36.152        .33317E-05    .11835E-03
  27  Prefactor     .10000E-03    24.104        .25867E-05** at limit **
  28  Prefactor     18.581        10.648        .47625E-06    .18834E-03
  29  Prefactor     4.6072        6.2026       -.35760E-05   -.28779E-03
  30  Prefactor     .10000E-03    74.069       -.40068E-04** at limit **
  31  Normalizat    .88364        .23248       -.55221E-06   -.11815E-03
  32  Prefactor     .82580        .23455       -.54992E-06   -.14195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.962
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1778
  Prefactor  = 5.71142
  Prefactor  = 0.000100013
  Prefactor  = 30.6728
  Prefactor  = 0.0001
  Prefactor  = 80.6148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000101963
  norm       = 15.4848
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.4755
  Prefactor  = 25.7671
  norm       = 0.684538
  norm       = 1.72773
  Prefactor  = 0.0001
  Prefactor  = 69.3003
  Prefactor  = 0.0001
  Prefactor  = 18.5808
  Prefactor  = 4.60719
  Prefactor  = 0.0001
  Normalizat = 0.883642
  Prefactor  = 0.825801
 **********
 **   18 **HESSE 
 **********

 FCN=   3955.671     FROM HESSE     STATUS=OK           661 CALLS     5143 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.962        88.014        .43583E-04   -1.3862    
   2  Prefactor     .10000E-03    39.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0806        .24393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.178        9.2456        .93940E-04   -1.4855    
   7  Prefactor     5.7114        26.623        .16815E-03   -1.5230    
   8  Prefactor     .10001E-03    103.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.673        19.595        .72352E-04   -1.4600    
  10  Prefactor     .10000E-03    12.081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     80.615        52.169        .44732E-04   -1.3910    
  12  Prefactor     .10000E-03    15.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.9937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.3011        .17598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10196E-03    10.035        .49734E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.485        10.586        .10177E-03   -1.4921    
  18  Prefactor     .10002E-03    51.085        .28562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.4755        6.1899        .13799E-03   -1.5285    
  22  Prefactor     25.767        22.363        .78848E-04   -1.4692    
  23  norm          .68454        1.0980        .85855E-03   -1.5542    
  24  norm          1.7277        4.5289        .20155E-03   -1.5445    
  25  Prefactor     .10000E-03    3.3522        .11142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     69.300        35.861        .48223E-04   -1.4041    
  27  Prefactor     .10000E-03    24.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     18.581        10.706        .92928E-04   -1.4846    
  29  Prefactor     4.6072        6.2370        .16904E-03   -1.5279    
  30  Prefactor     .10000E-03    74.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .88364        .27928        .24380E-03   -.97037    
  32  Prefactor     .82580        .27950        .26962E-03   -.98784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00879e-09
Minuit parameter uncertainties:
  1  88.1491
  2  0.000339542
  3  8.27822e-06
  4  2.73541e-06
  5  1.85627e-05
  6  9.24636
  7  24.68
  8  0.00235092
  9  19.5987
  10  3.24053e-05
  11  52.1984
  12  1.77551e-06
  13  4.26071e-05
  14  4.71971e-06
  15  2.51854e-05
  16  0.00887862
  17  10.5874
  18  0.00211167
  19  1.99443e-05
  20  2.79692e-06
  21  6.19077
  22  22.37
  23  1.09805
  24  4.52976
  25  3.38972e-05
  26  35.8722
  27  2.2311e-06
  28  10.7072
  29  6.23783
  30  9.1995e-05
  31  0.279739
  32  0.279982
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.020e-04  8.879e-03  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:  8.258e-01  2.800e-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:  8.836e-01  2.797e-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: 4.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851846/likelihoodResults_522633601_522892801_4FGL_J2324.7-4041_daily_bin1093.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) = 3955.67121364
delta logL = -2.22991911869e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3955.60318881
delta logL = 0.068002530485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83918       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4356       1.0000          .0000       5.0000    
     3 'Normalizat'    .88076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82062       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=   3955.603     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      287 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83604        54.966        .12585E-01    .73141E-03
   2  alpha         2.4373        3.6800        .41169        .10811E-04
   3  Normalizat    .88036        .29755E-01    .44655E-01    .87613E-05
   4  Prefactor     .82094        .31753E-01    .43985E-01    .24782E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.836039
  alpha      = 2.43725
  Normalizat = 0.880364
  Prefactor  = 0.82094
 **********
 **   18 **HESSE 
 **********

 FCN=   3955.603     FROM HESSE     STATUS=OK            33 CALLS      320 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83604        4.1444        .16068E-03   -1.5525    
   2  alpha         2.4373        1.6797        .14034E-01   -.25101E-01
   3  Normalizat    .88036        .25481        .24413E-03   -.97154    
   4  Prefactor     .82094        .27402        .13506E-02   -.98961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63271e-12
Minuit parameter uncertainties:
  1  3.72301
  2  1.84194
  3  0.255155
  4  0.274479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851846': 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) = 3955.60318692
delta logL = 0.0680044234869

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  8.360e-01  3.723e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.437e+00  1.842e+00  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:  8.209e-01  2.745e-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:  8.804e-01  2.552e-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/851846/cmap_HighResolution_522633601_522892801_4FGL_J2324.7-4041_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-05', job_status='DONE', photon_flux_upper_limit='4.28e-08', time_completed='2021-09-29 16:58:41.277976', job_id='851846', GAL2='0.82', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632959921.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='6.80e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1093' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:58:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 851846: <4FGL_J2324.7-4041_daily_bin1093> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1093> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:51 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:52 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:52 2021
Terminated at Wed Sep 29 16:58:42 2021
Results reported at Wed Sep 29 16:58:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1093 351.182 -40.6834 522633601 522892801 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 :                                   701.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

