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


Performing analysis on: 4FGL_J2324.7+0801_daily_bin1623
RA = 351.19, Dec = 8.0282
tmin = 660009601, tmax = 660268801
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='500250', job_status='RUN', time_executed='2021-12-08 09:29:47.000417', time_epoch_executed='1638984587.0' WHERE source_name='4FGL J2324.7+0801' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500250/ft1_4FGL_J2324.7+0801_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500250/ft2_4FGL_J2324.7+0801_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500250/ft1_4FGL_J2324.7+0801_daily_bin1623.fits outfile=/scratch/kocevski/500250/ft1_filteredMKT_4FGL_J2324.7+0801_daily_bin1623.fits ra=351.19 dec=8.0282 rad=12.0 tmin=660009601.0 tmax=660268801.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 4.84
user 4.59
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500250/ft1_filtered_4FGL_J2324.7+0801_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/500250/ft2_4FGL_J2324.7+0801_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/500250/ltcube_660009601_660268801_4FGL_J2324.7+0801_daily_bin1623.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/500250/ft2_4FGL_J2324.7+0801_daily_bin1623.fits
.....................!
real 12.85
user 12.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500250/ft1_filtered_4FGL_J2324.7+0801_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/500250/ft2_4FGL_J2324.7+0801_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/500250/ltcube_660009601_660268801_4FGL_J2324.7+0801_daily_bin1623.fits outfile=/scratch/kocevski/500250/expmap_660009601_660268801_4FGL_J2324.7+0801_daily_bin1623.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/500250/ltcube_660009601_660268801_4FGL_J2324.7+0801_daily_bin1623.fits
.....................!
real 192.91
user 186.33
sys 5.21

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/500250/ft1_filtered_4FGL_J2324.7+0801_daily_bin1623.fits scfile=/scratch/kocevski/500250/ft2_4FGL_J2324.7+0801_daily_bin1623.fits outfile=/scratch/kocevski/500250/cmap_660009601_660268801_4FGL_J2324.7+0801_daily_bin1623.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500250/ft1_filtered_4FGL_J2324.7+0801_daily_bin1623.fits scfile=/scratch/kocevski/500250/ft2_4FGL_J2324.7+0801_daily_bin1623.fits outfile=/scratch/kocevski/500250/cmap_HighResolution_660009601_660268801_4FGL_J2324.7+0801_daily_bin1623.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/500250/ft1_filtered_4FGL_J2324.7+0801_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/500250/ft2_4FGL_J2324.7+0801_daily_bin1623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500250/Model_4FGL_J2324.7+0801_daily_bin1623.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/500250/ft1_filtered_4FGL_J2324.7+0801_daily_bin1623.fits.....................!
real 73.49
user 72.10
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2462       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .77984       1.0000         .10000E-03   10000.    
     3 'norm      '    11.911       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.761       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6788       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4279       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8896       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.483       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.475       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0696       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5575       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.3712       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2473       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84690       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=   6839.034     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2874 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2472        18.337        .35053E-05   -.11929E-03
   2  Prefactor     .77985        .17767       -.22055E-07   -.61630E-04
   3  norm          11.909        17.429        .38912E-06   -.44437E-04
   4  Prefactor     37.758        33.500       -.12075E-07   -.82354E-04
   5  Prefactor     .10000E-03    2.3415        .70312E-08** at limit **
   6  Prefactor     .10000E-03    2.6402        .21169E-08** at limit **
   7  Prefactor     .10003E-03    42.162        .98663E-05** at limit **
   8  Prefactor     5.6789        5.9307       -.25238E-06   -.32234E-05
   9  norm          .10000E-03    .22332        .88879E-08** at limit **
  10  Prefactor     6.4297        7.5142        .87135E-07   -.16077E-03
  11  Prefactor     3.8890        12.377        .77007E-05   -.30665E-03
  12  Prefactor     .10000E-03    18.242       -.19103E-05** at limit **
  13  norm          .10000E-03    13.829        .14741E-05** at limit **
  14  Prefactor     13.485        8.2836        .20765E-06   -.23064E-03
  15  Prefactor     .10005E-03    57.099       -.91661E-05** at limit **
  16  Prefactor     .10000E-03    4.5632        .95411E-08** at limit **
  17  Prefactor     .10000E-03    12.040       -.56680E-06** at limit **
  18  norm          .10000E-03    20.985       -.47268E-07** at limit **
  19  norm          17.475        20.750        .14825E-06    .13840E-04
  20  Prefactor     .10000E-03    2.3182        .13106E-07** at limit **
  21  Prefactor     5.0622        82.746       -.18049E-05   -.47123E-04
  22  Prefactor     5.5543        31.345       -.57883E-07   -.34300E-04
  23  Prefactor     5.3712        7.2966        .31463E-05   -.49749E-03
  24  Normalizat    1.2473        .21178        .30586E-06   -.18026E-03
  25  Prefactor     .84684        .12490       -.80288E-06   -.10900E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24716
  Prefactor  = 0.779848
  norm       = 11.9091
  Prefactor  = 37.7583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 5.67888
  norm       = 0.0001
  Prefactor  = 6.42965
  Prefactor  = 3.889
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Prefactor  = 13.4855
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.4748
  Prefactor  = 0.0001
  Prefactor  = 5.06215
  Prefactor  = 5.55432
  Prefactor  = 5.37122
  Normalizat = 1.24732
  Prefactor  = 0.846841
 **********
 **   18 **HESSE 
 **********

 FCN=   6839.034     FROM HESSE     STATUS=OK           427 CALLS     3301 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2472        18.410        .74503E-03   -1.5169    
   2  Prefactor     .77985        .17792        .15701E-04   -1.5531    
   3  norm          11.909        17.456        .11607E-03   -1.5018    
   4  Prefactor     37.758        33.590        .65222E-04   -1.4478    
   5  Prefactor     .10000E-03    2.3572        .12356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6424        .13123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    45.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.6789        5.9262        .16856E-03   -1.5231    
   9  norm          .10000E-03    .22464        .38160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4297        7.5064        .15830E-03   -1.5201    
  11  Prefactor     3.8890        12.550        .10229E-02   -1.5314    
  12  Prefactor     .10000E-03    18.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    14.202        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.485        8.3102        .10909E-03   -1.4973    
  15  Prefactor     .10005E-03    60.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5694        .17235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    21.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.475        20.676        .95809E-04   -1.4872    
  20  Prefactor     .10000E-03    2.3486        .12262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.0622        82.894        .17858E-03   -1.5258    
  22  Prefactor     5.5543        31.274        .17042E-03   -1.5237    
  23  Prefactor     5.3712        7.3631        .86700E-03   -1.5244    
  24  Normalizat    1.2473        .25077        .28512E-03   -.85153    
  25  Prefactor     .84684        .14652        .21325E-03   -.98024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.583e-09
