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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin684
RA = 351.315, Dec = 39.9542
tmin = 416620801, tmax = 416880001
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='858112', job_status='RUN', time_executed='2021-09-29 17:05:44.290657', time_epoch_executed='1632960344.29' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/858112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/858112/ft1_4FGL_J2325.2+3957_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/858112/ft2_4FGL_J2325.2+3957_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/858112/ft1_4FGL_J2325.2+3957_daily_bin684.fits outfile=/scratch/kocevski/858112/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin684.fits ra=351.315 dec=39.9542 rad=12.0 tmin=416620801.0 tmax=416880001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.22
user 4.95
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/858112/ft2_4FGL_J2325.2+3957_daily_bin684.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/858112/ft2_4FGL_J2325.2+3957_daily_bin684.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/858112/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin684.fits evtable="EVENTS" outfile="/scratch/kocevski/858112/ft1_filtered_4FGL_J2325.2+3957_daily_bin684.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/858112/ft1_filtered_4FGL_J2325.2+3957_daily_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/858112/ft2_4FGL_J2325.2+3957_daily_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/858112/ltcube_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.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/858112/ft2_4FGL_J2325.2+3957_daily_bin684.fits
.....................!
real 12.52
user 12.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/858112/ft1_filtered_4FGL_J2325.2+3957_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/858112/ft2_4FGL_J2325.2+3957_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/858112/ltcube_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.fits outfile=/scratch/kocevski/858112/expmap_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.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/858112/ltcube_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.fits
.....................!
real 190.54
user 185.04
sys 4.96

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2325.2+3957 @ 351.315 39.9542

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/858112/ft1_filtered_4FGL_J2325.2+3957_daily_bin684.fits scfile=/scratch/kocevski/858112/ft2_4FGL_J2325.2+3957_daily_bin684.fits outfile=/scratch/kocevski/858112/cmap_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.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.315 yref=39.9542 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/858112/ft1_filtered_4FGL_J2325.2+3957_daily_bin684.fits scfile=/scratch/kocevski/858112/ft2_4FGL_J2325.2+3957_daily_bin684.fits outfile=/scratch/kocevski/858112/cmap_HighResolution_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.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.315 yref=39.9542 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/858112/ft1_filtered_4FGL_J2325.2+3957_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/858112/ft2_4FGL_J2325.2+3957_daily_bin684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/858112/Model_4FGL_J2325.2+3957_daily_bin684.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/858112/ft1_filtered_4FGL_J2325.2+3957_daily_bin684.fits.....................!
real 84.89
user 83.58
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/858112/ft1_filtered_4FGL_J2325.2+3957_daily_bin684.fits', '/scratch/kocevski/858112/ft2_4FGL_J2325.2+3957_daily_bin684.fits', expMap='/scratch/kocevski/858112/expmap_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.fits', expCube='/scratch/kocevski/858112/ltcube_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/858112/Model_4FGL_J2325.2+3957_daily_bin684.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.2+3957'

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  1.993e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/858112/ft1_filtered_4FGL_J2325.2+3957_daily_bin684.fits
Spacecraft file(s): /scratch/kocevski/858112/ft2_4FGL_J2325.2+3957_daily_bin684.fits
Exposure map: /scratch/kocevski/858112/expmap_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.fits
Exposure cube: /scratch/kocevski/858112/ltcube_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/858112/Model_4FGL_J2325.2+3957_daily_bin684.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) = 6956.85912056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11978E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.016       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.888       1.0000         .10000E-03   10000.    
    12 'norm      '    5.5110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10972E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6629       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.642       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.254       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1744       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6956.855     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2841 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.220        .24588E-06** at limit **
   2  Prefactor     .10000E-03    40.259        .27566E-06** at limit **
   3  norm          .10000E-03    96.010       -.16420E-05** at limit **
   4  Prefactor     .10000E-03    6.7178        .68675E-07** at limit **
   5  Prefactor     .10000E-03    5.0890        .19761E-06** at limit **
   6  Prefactor     .10000E-03    25.432        .81617E-07** at limit **
   7  Prefactor     .10000E-03    4.4261        .56718E-06** at limit **
   8  norm          .10000E-03    1.9271        .30031E-06** at limit **
   9  Prefactor     12.264        18.490        .28147E-06   -.16758E-04
  10  Prefactor     12.015        7.1457       -.39207E-07   -.59449E-04
  11  Prefactor     14.889        18.868        .84905E-08   -.68295E-05
  12  norm          5.5105        2.1486       -.30029E-07    .36523E-04
  13  Prefactor     .10000E-03    6.8846        .15325E-06** at limit **
  14  Prefactor     .10000E-03    47.941        .48257E-06** at limit **
  15  norm          .10000E-03    2.0655        .39014E-07** at limit **
  16  norm          .10000E-03    3.5554        .71406E-08** at limit **
  17  Prefactor     .10000E-03    59.343        .58780E-06** at limit **
  18  norm          2.6631        2.5261        .16424E-05    .90732E-03
  19  Prefactor     .10000E-03    18.421       -.67224E-06** at limit **
  20  Prefactor     .10000E-03    38.167       -.10007E-06** at limit **
  21  Prefactor     33.502        75.077       -.38841E-05   -.81253E-04
  22  Prefactor     .10000E-03    47.622       -.25573E-07** at limit **
  23  Prefactor     11.231        14.661       -.13257E-05   -.39421E-04
  24  Normalizat    1.1750        .29874        .84513E-05   -.11785E-03
  25  Prefactor     .84194        .97285E-01   -.32503E-05    .28421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2637
  Prefactor  = 12.0146
  Prefactor  = 14.8886
  norm       = 5.51052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.66307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.5016
  Prefactor  = 0.0001
  Prefactor  = 11.2306
  Normalizat = 1.17498
  Prefactor  = 0.841938
 **********
 **   18 **HESSE 
 **********

 FCN=   6956.855     FROM HESSE     STATUS=OK           417 CALLS     3258 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    97.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4806        .17118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9489        .11294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.264        18.486        .11440E-03   -1.5007    
  10  Prefactor     12.015        7.1364        .11556E-03   -1.5015    
  11  Prefactor     14.889        18.866        .10380E-03   -1.4936    
  12  norm          5.5105        2.1492        .73217E-04   -1.5238    
  13  Prefactor     .10000E-03    6.9382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    48.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0691        .11706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.5567        .15360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    61.116        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6631        2.6240        .65200E-03   -1.5382    
  19  Prefactor     .10000E-03    18.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.502        75.757        .34544E-03   -1.4550    
  22  Prefactor     .10000E-03    47.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.231        14.633        .11942E-03   -1.5038    
  24  Normalizat    1.1750        .31253        .40214E-03   -.87379    
  25  Prefactor     .84194        .10198        .15675E-03   -.98200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17845e-10
