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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin503
RA = 351.19, Dec = 8.0282
tmin = 369705601, tmax = 369964801
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='839358', job_status='RUN', time_executed='2021-09-29 16:13:06.513434', time_epoch_executed='1632957186.51' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/839358

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/839358/ft1_4FGL_J2324.7+0801_daily_bin503.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/839358/ft2_4FGL_J2324.7+0801_daily_bin503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/839358/ft1_4FGL_J2324.7+0801_daily_bin503.fits outfile=/scratch/kocevski/839358/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin503.fits ra=351.19 dec=8.0282 rad=12.0 tmin=369705601.0 tmax=369964801.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.80
user 3.54
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/839358/ft1_filtered_4FGL_J2324.7+0801_daily_bin503.fits" evtable="EVENTS" scfile=/scratch/kocevski/839358/ft2_4FGL_J2324.7+0801_daily_bin503.fits sctable="SC_DATA" outfile=/scratch/kocevski/839358/ltcube_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.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/839358/ft2_4FGL_J2324.7+0801_daily_bin503.fits
.....................!
real 11.56
user 11.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/839358/ft1_filtered_4FGL_J2324.7+0801_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/839358/ft2_4FGL_J2324.7+0801_daily_bin503.fits sctable="SC_DATA" expcube=/scratch/kocevski/839358/ltcube_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.fits outfile=/scratch/kocevski/839358/expmap_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.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/839358/ltcube_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.fits
.....................!
real 190.26
user 185.65
sys 4.28

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/839358/ft1_filtered_4FGL_J2324.7+0801_daily_bin503.fits scfile=/scratch/kocevski/839358/ft2_4FGL_J2324.7+0801_daily_bin503.fits outfile=/scratch/kocevski/839358/cmap_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/839358/ft1_filtered_4FGL_J2324.7+0801_daily_bin503.fits scfile=/scratch/kocevski/839358/ft2_4FGL_J2324.7+0801_daily_bin503.fits outfile=/scratch/kocevski/839358/cmap_HighResolution_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/839358/ft1_filtered_4FGL_J2324.7+0801_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/839358/ft2_4FGL_J2324.7+0801_daily_bin503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/839358/Model_4FGL_J2324.7+0801_daily_bin503.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/839358/ft1_filtered_4FGL_J2324.7+0801_daily_bin503.fits.....................!
real 78.93
user 77.04
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/839358/ft1_filtered_4FGL_J2324.7+0801_daily_bin503.fits', '/scratch/kocevski/839358/ft2_4FGL_J2324.7+0801_daily_bin503.fits', expMap='/scratch/kocevski/839358/expmap_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.fits', expCube='/scratch/kocevski/839358/ltcube_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/839358/Model_4FGL_J2324.7+0801_daily_bin503.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/839358/ft1_filtered_4FGL_J2324.7+0801_daily_bin503.fits
Spacecraft file(s): /scratch/kocevski/839358/ft2_4FGL_J2324.7+0801_daily_bin503.fits
Exposure map: /scratch/kocevski/839358/expmap_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.fits
Exposure cube: /scratch/kocevski/839358/ltcube_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/839358/Model_4FGL_J2324.7+0801_daily_bin503.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) = 7430.0037378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5595       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49908       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.744       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5161       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6880       1.0000         .10000E-03   10000.    
     9 'norm      '    3.5601       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.946       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4835       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1621       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    26.698       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11643E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    60.728       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1710       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80279       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=   7429.996     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2891 TOTAL
                     EDM=   .73E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4946        34.227        .63493E-05    .10015E-05
   2  Prefactor     .49918        .22113       -.71593E-07    .16544E-03
   3  norm          .10000E-03    4.0694       -.58353E-08** at limit **
   4  Prefactor     11.736        25.556        .48528E-06    .24116E-06
   5  Prefactor     8.5177        8.8650        .20966E-06   -.89624E-05
   6  Prefactor     .10000E-03    7.8900        .93585E-07** at limit **
   7  Prefactor     .10000E-03    7.4353        .32151E-07** at limit **
   8  Prefactor     4.6871        6.5703        .10143E-05    .29423E-04
   9  norm          3.5603        1.1259        .17002E-07   -.72309E-04
  10  Prefactor     .10000E-03    4.2577        .13207E-09** at limit **
  11  Prefactor     .10000E-03    6.3035        .91499E-07** at limit **
  12  Prefactor     10.943        25.755        .30737E-06   -.13272E-05
  13  norm          4.4851        6.8440       -.58820E-07    .75761E-05
  14  Prefactor     5.1630        5.7331        .62402E-06    .36825E-04
  15  Prefactor     .10000E-03    45.124        .19657E-05** at limit **
  16  Prefactor     .10000E-03    5.7286        .20916E-06** at limit **
  17  Prefactor     .10000E-03    6.9079       -.14402E-06** at limit **
  18  norm          .10000E-03    53.871       -.23028E-05** at limit **
  19  norm          26.705        20.008        .30344E-06   -.36014E-04
  20  Prefactor     .10000E-03    2.9450        .30631E-06** at limit **
  21  Prefactor     60.736        43.329       -.12285E-06   -.12659E-04
  22  Prefactor     .10000E-03    11.828       -.40854E-07** at limit **
  23  Prefactor     .10000E-03    5.5492       -.23023E-08** at limit **
  24  Normalizat    1.1705        .19979       -.67060E-06   -.89994E-05
  25  Prefactor     .80314        .11958        .83553E-07   -.80093E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.4946
  Prefactor  = 0.499176
  norm       = 0.0001
  Prefactor  = 11.7363
  Prefactor  = 8.51769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.6871
  norm       = 3.56032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9435
  norm       = 4.4851
  Prefactor  = 5.16304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.7045
  Prefactor  = 0.0001
  Prefactor  = 60.736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1705
  Prefactor  = 0.803139
 **********
 **   18 **HESSE 
 **********

 FCN=   7429.996     FROM HESSE     STATUS=OK           429 CALLS     3320 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4946        34.355        .14586E-03   -1.5160    
   2  Prefactor     .49918        .21897        .22776E-04   -1.5567    
   3  norm          .10000E-03    4.0758        .16982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.736        25.568        .11690E-03   -1.5023    
   5  Prefactor     8.5177        8.8471        .68683E-03   -1.5124    
   6  Prefactor     .10000E-03    7.9676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6871        6.5795        .92930E-03   -1.5275    
   9  norm          3.5603        1.1249        .49688E-04   -1.5331    
  10  Prefactor     .10000E-03    4.3017        .17361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.943        25.748        .12109E-03   -1.5046    
  13  norm          4.4851        6.8155        .19015E-03   -1.5284    
  14  Prefactor     5.1630        5.7247        .88470E-03   -1.5253    
  15  Prefactor     .10000E-03    45.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    55.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          26.705        19.360        .77532E-04   -1.4674    
  20  Prefactor     .10000E-03    5.5414        .27291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     60.736        43.615        .51488E-04   -1.4148    
  22  Prefactor     .10000E-03    11.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.6026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1705        .23367        .29168E-03   -.87519    
  25  Prefactor     .80314        .14065        .21349E-03   -.99613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78502e-11
