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


Performing analysis on: 4FGL_J2324.6+3115_daily_bin935
RA = 351.17, Dec = 31.2573
tmin = 481680001, tmax = 481939201
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='834605', job_status='RUN', time_executed='2021-09-29 15:58:30.083861', time_epoch_executed='1632956310.08' WHERE source_name='4FGL J2324.6+3115' and cadence='daily' and bin_id='935'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834605

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834605/ft1_4FGL_J2324.6+3115_daily_bin935.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834605/ft2_4FGL_J2324.6+3115_daily_bin935.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834605/ft1_4FGL_J2324.6+3115_daily_bin935.fits outfile=/scratch/kocevski/834605/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin935.fits ra=351.17 dec=31.2573 rad=12.0 tmin=481680001.0 tmax=481939201.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.64
user 3.43
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/834605/ft2_4FGL_J2324.6+3115_daily_bin935.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834605/ft2_4FGL_J2324.6+3115_daily_bin935.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/834605/ft1_filteredMKT_4FGL_J2324.6+3115_daily_bin935.fits evtable="EVENTS" outfile="/scratch/kocevski/834605/ft1_filtered_4FGL_J2324.6+3115_daily_bin935.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834605/ft1_filtered_4FGL_J2324.6+3115_daily_bin935.fits" evtable="EVENTS" scfile=/scratch/kocevski/834605/ft2_4FGL_J2324.6+3115_daily_bin935.fits sctable="SC_DATA" outfile=/scratch/kocevski/834605/ltcube_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.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/834605/ft2_4FGL_J2324.6+3115_daily_bin935.fits
.....................!
real 12.04
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834605/ft1_filtered_4FGL_J2324.6+3115_daily_bin935.fits evtable="EVENTS" scfile=/scratch/kocevski/834605/ft2_4FGL_J2324.6+3115_daily_bin935.fits sctable="SC_DATA" expcube=/scratch/kocevski/834605/ltcube_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.fits outfile=/scratch/kocevski/834605/expmap_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.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/834605/ltcube_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.fits
.....................!
real 193.01
user 187.56
sys 5.13

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

