/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 10 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 = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1602
RA = 351.182, Dec = -40.6834
tmin = 654566401, tmax = 654825601
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='861513', job_status='RUN', time_executed='2021-10-02 00:20:38.392356', time_epoch_executed='1633159238.39' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861513/ft1_4FGL_J2324.7-4041_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861513/ft2_4FGL_J2324.7-4041_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861513/ft1_4FGL_J2324.7-4041_daily_bin1602.fits outfile=/scratch/kocevski/861513/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1602.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=654566401.0 tmax=654825601.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.78
user 4.72
sys 1.04

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/861513/ft1_filtered_4FGL_J2324.7-4041_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/861513/ft2_4FGL_J2324.7-4041_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/861513/ltcube_654566401_654825601_4FGL_J2324.7-4041_daily_bin1602.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/861513/ft2_4FGL_J2324.7-4041_daily_bin1602.fits
.....................!
real 12.08
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861513/ft1_filtered_4FGL_J2324.7-4041_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/861513/ft2_4FGL_J2324.7-4041_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/861513/ltcube_654566401_654825601_4FGL_J2324.7-4041_daily_bin1602.fits outfile=/scratch/kocevski/861513/expmap_654566401_654825601_4FGL_J2324.7-4041_daily_bin1602.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/861513/ltcube_654566401_654825601_4FGL_J2324.7-4041_daily_bin1602.fits
.....................!
real 191.14
user 185.08
sys 5.75

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/861513/ft1_filtered_4FGL_J2324.7-4041_daily_bin1602.fits scfile=/scratch/kocevski/861513/ft2_4FGL_J2324.7-4041_daily_bin1602.fits outfile=/scratch/kocevski/861513/cmap_654566401_654825601_4FGL_J2324.7-4041_daily_bin1602.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.182 yref=-40.6834 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861513/ft1_filtered_4FGL_J2324.7-4041_daily_bin1602.fits scfile=/scratch/kocevski/861513/ft2_4FGL_J2324.7-4041_daily_bin1602.fits outfile=/scratch/kocevski/861513/cmap_HighResolution_654566401_654825601_4FGL_J2324.7-4041_daily_bin1602.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/861513/ft1_filtered_4FGL_J2324.7-4041_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/861513/ft2_4FGL_J2324.7-4041_daily_bin1602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/861513/Model_4FGL_J2324.7-4041_daily_bin1602.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/861513/ft1_filtered_4FGL_J2324.7-4041_daily_bin1602.fits.....................!
real 39.75
user 38.46
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7923       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.668       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3625       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    111.95       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2188       1.0000         .10000E-03   10000.    
    14 'norm      '    8.8981       1.0000         .10000E-03   10000.    
    15 'norm      '    .39999E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4857       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8270       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    108.92       1.0000         .10000E-03   10000.    
    21 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2758       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.878       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .83955       1.0000         .10000E-03   10000.    
    30 'Prefactor '    60.811       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3823       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .58358       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=   5149.408     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4399 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.156       -.11873E-05** at limit **
   2  Prefactor     .10000E-03    9.1090       -.86060E-07** at limit **
   3  Prefactor     9.8407        36.413       -.81211E-05   -.97625E-04
   4  Prefactor     .10000E-03    1.6812       -.12449E-06** at limit **
   5  Prefactor     .10000E-03    19.207       -.38751E-06** at limit **
   6  Prefactor     .10000E-03    2.7420       -.81919E-07** at limit **
   7  Prefactor     20.669        18.203       -.50936E-07    .53040E-05
   8  Prefactor     .10000E-03    4.8399       -.55683E-07** at limit **
   9  Prefactor     6.3627        13.406        .98714E-06    .15134E-03
  10  Prefactor     .10000E-03    4.2615       -.98410E-07** at limit **
  11  Prefactor     .10000E-03    18.933       -.29004E-06** at limit **
  12  Prefactor     111.96        81.085       -.15982E-05   -.29556E-04
  13  Prefactor     7.2175        10.500        .33142E-06    .20552E-03
  14  norm          8.8975        10.321        .76543E-07    .53350E-04
  15  norm          .10003E-03    8.8043       -.31531E-05** at limit **
  16  norm          .10000E-03    3.7374       -.85224E-07** at limit **
  17  norm          4.4874        11.555        .16526E-05    .27261E-03
  18  Prefactor     9.8249        6.7096       -.91413E-07    .29369E-03
  19  Prefactor     .10000E-03    22.389       -.13511E-06** at limit **
  20  Prefactor     108.91        73.880        .50455E-06    .36414E-04
  21  norm          .10000E-03    3.0944       -.47352E-06** at limit **
  22  Prefactor     .10000E-03    34.321       -.65587E-06** at limit **
  23  norm          1.2754        1.1788       -.36959E-07    .57419E-03
  24  norm          .10000E-03    3.5295       -.11285E-06** at limit **
  25  Prefactor     .10000E-03    1.6871        .39880E-07** at limit **
  26  Prefactor     34.886        31.460       -.38938E-06   -.33161E-04
  27  Prefactor     .10000E-03    28.543        .11488E-05** at limit **
  28  Prefactor     .10000E-03    2.5784       -.35985E-07** at limit **
  29  Prefactor     .83681        5.2157        .10276E-05   -.58169E-04
  30  Prefactor     60.812        63.389       -.16162E-07   -.42666E-07
  31  Normalizat    1.3821        .20765       -.80796E-06    .10188E-03
  32  Prefactor     .58378        .20698        .16614E-05    .12186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.84073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6693
  Prefactor  = 0.0001
  Prefactor  = 6.3627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.962
  Prefactor  = 7.2175
  norm       = 8.89749
  norm       = 0.000100029
  norm       = 0.0001
  norm       = 4.48739
  Prefactor  = 9.82493
  Prefactor  = 0.0001
  Prefactor  = 108.912
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27545
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.8856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.836813
  Prefactor  = 60.8124
  Normalizat = 1.38208
  Prefactor  = 0.583778
 **********
 **   18 **HESSE 
 **********

 FCN=   5149.408     FROM HESSE     STATUS=OK           653 CALLS     5052 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    83.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.1126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8407        37.131        .12806E-03   -1.5080    
   4  Prefactor     .10000E-03    1.7305        .18170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7545        .11604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.669        18.199        .88103E-04   -1.4798    
   8  Prefactor     .10000E-03    4.8427        .15419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3627        13.505        .79563E-03   -1.5203    
  10  Prefactor     .10000E-03    4.2932        .14464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     111.96        81.426        .38020E-04   -1.3588    
  13  Prefactor     7.2175        10.526        .74646E-03   -1.5171    
  14  norm          8.8975        10.325        .67184E-03   -1.5111    
  15  norm          .10003E-03    16.715        .30733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8096        .13540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4874        11.886        .95053E-03   -1.5284    
  18  Prefactor     9.8249        6.6085        .12783E-03   -1.5081    
  19  Prefactor     .10000E-03    22.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     108.91        74.081        .38538E-04   -1.3617    
  21  norm          .10000E-03    6.5016        .24115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2754        1.1412        .68218E-04   -1.5482    
  24  norm          .10000E-03    3.6466        .26251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.6948        .90751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     34.886        31.071        .67856E-04   -1.4526    
  27  Prefactor     .10000E-03    28.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.5840        .11250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .83681        9.3216        .28340E-02   -1.5525    
  30  Prefactor     60.812        63.517        .51453E-04   -1.4147    
  31  Normalizat    1.3821        .24494        .21165E-03   -.81148    
  32  Prefactor     .58378        .24313        .32895E-03   -1.0827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61552e-08
