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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin508
RA = 351.315, Dec = 39.9542
tmin = 371001601, tmax = 371260801
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='856748', job_status='RUN', time_executed='2021-09-29 17:01:07.688656', time_epoch_executed='1632960067.69' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856748

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856748/ft1_4FGL_J2325.2+3957_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856748/ft2_4FGL_J2325.2+3957_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856748/ft1_4FGL_J2325.2+3957_daily_bin508.fits outfile=/scratch/kocevski/856748/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin508.fits ra=351.315 dec=39.9542 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.45
user 6.16
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856748/ft2_4FGL_J2325.2+3957_daily_bin508.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/856748/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/856748/ft1_filtered_4FGL_J2325.2+3957_daily_bin508.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856748/ft1_filtered_4FGL_J2325.2+3957_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/856748/ft2_4FGL_J2325.2+3957_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/856748/ltcube_371001601_371260801_4FGL_J2325.2+3957_daily_bin508.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/856748/ft2_4FGL_J2325.2+3957_daily_bin508.fits
.....................!
real 11.46
user 11.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856748/ft1_filtered_4FGL_J2325.2+3957_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/856748/ft2_4FGL_J2325.2+3957_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/856748/ltcube_371001601_371260801_4FGL_J2325.2+3957_daily_bin508.fits outfile=/scratch/kocevski/856748/expmap_371001601_371260801_4FGL_J2325.2+3957_daily_bin508.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/856748/ltcube_371001601_371260801_4FGL_J2325.2+3957_daily_bin508.fits
.....................!
real 190.24
user 184.87
sys 5.06

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/856748/ft1_filtered_4FGL_J2325.2+3957_daily_bin508.fits scfile=/scratch/kocevski/856748/ft2_4FGL_J2325.2+3957_daily_bin508.fits outfile=/scratch/kocevski/856748/cmap_371001601_371260801_4FGL_J2325.2+3957_daily_bin508.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856748/ft1_filtered_4FGL_J2325.2+3957_daily_bin508.fits scfile=/scratch/kocevski/856748/ft2_4FGL_J2325.2+3957_daily_bin508.fits outfile=/scratch/kocevski/856748/cmap_HighResolution_371001601_371260801_4FGL_J2325.2+3957_daily_bin508.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856748/ft1_filtered_4FGL_J2325.2+3957_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/856748/ft2_4FGL_J2325.2+3957_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856748/Model_4FGL_J2325.2+3957_daily_bin508.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/856748/ft1_filtered_4FGL_J2325.2+3957_daily_bin508.fits.....................!
real 124.23
user 122.81
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856748/ft1_filtered_4FGL_J2325.2+3957_daily_bin508.fits', '/scratch/kocevski/856748/ft2_4FGL_J2325.2+3957_daily_bin508.fits', expMap='/scratch/kocevski/856748/expmap_371001601_371260801_4FGL_J2325.2+3957_daily_bin508.fits', expCube='/scratch/kocevski/856748/ltcube_371001601_371260801_4FGL_J2325.2+3957_daily_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856748/Model_4FGL_J2325.2+3957_daily_bin508.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/856748/ft1_filtered_4FGL_J2325.2+3957_daily_bin508.fits
Spacecraft file(s): /scratch/kocevski/856748/ft2_4FGL_J2325.2+3957_daily_bin508.fits
Exposure map: /scratch/kocevski/856748/expmap_371001601_371260801_4FGL_J2325.2+3957_daily_bin508.fits
Exposure cube: /scratch/kocevski/856748/ltcube_371001601_371260801_4FGL_J2325.2+3957_daily_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856748/Model_4FGL_J2325.2+3957_daily_bin508.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) = 11066.9378163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1820       1.0000         .10000E-03   10000.    
     3 'norm      '    .10861E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8288       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33614       1.0000         .10000E-03   10000.    
     8 'norm      '    .13255E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18605E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2365       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5931       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9250       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.246       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0455       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4346       1.0000         .10000E-03   10000.    
    22 'Prefactor '    49.635       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11081E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3487       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82288       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=   11066.93     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2905 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.019        .13599E-06** at limit **
   2  Prefactor     3.1674        30.766        .69398E-06    .69337E-04
   3  norm          .10000E-03    8.8207        .57507E-06** at limit **
   4  Prefactor     .10000E-03    1.6414        .20060E-06** at limit **
   5  Prefactor     1.8270        4.3801        .25458E-05    .88530E-04
   6  Prefactor     38.439        47.019        .66810E-06    .52414E-04
   7  Prefactor     .33302        5.0231        .17302E-07   -.27414E-03
   8  norm          .10000E-03    2.3147       -.80335E-06** at limit **
   9  Prefactor     10.639        11.119        .33740E-06    .10146E-03
  10  Prefactor     .10002E-03    4.8518        .26194E-05** at limit **
  11  Prefactor     8.2311        22.633        .11819E-05    .86166E-04
  12  norm          1.5929        1.0939        .48116E-07    .24436E-03
  13  Prefactor     .10000E-03    2.8540       -.13421E-06** at limit **
  14  Prefactor     .10000E-03    10.883        .15091E-05** at limit **
  15  norm          3.9260        5.2041        .35518E-06    .13608E-03
  16  norm          .10000E-03    2.3951       -.10169E-06** at limit **
  17  Prefactor     33.237        20.611        .92063E-06    .29720E-03
  18  norm          3.0454        1.9466        .18715E-07    .11342E-03
  19  Prefactor     .10000E-03    5.3011        .28963E-06** at limit **
  20  Prefactor     .10000E-03    28.225        .91191E-06** at limit **
  21  Prefactor     5.4242        47.023        .47242E-05    .69014E-04
  22  Prefactor     49.619        48.898       -.55345E-07   -.14710E-04
  23  Prefactor     .10000E-03    2.6272        .13145E-05** at limit **
  24  Normalizat    1.3490        .21896       -.39975E-05    .46738E-03
  25  Prefactor     .82276        .78081E-01    .19774E-05    .37230E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.16742
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.82703
  Prefactor  = 38.4389
  Prefactor  = 0.333015
  norm       = 0.0001
  Prefactor  = 10.6385
  Prefactor  = 0.000100018
  Prefactor  = 8.23109
  norm       = 1.59292
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.92601
  norm       = 0.0001
  Prefactor  = 33.2366
  norm       = 3.04535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.42421
  Prefactor  = 49.6194
  Prefactor  = 0.0001
  Normalizat = 1.34902
  Prefactor  = 0.822758
 **********
 **   18 **HESSE 
 **********

 FCN=   11066.93     FROM HESSE     STATUS=OK           433 CALLS     3338 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1674        31.006        .22717E-03   -1.5352    
   3  norm          .10000E-03    8.9158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6471        .13168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8270        4.6340        .15432E-02   -1.5438    
   6  Prefactor     38.439        47.063        .64645E-04   -1.4467    
   7  Prefactor     .33302        20.739        .37963E-02   -1.5593    
   8  norm          .10000E-03    4.5995        .26871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.639        11.123        .12283E-03   -1.5056    
  10  Prefactor     .10002E-03    2.5930        .58049E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2311        22.678        .13969E-03   -1.5134    
  12  norm          1.5929        1.0937        .33611E-04   -1.5456    
  13  Prefactor     .10000E-03    2.8684        .17357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9260        5.1858        .10181E-02   -1.5312    
  16  norm          .10000E-03    2.3979        .15902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.237        20.508        .69497E-04   -1.4554    
  18  norm          3.0454        1.9469        .11395E-03   -1.5359    
  19  Prefactor     .10000E-03    5.3095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4242        47.227        .17237E-03   -1.5242    
  22  Prefactor     49.619        49.156        .56920E-04   -1.4298    
  23  Prefactor     .10000E-03    2.7151        .16880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3490        .22923        .33725E-03   -.82115    
  25  Prefactor     .82276        .81859E-01    .16098E-03   -.98895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08787e-09