Setting source of interest to:
4FGL J2324.6+3115 @ 351.17 31.2573

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/834605/ft1_filtered_4FGL_J2324.6+3115_daily_bin935.fits scfile=/scratch/kocevski/834605/ft2_4FGL_J2324.6+3115_daily_bin935.fits outfile=/scratch/kocevski/834605/cmap_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.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.17 yref=31.2573 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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834605/ft1_filtered_4FGL_J2324.6+3115_daily_bin935.fits scfile=/scratch/kocevski/834605/ft2_4FGL_J2324.6+3115_daily_bin935.fits outfile=/scratch/kocevski/834605/cmap_HighResolution_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.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.17 yref=31.2573 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/834605/ft1_filtered_4FGL_J2324.6+3115_daily_bin935.fits evtable="EVENTS" scfile=/scratch/kocevski/834605/ft2_4FGL_J2324.6+3115_daily_bin935.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/834605/Model_4FGL_J2324.6+3115_daily_bin935.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/834605/ft1_filtered_4FGL_J2324.6+3115_daily_bin935.fits.....................!
real 88.29
user 86.96
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834605/ft1_filtered_4FGL_J2324.6+3115_daily_bin935.fits', '/scratch/kocevski/834605/ft2_4FGL_J2324.6+3115_daily_bin935.fits', expMap='/scratch/kocevski/834605/expmap_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.fits', expCube='/scratch/kocevski/834605/ltcube_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834605/Model_4FGL_J2324.6+3115_daily_bin935.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.6+3115'

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.967e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/834605/ft1_filtered_4FGL_J2324.6+3115_daily_bin935.fits
Spacecraft file(s): /scratch/kocevski/834605/ft2_4FGL_J2324.6+3115_daily_bin935.fits
Exposure map: /scratch/kocevski/834605/expmap_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.fits
Exposure cube: /scratch/kocevski/834605/ltcube_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834605/Model_4FGL_J2324.6+3115_daily_bin935.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) = 7886.02460573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .89893       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.511       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .17592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.042       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .86645       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4679       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.411       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0854       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97498       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7885.956     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2193 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    38.677        .46627E-05** at limit **
   2  Prefactor     .10000E-03    3.1338       -.45419E-07** at limit **
   3  norm          .89888        1.2117       -.36043E-06   -.16326E-02
   4  Prefactor     .10000E-03    29.749       -.44696E-05** at limit **
   5  Prefactor     .10000E-03    6.0985       -.93163E-06** at limit **
   6  Prefactor     .10000E-03    8.8072       -.17761E-05** at limit **
   7  Prefactor     19.510        9.8610       -.22445E-06    .39806E-04
   8  Prefactor     .10000E-03    4.6488        .97817E-07** at limit **
   9  Prefactor     .10000E-03    8.1661       -.23588E-05** at limit **
  10  norm          .17587        .83657       -.82077E-06   -.77864E-03
  11  Prefactor     .10000E-03    32.373        .35774E-05** at limit **
  12  Prefactor     24.043        12.471       -.31269E-07    .14725E-03
  13  Prefactor     .10000E-03    12.893       -.17385E-05** at limit **
  14  norm          .10000E-03    2.7442       -.33787E-07** at limit **
  15  norm          .10000E-03    2.8853       -.19007E-07** at limit **
  16  Prefactor     .10000E-03    10.394        .39072E-05** at limit **
  17  norm          .86523        1.9364       -.59720E-06   -.15549E-02
  18  Prefactor     8.4678        11.671       -.84362E-07   -.20046E-04
  19  Prefactor     .10000E-03    12.630        .68489E-07** at limit **
  20  Prefactor     12.383        34.799       -.44740E-04    .18410E-03
  21  Prefactor     .10001E-03    6.6618        .48878E-05** at limit **
  22  Normalizat    1.0855        .19365        .69484E-06    .11043E-03
  23  Prefactor     .97496        .99434E-01    .10754E-05    .33613E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.898883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.175874
  Prefactor  = 0.000100001
  Prefactor  = 24.043
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.865228
  Prefactor  = 8.46777
  Prefactor  = 0.0001
  Prefactor  = 12.383
  Prefactor  = 0.000100009
  Normalizat = 1.08549
  Prefactor  = 0.974964
 **********
 **   18 **HESSE 
 **********

 FCN=   7885.956     FROM HESSE     STATUS=OK           366 CALLS     2559 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    40.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1640        .15349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .89888        1.1374        .10834E-02   -1.5518    
   4  Prefactor     .10000E-03    29.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.8426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.510        9.8697        .90676E-04   -1.4824    
   8  Prefactor     .10000E-03    4.6663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .17587        1.7302        .15434E-02   -1.5624    
  11  Prefactor     .10000E-03    32.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.043        12.371        .81694E-04   -1.4727    
  13  Prefactor     .10000E-03    12.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7793        .14360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8881        .14732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .86523        1.7015        .17791E-02   -1.5522    
  18  Prefactor     8.4678        11.668        .13776E-03   -1.5126    
  19  Prefactor     .10000E-03    12.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.383        34.730        .11370E-03   -1.5004    
  21  Prefactor     .10001E-03    6.9724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0855        .22431        .32483E-03   -.90219    
  23  Prefactor     .97496        .11635        .17444E-03   -.93569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05628e-09
Minuit parameter uncertainties:
  1  0.00130925
  2  2.5533e-06
  3  1.13745
  4  0.000150173
  5  1.66436e-05
  6  3.1158e-05
  7  9.87056
  8  8.68941e-06
  9  4.36853e-05
  10  1.10299
  11  0.000269412
  12  12.3719
  13  2.491e-05
  14  5.15976e-06
  15  1.28556e-08
  16  0.000101733
  17  1.70157
  18  11.6713
  19  7.32953e-06
  20  34.7864
  21  0.000501828
  22  0.224504
  23  0.116379
