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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1428
RA = 351.182, Dec = -40.6834
tmin = 609465601, tmax = 609724801
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='853445', job_status='RUN', time_executed='2021-09-29 16:53:14.349457', time_epoch_executed='1632959594.35' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853445

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853445/ft1_4FGL_J2324.7-4041_daily_bin1428.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853445/ft2_4FGL_J2324.7-4041_daily_bin1428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853445/ft1_4FGL_J2324.7-4041_daily_bin1428.fits outfile=/scratch/kocevski/853445/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1428.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=609465601.0 tmax=609724801.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 2.24
user 2.04
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853445/ft2_4FGL_J2324.7-4041_daily_bin1428.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/853445/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1428.fits evtable="EVENTS" outfile="/scratch/kocevski/853445/ft1_filtered_4FGL_J2324.7-4041_daily_bin1428.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.41
user 0.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853445/ft1_filtered_4FGL_J2324.7-4041_daily_bin1428.fits" evtable="EVENTS" scfile=/scratch/kocevski/853445/ft2_4FGL_J2324.7-4041_daily_bin1428.fits sctable="SC_DATA" outfile=/scratch/kocevski/853445/ltcube_609465601_609724801_4FGL_J2324.7-4041_daily_bin1428.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/853445/ft2_4FGL_J2324.7-4041_daily_bin1428.fits
.....................!
real 9.51
user 9.20
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853445/ft1_filtered_4FGL_J2324.7-4041_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/853445/ft2_4FGL_J2324.7-4041_daily_bin1428.fits sctable="SC_DATA" expcube=/scratch/kocevski/853445/ltcube_609465601_609724801_4FGL_J2324.7-4041_daily_bin1428.fits outfile=/scratch/kocevski/853445/expmap_609465601_609724801_4FGL_J2324.7-4041_daily_bin1428.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/853445/ltcube_609465601_609724801_4FGL_J2324.7-4041_daily_bin1428.fits
.....................!
real 146.04
user 141.63
sys 4.19

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/853445/ft1_filtered_4FGL_J2324.7-4041_daily_bin1428.fits scfile=/scratch/kocevski/853445/ft2_4FGL_J2324.7-4041_daily_bin1428.fits outfile=/scratch/kocevski/853445/cmap_609465601_609724801_4FGL_J2324.7-4041_daily_bin1428.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.48
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853445/ft1_filtered_4FGL_J2324.7-4041_daily_bin1428.fits scfile=/scratch/kocevski/853445/ft2_4FGL_J2324.7-4041_daily_bin1428.fits outfile=/scratch/kocevski/853445/cmap_HighResolution_609465601_609724801_4FGL_J2324.7-4041_daily_bin1428.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.45
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853445/ft1_filtered_4FGL_J2324.7-4041_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/853445/ft2_4FGL_J2324.7-4041_daily_bin1428.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853445/Model_4FGL_J2324.7-4041_daily_bin1428.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/853445/ft1_filtered_4FGL_J2324.7-4041_daily_bin1428.fits....................!
real 36.93
user 35.87
sys 0.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.643       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6112       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3514       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6759       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.151       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.457       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    105.39       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5830       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .67886       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6837       1.0000         .10000E-03   10000.    
    17 'norm      '    9.0189       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.089       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .37171E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4644       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .36847       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .47345E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .49506E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2119       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .76856       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=   6810.730     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4626 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.627        61.103        .26848E-05    .22817E-04
   2  Prefactor     5.6078        16.615        .23813E-06   -.14856E-03
   3  Prefactor     .10000E-03    13.972       -.98660E-06** at limit **
   4  Prefactor     2.3514        2.9383        .23302E-06    .25966E-04
   5  Prefactor     .10000E-03    11.668        .12968E-05** at limit **
   6  Prefactor     9.6756        6.3698        .61763E-07   -.11550E-04
   7  Prefactor     .10000E-03    5.9125        .26826E-06** at limit **
   8  Prefactor     21.150        19.923        .19254E-06   -.29149E-04
   9  Prefactor     14.456        12.900        .20841E-07   -.29025E-04
  10  Prefactor     .10000E-03    2.9289        .20309E-07** at limit **
  11  Prefactor     .10000E-03    8.9301       -.56529E-06** at limit **
  12  Prefactor     105.38        78.805        .23233E-05    .20357E-04
  13  Prefactor     2.5803        8.6103        .69418E-05    .46600E-03
  14  norm          .10000E-03    6.0295       -.46602E-06** at limit **
  15  norm          .68016        4.4652        .40554E-06    .10296E-03
  16  norm          2.6837        2.7574       -.62272E-08   -.32105E-04
  17  norm          9.0192        7.3343        .99297E-07   -.54939E-04
  18  Prefactor     34.089        9.0548       -.19061E-06   -.23936E-04
  19  Prefactor     .10000E-03    9.5435        .34574E-07** at limit **
  20  Prefactor     .10000E-03    28.836       -.84352E-07** at limit **
  21  norm          .10000E-03    1.6291       -.54332E-08** at limit **
  22  Prefactor     .10114E-03    8.0522       -.17312E-05** at limit **
  23  norm          .10000E-03    .34812       -.26336E-07** at limit **
  24  norm          2.4641        4.1905        .50225E-06    .99783E-05
  25  Prefactor     .36809        2.2437       -.21195E-05    .49152E-03
  26  Prefactor     .10000E-03    21.538        .14118E-05** at limit **
  27  Prefactor     .10000E-03    507.94        .27459E-04** at limit **
  28  Prefactor     .10000E-03    6.4718        .32205E-06** at limit **
  29  Prefactor     .10706E-03    2.3080        .22028E-05** at limit **
  30  Prefactor     .10000E-03    18.595       -.11313E-05** at limit **
  31  Normalizat    1.2120        .17238        .73649E-07   -.54603E-03
  32  Prefactor     .76844        .18358       -.24086E-05   -.46092E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.6267
  Prefactor  = 5.60777
  Prefactor  = 0.0001
  Prefactor  = 2.35144
  Prefactor  = 0.0001
  Prefactor  = 9.67557
  Prefactor  = 0.0001
  Prefactor  = 21.15
  Prefactor  = 14.4555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 105.381
  Prefactor  = 2.58032
  norm       = 0.0001
  norm       = 0.680162
  norm       = 2.68371
  norm       = 9.01915
  Prefactor  = 34.0888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101143
  norm       = 0.0001
  norm       = 2.46411
  Prefactor  = 0.36809
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.00010706
  Prefactor  = 0.0001
  Normalizat = 1.212
  Prefactor  = 0.76844
 **********
 **   18 **HESSE 
 **********

 FCN=   6810.730     FROM HESSE     STATUS=OK           673 CALLS     5299 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.627        61.622        .45573E-04   -1.3944    
   2  Prefactor     5.6078        16.520        .16959E-03   -1.5234    
   3  Prefactor     .10000E-03    13.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3514        2.9276        .15199E-03   -1.5401    
   5  Prefactor     .10000E-03    11.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.6756        6.3711        .12883E-03   -1.5086    
   7  Prefactor     .10000E-03    5.9176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.150        19.930        .87092E-04   -1.4788    
   9  Prefactor     14.456        12.931        .10534E-03   -1.4947    
  10  Prefactor     .10000E-03    2.9585        .13791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     105.38        79.264        .39171E-04   -1.3651    
  13  Prefactor     2.5803        8.8608        .12696E-02   -1.5387    
  14  norm          .10000E-03    6.0467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68016        4.2274        .33010E-03   -1.5543    
  16  norm          2.6837        2.7644        .13542E-03   -1.5380    
  17  norm          9.0192        7.3372        .13346E-03   -1.5107    
  18  Prefactor     34.089        9.0413        .68634E-04   -1.4540    
  19  Prefactor     .10000E-03    9.5504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6411        .10271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10114E-03    10.840        .71477E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .62031        .92618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.4641        4.1774        .20831E-03   -1.5394    
  25  Prefactor     .36809        6.9743        .20292E-02   -1.5587    
  26  Prefactor     .10000E-03    21.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    512.04        .42368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.7484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10706E-03    2.8621        .36891E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    18.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2120        .21018        .22404E-03   -.86233    
  32  Prefactor     .76844        .22072        .29965E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89449e-09
