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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin625
RA = 351.19, Dec = 8.0282
tmin = 401328001, tmax = 401587201
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='840647', job_status='RUN', time_executed='2021-09-29 16:16:08.502381', time_epoch_executed='1632957368.5' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/840647

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/840647/ft1_4FGL_J2324.7+0801_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/840647/ft2_4FGL_J2324.7+0801_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/840647/ft1_4FGL_J2324.7+0801_daily_bin625.fits outfile=/scratch/kocevski/840647/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin625.fits ra=351.19 dec=8.0282 rad=12.0 tmin=401328001.0 tmax=401587201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.41
user 3.16
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/840647/ft2_4FGL_J2324.7+0801_daily_bin625.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/840647/ft2_4FGL_J2324.7+0801_daily_bin625.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/840647/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin625.fits evtable="EVENTS" outfile="/scratch/kocevski/840647/ft1_filtered_4FGL_J2324.7+0801_daily_bin625.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/840647/ft1_filtered_4FGL_J2324.7+0801_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/840647/ft2_4FGL_J2324.7+0801_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/840647/ltcube_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.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/840647/ft2_4FGL_J2324.7+0801_daily_bin625.fits
.....................!
real 11.87
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/840647/ft1_filtered_4FGL_J2324.7+0801_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/840647/ft2_4FGL_J2324.7+0801_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/840647/ltcube_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.fits outfile=/scratch/kocevski/840647/expmap_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.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/840647/ltcube_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.fits
.....................!
real 191.10
user 185.96
sys 4.73

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2324.7+0801 @ 351.19 8.0282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/840647/ft1_filtered_4FGL_J2324.7+0801_daily_bin625.fits scfile=/scratch/kocevski/840647/ft2_4FGL_J2324.7+0801_daily_bin625.fits outfile=/scratch/kocevski/840647/cmap_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.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.19 yref=8.0282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/840647/ft1_filtered_4FGL_J2324.7+0801_daily_bin625.fits scfile=/scratch/kocevski/840647/ft2_4FGL_J2324.7+0801_daily_bin625.fits outfile=/scratch/kocevski/840647/cmap_HighResolution_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.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.19 yref=8.0282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/840647/ft1_filtered_4FGL_J2324.7+0801_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/840647/ft2_4FGL_J2324.7+0801_daily_bin625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/840647/Model_4FGL_J2324.7+0801_daily_bin625.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/840647/ft1_filtered_4FGL_J2324.7+0801_daily_bin625.fits.....................!
real 91.47
user 89.88
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/840647/ft1_filtered_4FGL_J2324.7+0801_daily_bin625.fits', '/scratch/kocevski/840647/ft2_4FGL_J2324.7+0801_daily_bin625.fits', expMap='/scratch/kocevski/840647/expmap_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.fits', expCube='/scratch/kocevski/840647/ltcube_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/840647/Model_4FGL_J2324.7+0801_daily_bin625.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7+0801'

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/840647/ft1_filtered_4FGL_J2324.7+0801_daily_bin625.fits
Spacecraft file(s): /scratch/kocevski/840647/ft2_4FGL_J2324.7+0801_daily_bin625.fits
Exposure map: /scratch/kocevski/840647/expmap_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.fits
Exposure cube: /scratch/kocevski/840647/ltcube_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/840647/Model_4FGL_J2324.7+0801_daily_bin625.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) = 8511.73246236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4257       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9168       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.591       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9172       1.0000         .10000E-03   10000.    
     9 'norm      '    .71176       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.264       1.0000         .10000E-03   10000.    
    13 'norm      '    .10382E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7710       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.9108       1.0000         .10000E-03   10000.    
    19 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.674       1.0000         .10000E-03   10000.    
    21 'Prefactor '    48.290       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.637       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.814       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75728       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0944       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8511.635     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2971 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3490        .18241E-07** at limit **
   2  Prefactor     3.4257        .35032       -.57334E-08    .90807E-04
   3  norm          1.9149        18.990        .14494E-05   -.20395E-04
   4  Prefactor     .10000E-03    16.596        .67084E-08** at limit **
   5  Prefactor     1.5172        14.807        .20623E-05   -.11377E-04
   6  Prefactor     11.589        13.263       -.52268E-07    .98320E-05
   7  Prefactor     .10000E-03    16.711        .58155E-06** at limit **
   8  Prefactor     8.9154        8.9950        .16751E-06    .45610E-06
   9  norm          .71115        .71995        .46378E-06    .10632E-02
  10  Prefactor     .10000E-03    8.5307        .16565E-06** at limit **
  11  Prefactor     .10000E-03    9.4886       -.12525E-07** at limit **
  12  Prefactor     20.216        37.393        .15543E-05   -.98408E-05
  13  norm          .10000E-03    10.316        .22125E-07** at limit **
  14  Prefactor     1.7737        6.7731        .95735E-06    .18359E-05
  15  Prefactor     .10000E-03    129.72       -.36542E-07** at limit **
  16  Prefactor     .10000E-03    15.179        .15661E-05** at limit **
  17  Prefactor     .10000E-03    36.800        .63882E-06** at limit **
  18  norm          8.8631        18.893       -.44720E-06   -.16684E-05
  19  norm          .10000E-03    15.203        .51583E-06** at limit **
  20  Prefactor     10.676        4.7683        .97763E-07   -.41210E-03
  21  Prefactor     48.280        36.173        .54312E-06   -.29891E-04
  22  Prefactor     14.623        19.083        .23904E-06   -.13167E-04
  23  Prefactor     10.813        11.740        .18465E-06    .57201E-05
  24  Normalizat    .75766        .21974       -.30362E-05    .22485E-04
  25  Prefactor     1.0941        .13151        .88696E-06   -.23009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.42568
  norm       = 1.91492
  Prefactor  = 0.0001
  Prefactor  = 1.51719
  Prefactor  = 11.5888
  Prefactor  = 0.0001
  Prefactor  = 8.91539
  norm       = 0.711148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2157
  norm       = 0.0001
  Prefactor  = 1.77368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.86312
  norm       = 0.0001
  Prefactor  = 10.6762
  Prefactor  = 48.2796
  Prefactor  = 14.6233
  Prefactor  = 10.8133
  Normalizat = 0.757662
  Prefactor  = 1.09412
 **********
 **   18 **HESSE 
 **********

 FCN=   8511.635     FROM HESSE     STATUS=OK           431 CALLS     3402 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4257        .35001        .16420E-04   -1.5338    
   3  norm          1.9149        19.053        .15009E-02   -1.5431    
   4  Prefactor     .10000E-03    16.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5172        14.787        .17372E-02   -1.5462    
   6  Prefactor     11.589        13.252        .11767E-03   -1.5027    
   7  Prefactor     .10000E-03    16.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.9154        8.9823        .13422E-03   -1.5111    
   9  norm          .71115        .71218        .83683E-03   -1.5539    
  10  Prefactor     .10000E-03    8.6615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.216        37.317        .88975E-04   -1.4808    
  13  norm          .10000E-03    10.504        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7737        6.7908        .15733E-02   -1.5442    
  15  Prefactor     .10000E-03    129.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.092        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.8631        18.885        .13427E-03   -1.5112    
  19  norm          .10000E-03    15.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.676        4.7200        .61316E-03   -1.5054    
  21  Prefactor     48.280        36.164        .57704E-04   -1.4317    
  22  Prefactor     14.623        19.092        .10469E-03   -1.4943    
  23  Prefactor     10.813        11.744        .12184E-03   -1.5050    
  24  Normalizat    .75766        .23803        .37660E-03   -1.0166    
  25  Prefactor     1.0941        .14403        .20498E-03   -.89655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42064e-09
