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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin1006
RA = 351.182, Dec = -40.6834
tmin = 500083201, tmax = 500342401
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='851711', job_status='RUN', time_executed='2021-09-29 16:48:40.419915', time_epoch_executed='1632959320.42' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851711/ft1_4FGL_J2324.7-4041_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851711/ft2_4FGL_J2324.7-4041_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851711/ft1_4FGL_J2324.7-4041_daily_bin1006.fits outfile=/scratch/kocevski/851711/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin1006.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=500083201.0 tmax=500342401.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.62
user 5.35
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851711/ft1_filtered_4FGL_J2324.7-4041_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/851711/ft2_4FGL_J2324.7-4041_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/851711/ltcube_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.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/851711/ft2_4FGL_J2324.7-4041_daily_bin1006.fits
.....................!
real 12.10
user 11.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851711/ft1_filtered_4FGL_J2324.7-4041_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/851711/ft2_4FGL_J2324.7-4041_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/851711/ltcube_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.fits outfile=/scratch/kocevski/851711/expmap_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.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/851711/ltcube_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.fits
.....................!
real 190.33
user 185.58
sys 4.43

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/851711/ft1_filtered_4FGL_J2324.7-4041_daily_bin1006.fits scfile=/scratch/kocevski/851711/ft2_4FGL_J2324.7-4041_daily_bin1006.fits outfile=/scratch/kocevski/851711/cmap_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851711/ft1_filtered_4FGL_J2324.7-4041_daily_bin1006.fits scfile=/scratch/kocevski/851711/ft2_4FGL_J2324.7-4041_daily_bin1006.fits outfile=/scratch/kocevski/851711/cmap_HighResolution_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851711/ft1_filtered_4FGL_J2324.7-4041_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/851711/ft2_4FGL_J2324.7-4041_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851711/Model_4FGL_J2324.7-4041_daily_bin1006.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/851711/ft1_filtered_4FGL_J2324.7-4041_daily_bin1006.fits.......................!
real 24.38
user 23.19
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/851711/ft1_filtered_4FGL_J2324.7-4041_daily_bin1006.fits', '/scratch/kocevski/851711/ft2_4FGL_J2324.7-4041_daily_bin1006.fits', expMap='/scratch/kocevski/851711/expmap_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.fits', expCube='/scratch/kocevski/851711/ltcube_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/851711/Model_4FGL_J2324.7-4041_daily_bin1006.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/851711/ft1_filtered_4FGL_J2324.7-4041_daily_bin1006.fits
Spacecraft file(s): /scratch/kocevski/851711/ft2_4FGL_J2324.7-4041_daily_bin1006.fits
Exposure map: /scratch/kocevski/851711/expmap_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.fits
Exposure cube: /scratch/kocevski/851711/ltcube_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/851711/Model_4FGL_J2324.7-4041_daily_bin1006.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1833.61270692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.312       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5867       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0737       1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.531       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5136       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13247E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9516       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    91.502       1.0000         .10000E-03   10000.    
    13 'Prefactor '    123.95       1.0000         .10000E-03   10000.    
    14 'norm      '    31.566       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.525       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22776E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.082       1.0000         .10000E-03   10000.    
    21 'norm      '    8.2784       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.715       1.0000         .10000E-03   10000.    
    23 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.5644       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.3489       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    29.240       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.7086       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .69835       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .78061       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=   1833.168     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     5016 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.199        414.71        .34926E-04   -.55527E-05
   2  Prefactor     .10000E-03    20.054       -.49749E-06** at limit **
   3  Prefactor     .10000E-03    24.475       -.21974E-05** at limit **
   4  Prefactor     8.5836        7.8992       -.26204E-06   -.18607E-06
   5  Prefactor     .10000E-03    34.353        .24106E-05** at limit **
   6  Prefactor     1.0701        26.210        .18802E-04   -.51759E-04
   7  Prefactor     38.541        45.516        .15718E-06   -.20404E-04
   8  Prefactor     4.4984        102.62        .92206E-05   -.43559E-06
   9  Prefactor     .10016E-03    28.918        .15050E-05** at limit **
  10  Prefactor     3.9493        11.370        .30390E-06   -.19007E-04
  11  Prefactor     .10000E-03    81.076       -.41811E-05** at limit **
  12  Prefactor     91.776        152.98       -.24745E-04   -.67624E-05
  13  Prefactor     123.94        54.309        .14921E-05   -.72444E-05
  14  norm          31.563        28.339       -.10500E-06   -.38134E-04
  15  norm          .10000E-03    6.3883       -.81758E-07** at limit **
  16  norm          .10000E-03    7.2222       -.15424E-06** at limit **
  17  norm          24.521        27.373        .14780E-05   -.34709E-04
  18  Prefactor     .10000E-03    19.491        .32725E-06** at limit **
  19  Prefactor     .10000E-03    485.94        .45197E-04** at limit **
  20  Prefactor     23.130        204.07       -.36028E-05   -.41963E-05
  21  norm          8.2723        11.231       -.53028E-06   -.35504E-03
  22  Prefactor     23.711        35.870       -.32232E-06   -.44306E-04
  23  norm          .10000E-03    1.4514       -.39794E-06** at limit **
  24  norm          4.5680        15.151       -.23244E-05   -.25048E-03
  25  Prefactor     6.3485        8.9010        .35148E-06    .55953E-05
  26  Prefactor     .10000E-03    41.941       -.69673E-08** at limit **
  27  Prefactor     .10000E-03    101.52        .47423E-05** at limit **
  28  Prefactor     29.239        18.414        .16799E-06   -.10204E-04
  29  Prefactor     7.7065        11.614        .16434E-06   -.46675E-04
  30  Prefactor     .10000E-03    75.734       -.54937E-05** at limit **
  31  Normalizat    .69849        .40150       -.59775E-05   -.10612E-03
  32  Prefactor     .78065        .34145        .35713E-05   -.11830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.58359
  Prefactor  = 0.0001
  Prefactor  = 1.07014
  Prefactor  = 38.5412
  Prefactor  = 4.4984
  Prefactor  = 0.000100157
  Prefactor  = 3.94926
  Prefactor  = 0.0001
  Prefactor  = 91.7763
  Prefactor  = 123.939
  norm       = 31.5632
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.5212
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 23.1301
  norm       = 8.27231
  Prefactor  = 23.711
  norm       = 0.0001
  norm       = 4.56802
  Prefactor  = 6.34845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2394
  Prefactor  = 7.7065
  Prefactor  = 0.0001
  Normalizat = 0.698493
  Prefactor  = 0.780646
 **********
 **   18 **HESSE 
 **********

 FCN=   1833.168     FROM HESSE     STATUS=OK           661 CALLS     5677 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.199        424.95        .88870E-04   -1.4809    
   2  Prefactor     .10000E-03    20.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5836        7.9100        .10499E-03   -1.5122    
   5  Prefactor     .10000E-03    34.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0701        26.383        .20200E-02   -1.5501    
   7  Prefactor     38.541        45.379        .64570E-04   -1.4466    
   8  Prefactor     4.4984        102.87        .18950E-03   -1.5284    
   9  Prefactor     .10016E-03    140.83        .42851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9493        11.336        .20292E-03   -1.5310    
  11  Prefactor     .10000E-03    81.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     91.776        153.53        .21005E-03   -1.3789    
  13  Prefactor     123.94        54.576        .18076E-03   -1.3477    
  14  norm          31.563        28.342        .71317E-04   -1.4584    
  15  norm          .10000E-03    6.3900        .10570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.2240        .11230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.521        27.338        .80887E-04   -1.4717    
  18  Prefactor     .10000E-03    19.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    489.11        .20109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.130        208.94        .83374E-04   -1.4746    
  21  norm          8.2723        11.139        .13934E-03   -1.5133    
  22  Prefactor     23.711        35.749        .82255E-04   -1.4734    
  23  norm          .10000E-03    1.4700        .50245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.5680        15.078        .18842E-03   -1.5280    
  25  Prefactor     6.3485        8.9038        .14237E-03   -1.5204    
  26  Prefactor     .10000E-03    41.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    101.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     29.239        18.495        .74092E-04   -1.4626    
  29  Prefactor     7.7065        11.716        .14443E-03   -1.5153    
  30  Prefactor     .10000E-03    75.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .69849        .48206        .27787E-03   -1.0395    
  32  Prefactor     .78065        .40859        .26912E-03   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42493e-09