Minuit parameter uncertainties:
  1  6.99282e-05
  2  0.000103807
  3  0.000530569
  4  1.87758e-06
  5  1.87495e-06
  6  8.95108e-06
  7  8.50696e-06
  8  5.50173e-06
  9  18.4943
  10  7.13692
  11  18.8737
  12  2.14927
  13  1.31728e-05
  14  7.91928e-05
  15  1.52735e-06
  16  2.35156e-06
  17  5.63911e-05
  18  2.62408
  19  6.28798e-05
  20  0.00013034
  21  75.9762
  22  6.73162e-05
  23  14.6381
  24  0.313031
  25  0.101999
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  2.663e+00  2.624e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  1.993e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.419e-01  1.020e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  1.175e+00  3.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 351.315 39.954
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.71e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.72e-05

TS (Fixed Index): 2.02
Ra Dec: 351.315 39.954
Photon Flux Upper Limit: 9.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/858112/likelihoodResults_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.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) = 6955.13425148
delta logL = 1.72121612518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6954.27434245
delta logL = 2.58112514899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17179       1.0000         .10000E-03   10000.    
     2 'alpha     '    .15790E-05   1.0000          .0000       5.0000    
     3 'Normalizat'    1.1606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85201       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6954.274     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      241 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17248        .23813        .76633E-02   -.42895E-02
   2  alpha         .52736E-13    .77219        .46350    ** at limit **
   3  Normalizat    1.1600        .25507        .91164E-01    .48279E-04
   4  Prefactor     .85214        .86374E-01    .44390E-01   -.15977E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.17248
  alpha      = 5.27356e-14
  Normalizat = 1.16004
  Prefactor  = 0.852144
 **********
 **   18 **HESSE 
 **********

 FCN=   6954.274     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17248        .17455        .29330E-03   -1.5625    
   2  alpha         .52736E-13    .82013        .41308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1600        .29542        .40379E-03   -.87847    
   4  Prefactor     .85214        .10028        .15600E-03   -.97834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85666e-10
Minuit parameter uncertainties:
  1  0.17455
  2  4.28558e-07
  3  0.295843
  4  0.100301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/858112': 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) = 6954.27433146
delta logL = 2.58113614101

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.725e-01  1.745e-01  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  5.274e-14  4.286e-07  0.000e+00  5.000e+00 ( 1.000e+00)
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.521e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  1.160e+00  2.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.19
Ra Dec: 351.315 39.954
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.87e-09 +/- 4.93e-09
Energy Flux (Free Index): 1.56e-04 +/- 1.58e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/858112/cmap_HighResolution_416620801_416880001_4FGL_J2325.2+3957_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-05', comment='SUCCESS', photon_flux='2.71e-08', energy_flux2='1.56e-04', photon_flux_error='2.67e-08', dlogl='2.58e+00', energy_flux='1.75e-05', photon_flux2='4.87e-09', job_status='DONE', time_completed='2021-09-29 17:18:04.935009', photon_index_error2='0.00', photon_index2='0.00', ts='2.02', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='9.63e-08', energy_flux_error2='1.58e-04', EG='1.17', time_epoch_completed='1632961084.94', return_code='0', job_id='858112', GAL2='0.85', EG2='1.16', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='4.93e-09', ts2='7.19', photon_index='1.99' WHERE bin_id='684' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:18:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 858112: <4FGL_J2325.2+3957_daily_bin684> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin684> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 17:05:32 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:05:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 17:05:33 2021
Terminated at Wed Sep 29 17:18:05 2021
Results reported at Wed Sep 29 17:18:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin684 351.315 39.9542 416620801 416880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.2+3957 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