Minuit parameter uncertainties:
  1  1.44394e-07
  2  0.35001
  3  12.0854
  4  5.17793e-06
  5  9.4757
  6  13.2554
  7  2.44392e-05
  8  8.98366
  9  0.712188
  10  1.63124e-05
  11  7.01869e-06
  12  37.3602
  13  5.92301e-05
  14  6.79378
  15  0.0001086
  16  0.00013589
  17  5.99516e-05
  18  18.8979
  19  4.2954e-05
  20  4.72013
  21  36.1809
  22  19.1002
  23  11.7467
  24  0.238358
  25  0.144077
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  1.631e-05  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.094e+00  1.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  7.577e-01  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.190 8.028
Photon Flux Upper Limit: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/840647/likelihoodResults_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.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) = 8511.63586591
delta logL = -0.000550298707822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8511.63531549
delta logL = 1.21379343909e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11361E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2842       1.0000          .0000       10.000    
     3 'Normalizat'    .75772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0941       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+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=   8511.635     FROM MIGRAD    STATUS=FAILED        95 CALLS      249 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    1056.6        .36285E-03** at limit **
   2  Index         2.3651        5.9600        .50000       -.88165E-04
   3  Normalizat    .75766        .46918E-01    .37660E-03    .45463E-04
   4  Prefactor     1.0941        .30423E-01    .20499E-03    .26643E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8511.635     FROM SIMPLEX   STATUS=UNCHANGED    167 CALLS      416 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    1056.6        .50648E-03** at limit **
   2  Index         2.3651        5.9600        .66119E-05   -.88165E-04
   3  Normalizat    .75766        .46918E-01    .32231E-06    .45463E-04
   4  Prefactor     1.0941        .30423E-01    .86768E-07    .26643E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8511.635     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      450 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    6368.6        .72569E-04** at limit **
   2  Index         2.3659        5.2435        .50000       -.88372E-04
   3  Normalizat    .75766        .11842        .15064E-04    .41056E-04
   4  Prefactor     1.0941        .76786E-01    .40997E-04    .19079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100117
  Index      = 2.36591
  Normalizat = 0.75766
  Prefactor  = 1.09412
 **********
 **   18 **HESSE 
 **********

 FCN=   8511.635     FROM HESSE     STATUS=OK            29 CALLS      479 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    18.192        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3659        6.1689        .50000       -.55485    
   3  Normalizat    .75766        .21572        .30128E-05   -1.0166    
   4  Prefactor     1.0941        .14002        .81994E-05   -.89655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08781e-08
Minuit parameter uncertainties:
  1  0.00291758
  2  4.76831
  3  0.215966
  4  0.140069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/840647': 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) = 8511.63531328
delta logL = 2.32618913287e-06

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.001e-04  2.918e-03  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  2.366e+00  4.768e+00  0.000e+00  1.000e+01 (-1.000e+00)
406        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.094e+00  1.401e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
509   Normalization:  7.577e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.190 8.028

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/840647/cmap_HighResolution_401328001_401587201_4FGL_J2324.7+0801_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-29 16:30:02.019567', job_id='840647', GAL2='1.09', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632958202.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.33e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='625' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:30:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 840647: <4FGL_J2324.7+0801_daily_bin625> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin625> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 16:15:23 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:15:25 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:15:25 2021
Terminated at Wed Sep 29 16:30:02 2021
Results reported at Wed Sep 29 16:30:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin625 351.19 8.0282 401328001 401587201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7+0801 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   833.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