Minuit parameter uncertainties:
  1  3.86267e-05
  2  19.8331
  3  2.92624e-05
  4  9.30665e-06
  5  4.63487
  6  47.1087
  7  5.25716
  8  2.97534e-05
  9  11.1253
  10  0.000429344
  11  22.7013
  12  1.09374
  13  6.63582e-06
  14  0.000204478
  15  5.18636
  16  5.62161e-06
  17  20.5127
  18  1.9469
  19  2.5311e-05
  20  0.000173459
  21  32.0443
  22  49.1966
  23  6.78391e-05
  24  0.229403
  25  0.0818713
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  3.045e+00  1.947e+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.228e-01  8.187e-02  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.349e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.58
Ra Dec: 351.315 39.954
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.10e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.28e-05

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) = 11066.4749028
delta logL = 0.452018947813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11066.4715256
delta logL = 0.455396230591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9396       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4681       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82231       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=   11066.47     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9396        3.2444        .59224E-02    .16329E-02
   2  alpha         1.4680        .64533        .46806       -.39891E-04
   3  Normalizat    1.3594        .17952        .75973E-01   -.44608E-03
   4  Prefactor     .82231        .68901E-01    .44007E-01   -.10948E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9396
  alpha      = 1.46804
  Normalizat = 1.3594
  Prefactor  = 0.822308
 **********
 **   18 **HESSE 
 **********

 FCN=   11066.47     FROM HESSE     STATUS=OK            27 CALLS      229 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9396        2.2634        .12261E-03   -1.5365    
   2  alpha         1.4680        .54825        .18533E-01   -.42551    
   3  Normalizat    1.3594        .20621        .33622E-03   -.81810    
   4  Prefactor     .82231        .79646E-01    .16105E-03   -.98911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.04702e-10
Minuit parameter uncertainties:
  1  2.26345
  2  0.553694
  3  0.20634
  4  0.0796569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856748': 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) = 11066.4715255
delta logL = 0.455396235588

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  2.940e+00  2.263e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  1.468e+00  5.537e-01  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.223e-01  7.966e-02  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.359e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.49
Ra Dec: 351.315 39.954
Photon Index (Free Index): 1.47 +/- 0.55
Photon Flux (Free Index): 1.74e-08 +/- 1.70e-08
Energy Flux (Free Index): 3.41e-05 +/- 3.28e-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/856748/cmap_HighResolution_371001601_371260801_4FGL_J2325.2+3957_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.10e-08', energy_flux2='3.41e-05', photon_flux_error='1.98e-08', dlogl='4.55e-01', energy_flux='2.00e-05', photon_flux2='1.74e-08', job_status='DONE', time_completed='2021-09-29 17:16:28.188590', photon_index_error2='0.55', photon_index2='1.47', ts='9.58', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='1.35', time_epoch_completed='1632960988.19', return_code='0', job_id='856748', GAL2='0.82', EG2='1.36', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='1.70e-08', ts2='10.49', photon_index='1.99' WHERE bin_id='508' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:16:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 856748: <4FGL_J2325.2+3957_daily_bin508> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin508> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 17:00:54 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:00:58 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:00:58 2021
Terminated at Wed Sep 29 17:16:29 2021
Results reported at Wed Sep 29 17:16:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin508 351.315 39.9542 371001601 371260801 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 :                                   906.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            935 sec.

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