Minuit parameter uncertainties:
  1  186.825
  2  1.24422e-05
  3  3.8654e-05
  4  7.91101
  5  7.15843e-05
  6  10.6317
  7  45.4192
  8  43.1062
  9  0.00943558
  10  11.3422
  11  0.000202899
  12  154.202
  13  54.5986
  14  28.3544
  15  6.24254e-06
  16  3.32727e-08
  17  27.3518
  18  6.21729e-05
  19  0.00194672
  20  139.69
  21  11.1416
  22  35.7815
  23  1.2323e-05
  24  15.0909
  25  8.90566
  26  7.01472e-05
  27  8.12793e-05
  28  18.4991
  29  11.7195
  30  2.51551e-05
  31  0.485024
  32  0.410188
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  3.327e-08  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.806e-01  4.102e-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:  6.985e-01  4.850e-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: 8.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851711/likelihoodResults_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.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) = 1833.16883464
delta logL = -0.000617703662101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1833.16821693
delta logL = 1.1097654351e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6140       1.0000          .0000       5.0000    
     3 'Normalizat'    .69844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78069       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1833.168     FROM MIGRAD    STATUS=FAILED        94 CALLS      243 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    564.49        .11271E-02** at limit **
   2  alpha         1.4483        3.5124        .50000       -.24045E-07
   3  Normalizat    .69849        .72447E-01    .27789E-03    .96919E-04
   4  Prefactor     .78065        .74463E-01    .26912E-03    .11393E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1833.168     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      414 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    564.49        .39424E-03** at limit **
   2  alpha         1.4483        3.5124        .31476E-05   -.24045E-07
   3  Normalizat    .69849        .72447E-01    .11508E-06    .96919E-04
   4  Prefactor     .78065        .74463E-01    .79075E-07    .11393E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1833.168     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      448 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1672.9        .22542E-03** at limit **
   2  alpha         1.4512        4.1999        .50000        .79939E-07
   3  Normalizat    .69849        .27061        .11115E-04    .96653E-04
   4  Prefactor     .78065        .27816        .53825E-04    .11351E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.45122
  Normalizat = 0.698493
  Prefactor  = 0.780648
 **********
 **   18 **HESSE 
 **********

 FCN=   1833.168     FROM HESSE     STATUS=OK            29 CALLS      477 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.8802        .45084E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4512        4.2571        .50000       -.43291    
   3  Normalizat    .69849        .38317        .22231E-05   -1.0395    
   4  Prefactor     .78065        .39397        .10765E-04   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31377e-10
Minuit parameter uncertainties:
  1  0.000101546
  2  209.714
  3  0.384654
  4  0.395398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851711': 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) = 1833.1682167
delta logL = 2.3881625566e-07

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.000e-04  1.015e-04  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.451e+00  2.097e+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.806e-01  3.954e-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:  6.985e-01  3.847e-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/851711/cmap_HighResolution_500083201_500342401_4FGL_J2324.7-4041_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-04', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-09-29 16:57:24.971467', job_id='851711', GAL2='0.78', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632959844.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1006' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:57:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 851711: <4FGL_J2324.7-4041_daily_bin1006> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin1006> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:45:38 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:45:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:45:39 2021
Terminated at Wed Sep 29 16:57:25 2021
Results reported at Wed Sep 29 16:57:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin1006 351.182 -40.6834 500083201 500342401 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 :                                   515.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            707 sec.

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