Minuit parameter uncertainties:
  1  32.1226
  2  0.21897
  3  3.63811e-07
  4  25.5919
  5  8.84841
  6  4.04607e-06
  7  7.26913e-07
  8  6.58049
  9  1.12491
  10  4.24324e-07
  11  5.9536e-07
  12  25.7739
  13  6.81663
  14  5.72526
  15  2.54571e-05
  16  3.97714e-06
  17  3.19346e-07
  18  8.1251e-05
  19  19.3646
  20  5.20803e-05
  21  43.6379
  22  4.10721e-06
  23  1.35909e-06
  24  0.233875
  25  0.140709
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  4.243e-07  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:  8.031e-01  1.407e-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:  1.171e+00  2.339e-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: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/839358/likelihoodResults_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.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) = 7429.99713926
delta logL = -0.0011069611237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7429.99603227
delta logL = 2.11239239434e-08

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 'Index     '    2.2193       1.0000          .0000       10.000    
     3 'Normalizat'    1.1705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80315       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=   7429.996     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10101E-03    171.69        .17417E-02** at limit **
   2  Index         2.0701        6.7067        .50000        .70287E-05
   3  Normalizat    1.1705        .32094E-01    .29168E-03   -.28804E-04
   4  Prefactor     .80314        .19947E-01    .21348E-03   -.27532E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7429.996     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      391 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10101E-03    171.69        .30876E-03** at limit **
   2  Index         2.0701        6.7067        .48360E-04    .70287E-05
   3  Normalizat    1.1705        .32094E-01    .74472E-06   -.28804E-04
   4  Prefactor     .80314        .19947E-01    .35492E-06   -.27532E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7429.996     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      430 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    967.11        .34833E-03** at limit **
   2  Index         1.9612        5.2146        .50000        .14220E-06
   3  Normalizat    1.1705        .13751        .11667E-04    .13739E-03
   4  Prefactor     .80314        .84398E-01    .85394E-05    .19464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96125
  Normalizat = 1.1705
  Prefactor  = 0.80314
 **********
 **   18 **HESSE 
 **********

 FCN=   7429.996     FROM HESSE     STATUS=OK            29 CALLS      459 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8123        .69666E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9612        8.6933        .50000       -.65323    
   3  Normalizat    1.1705        .22282        .23334E-05   -.87519    
   4  Prefactor     .80314        .13862        .17079E-05   -.99613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46782e-11
Minuit parameter uncertainties:
  1  9.22986e-06
  2  188.705
  3  0.223004
  4  0.138679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/839358': 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) = 7429.99603174
delta logL = 5.52632627659e-07

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  1.000e-04  9.230e-06  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  1.961e+00  1.887e+02  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:  8.031e-01  1.387e-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:  1.171e+00  2.230e-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/839358/cmap_HighResolution_369705601_369964801_4FGL_J2324.7+0801_daily_bin503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-29 16:25:30.103354', job_id='839358', GAL2='0.80', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632957930.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='503' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:25:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 839358: <4FGL_J2324.7+0801_daily_bin503> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin503 351.19 8.0282 369705601 369964801 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 :                                   742.00 sec.
    Max Memory :                                 1193 MB
    Average Memory :                             330.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