Minuit parameter uncertainties:
  1  61.6732
  2  16.5333
  3  4.59291e-05
  4  2.92782
  5  5.71898e-05
  6  6.37154
  7  8.63975e-06
  8  19.9366
  9  12.9338
  10  5.32513e-06
  11  1.69127e-05
  12  79.3433
  13  8.86526
  14  4.50986e-06
  15  3.39146
  16  2.76449
  17  7.33792
  18  9.04169
  19  1.54367e-06
  20  1.89471e-05
  21  3.69205e-07
  22  0.00704252
  23  3.13857e-06
  24  4.17788
  25  3.20446
  26  0.000143384
  27  0.00113608
  28  1.10313e-05
  29  0.00899068
  30  6.52783e-05
  31  0.210324
  32  0.220975
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  2.684e+00  2.764e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  7.684e-01  2.210e-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.212e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.24
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 6.58e-09 +/- 6.78e-09
Energy Flux (Fixed Index): 1.42e-05 +/- 1.47e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6810.71590709
delta logL = 0.0145904279061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6810.71436979
delta logL = 0.0161277276729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8435       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4846       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76803       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=   6810.714     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8451        120.57        .60282E-02   -.21164E-03
   2  alpha         1.4852        3.5902        .46573        .12536E-04
   3  Normalizat    1.2128        .94179E-01    .50661E-01   -.27815E-05
   4  Prefactor     .76814        .81888E-01    .67738E-01    .44373E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.84514
  alpha      = 1.48521
  Normalizat = 1.21281
  Prefactor  = 0.768142
 **********
 **   18 **HESSE 
 **********

 FCN=   6810.714     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8451        3.0167        .13931E-03   -1.5371    
   2  alpha         1.4852        .74538        .20232E-01   -.41798    
   3  Normalizat    1.2128        .19887        .22398E-03   -.86208    
   4  Prefactor     .76814        .21762        .29970E-03   -1.0091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36453e-12