Minuit parameter uncertainties:
  1  18.424
  2  0.177916
  3  17.4638
  4  33.6072
  5  1.54642e-06
  6  5.1852e-07
  7  0.00237881
  8  5.92681
  9  5.94158e-08
  10  7.50745
  11  12.5584
  12  0.000407804
  13  0.00025217
  14  8.31089
  15  0.00358845
  16  8.81459e-07
  17  8.98112e-05
  18  2.91111e-05
  19  20.6844
  20  3.94886e-07
  21  41.0363
  22  26.3805
  23  7.36439
  24  0.251018
  25  0.146587
Done.

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

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  6.430e+00  7.507e+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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.468e-01  1.466e-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.247e+00  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 351.190 8.028
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.31e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 9.88e-06 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/500250/likelihoodResults_660009601_660268801_4FGL_J2324.7+0801_daily_bin1623.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): 0
logL (Free Index) = 6838.78584896
delta logL = 0.247721531326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6838.77349573
delta logL = 0.260074764446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0059       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0321       1.0000          .0000       10.000    
     3 'Normalizat'    1.2064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86059       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.

 FCN=   6838.773     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      330 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0061        10.836        .11780E-03    .43622E-03
   2  Index         3.0315        1.9211        .63379E-02    .12015E-03
   3  Normalizat    1.2067        .24700        .28898E-03    .42174E-04
   4  Prefactor     .86044        .14948        .21166E-03    .11559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.00615
  Index      = 3.03154
  Normalizat = 1.20672
  Prefactor  = 0.860444
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.773     FROM HESSE     STATUS=OK            25 CALLS      355 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0061        5.7170        .47119E-05   -1.5361    
   2  Index         3.0315        1.0343        .25352E-03   -.40464    
   3  Normalizat    1.2067        .23748        .11559E-04   -.86395    
   4  Prefactor     .86044        .14658        .84663E-05   -.97537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16556e-10
Minuit parameter uncertainties:
  1  5.718
  2  1.04323
  3  0.237694
  4  0.146648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500250': 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) = 6838.77349475
delta logL = 0.260075745763

Extracting fit parameters...

4FGL J2324.7+0801
   Spectrum: PowerLaw
404    Prefactor:  3.006e+00  5.718e+00  1.000e-04  1.000e+04 ( 1.000e-13)
405        Index:  3.032e+00  1.043e+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:  8.604e-01  1.466e-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.207e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 351.190 8.028
Photon Index (Free Index): 3.03 +/- 1.04
Photon Flux (Free Index): 5.89e-08 +/- 6.36e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.02e-05

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/500250/cmap_HighResolution_660009601_660268801_4FGL_J2324.7+0801_daily_bin1623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', comment='SUCCESS', photon_flux='2.31e-08', energy_flux2='1.16e-05', photon_flux_error='2.70e-08', dlogl='2.60e-01', energy_flux='9.88e-06', photon_flux2='5.89e-08', job_status='DONE', time_completed='2021-12-08 09:42:04.789107', photon_index_error2='1.04', photon_index2='3.03', ts='1.56', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='9.74e-08', energy_flux_error2='1.02e-05', EG='1.25', time_epoch_completed='1638985324.79', return_code='0', job_id='500250', GAL2='0.86', EG2='1.21', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='6.36e-08', ts2='2.10', photon_index='2.23' WHERE bin_id='1623' AND source_name='4FGL J2324.7+0801' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:42:04 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 500250: <4FGL_J2324.7+0801_daily_bin1623> in cluster <slac> Done

Job <4FGL_J2324.7+0801_daily_bin1623> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 09:25:35 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:27:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:27:10 2021
Terminated at Wed Dec  8 09:42:05 2021
Results reported at Wed Dec  8 09:42:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7+0801_daily_bin1623 351.19 8.0282 660009601 660268801 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            990 sec.

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