Done.

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

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  1.000e-04  1.017e-04  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  2.875e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.750e-01  1.164e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.085e+00  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.170 31.257
Photon Flux Upper Limit: 9.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834605/likelihoodResults_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.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) = 7885.9569223
delta logL = -0.000456238326478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7885.95646604
delta logL = 2.84435373032e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8895       1.0000          .0000       10.000    
     3 'Normalizat'    1.0855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+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=   7885.384     FROM MIGRAD    STATUS=FAILED       174 CALLS      328 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26264E-02    .11062        .11323E-02    .25611E-01
   2  Index        10.0000        9.9924        .50000    ** at limit **
   3  Normalizat    1.0195        .77863E-01    .32483E-02   -.52928E-04
   4  Prefactor     .99639        .39100E-01    .17444E-03   -.21677E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7885.384     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      469 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26264E-02    .11062        .42900E-07    .25611E-01
   2  Index        10.0000        9.9924        .17172E-01** at limit **
   3  Normalizat    1.0195        .77863E-01    .15619E-06   -.52928E-04
   4  Prefactor     .99639        .39100E-01    .12356E-07   -.21677E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7885.384     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      511 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26264E-02    .32000E-02    .49459E-04    .43896E-02
   2  Index        10.0000        2.1764        .50000    ** at limit **
   3  Normalizat    1.0195        .23286        .12993E-03   -.56172E-04
   4  Prefactor     .99639        .11716        .34888E-04   -.21676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00262635
  Index      = 10
  Normalizat = 1.01953
  Prefactor  = 0.996391
 **********
 **   18 **HESSE 
 **********

 FCN=   7885.384     FROM HESSE     STATUS=OK            31 CALLS      542 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26264E-02    .30739E-02    .19784E-05   -1.5698    
   2  Index        10.0000        2.0235        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0195        .23329        .51974E-05   -.92379    
   4  Prefactor     .99639        .11726        .69777E-05   -.92850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1485e-11
Minuit parameter uncertainties:
  1  0.00307388
  2  4.03418e-05
  3  0.233521
  4  0.117292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834605': 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) = 7885.38423946
delta logL = 0.572226603081

Extracting fit parameters...

4FGL J2324.6+3115
   Spectrum: PowerLaw
450    Prefactor:  2.626e-03  3.074e-03  1.000e-04  1.000e+04 ( 1.000e-12)
451        Index:  1.000e+01  4.034e-05  0.000e+00  1.000e+01 (-1.000e+00)
452        Scale:  4.159e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.964e-01  1.173e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.020e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 351.170 31.257
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 4.67e-08 +/- 5.29e-08
Energy Flux (Free Index): 5.22e-06 +/- 5.95e-06

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/834605/cmap_HighResolution_481680001_481939201_4FGL_J2324.6+3115_daily_bin935.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', comment='SUCCESS', energy_flux2='5.22e-06', dlogl='5.72e-01', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-09-29 16:11:03.994144', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.08e-08', energy_flux_error2='5.95e-06', EG='1.09', time_epoch_completed='1632957063.99', return_code='0', job_id='834605', GAL2='1.00', EG2='1.02', return_code2='0', photon_flux_error2='5.29e-08', ts2='1.25', photon_index='2.88' WHERE bin_id='935' AND source_name='4FGL J2324.6+3115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 834605: <4FGL_J2324.6+3115_daily_bin935> in cluster <slac> Done

Job <4FGL_J2324.6+3115_daily_bin935> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 15:55:19 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 15:55:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 15:55:21 2021
Terminated at Wed Sep 29 16:11:04 2021
Results reported at Wed Sep 29 16:11:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.6+3115_daily_bin935 351.17 31.2573 481680001 481939201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.6+3115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             306.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