Minuit parameter uncertainties:
  1  3.01686
  2  0.759274
  3  0.198992
  4  0.217859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853445': 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) = 6810.71436905
delta logL = 0.0161284677051

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  2.845e+00  3.017e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.485e+00  7.593e-01  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  7.681e-01  2.179e-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.213e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 1.49 +/- 0.76
Photon Flux (Free Index): 5.74e-09 +/- 7.14e-09
Energy Flux (Free Index): 1.81e-05 +/- 3.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/853445/cmap_HighResolution_609465601_609724801_4FGL_J2324.7-4041_daily_bin1428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.58e-09', energy_flux2='1.81e-05', photon_flux_error='6.78e-09', dlogl='1.61e-02', energy_flux='1.42e-05', photon_flux2='5.74e-09', job_status='DONE', time_completed='2021-09-29 17:04:34.145729', photon_index_error2='0.76', photon_index2='1.49', ts='4.24', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='3.09e-05', EG='1.21', time_epoch_completed='1632960274.15', return_code='0', job_id='853445', GAL2='0.77', EG2='1.21', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='7.14e-09', ts2='4.27', photon_index='1.62' WHERE bin_id='1428' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:04:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 853445: <4FGL_J2324.7-4041_daily_bin1428> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1428 351.182 -40.6834 609465601 609724801 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 :                                   638.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             237.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            835 sec.

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