Minuit parameter uncertainties:
  1  0.000152805
  2  8.2814e-06
  3  37.2183
  4  5.7775e-06
  5  3.57497e-05
  6  4.93335e-06
  7  18.2035
  8  3.11788e-06
  9  13.511
  10  8.66823e-06
  11  2.90316e-05
  12  81.5074
  13  10.5288
  14  10.3267
  15  0.00140353
  16  5.37343e-06
  17  11.892
  18  6.60894
  19  1.86634e-05
  20  74.1445
  21  8.65598e-06
  22  1.48873e-05
  23  1.14118
  24  7.09871e-06
  25  3.58001e-06
  26  31.0855
  27  9.39208e-05
  28  2.38973e-06
  29  5.58661
  30  63.5877
  31  0.245148
  32  0.243567
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  5.373e-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:  5.838e-01  2.436e-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.382e+00  2.451e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/861513/likelihoodResults_654566401_654825601_4FGL_J2324.7-4041_daily_bin1602.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) = 5149.40915392
delta logL = -0.00124475428674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5149.40790918
delta logL = -1.53177097673e-08

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.6222       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58378       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=   5149.408     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    185.24        .13541E-02** at limit **
   2  alpha         1.6162        4.1012        .50000        .74913E-06
   3  Normalizat    1.3821        .34309E-01    .21165E-03    .11817E-05
   4  Prefactor     .58378        .36281E-01    .32895E-03   -.31105E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  alpha      = 1.61623
  Normalizat = 1.38208
  Prefactor  = 0.583777
 **********
 **   18 **HESSE 
 **********

 FCN=   5149.408     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    652.49        .27082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6162        3.2774        .50000       -.36132    
   3  Normalizat    1.3821        .86556E-01    .84662E-05   -.81148    
   4  Prefactor     .58378        .91510E-01    .13158E-04   -1.0827    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20294e-09
Minuit parameter uncertainties:
  1  0.00393299
  2  1546.19
  3  0.0865648
  4  0.0915333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861513': 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) = 5149.40790917
delta logL = 2.67846189672e-09

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.933e-03  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.616e+00  1.546e+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:  5.838e-01  9.153e-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:  1.382e+00  8.656e-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/861513/cmap_HighResolution_654566401_654825601_4FGL_J2324.7-4041_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-05', job_status='DONE', photon_flux_upper_limit='3.03e-08', time_completed='2021-10-02 00:34:17.371157', job_id='861513', GAL2='0.58', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1633160057.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='2.68e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1602' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:34:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 861513: <4FGL_J2324.7-4041_daily_bin1602> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:20:17 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:20:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:20:19 2021
Terminated at Sat Oct  2 00:34:17 2021
Results reported at Sat Oct  2 00:34:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1602 351.182 -40.6834 654566401 654825601 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 :                                   821.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

