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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin751
RA = 351.315, Dec = 39.9542
tmin = 433987201, tmax = 434246401
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='858216', job_status='RUN', time_executed='2021-09-29 17:05:52.337421', time_epoch_executed='1632960352.34' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/858216

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/858216/ft1_4FGL_J2325.2+3957_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/858216/ft2_4FGL_J2325.2+3957_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/858216/ft1_4FGL_J2325.2+3957_daily_bin751.fits outfile=/scratch/kocevski/858216/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin751.fits ra=351.315 dec=39.9542 rad=12.0 tmin=433987201.0 tmax=434246401.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.12
user 5.85
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/858216/ft1_filtered_4FGL_J2325.2+3957_daily_bin751.fits" evtable="EVENTS" scfile=/scratch/kocevski/858216/ft2_4FGL_J2325.2+3957_daily_bin751.fits sctable="SC_DATA" outfile=/scratch/kocevski/858216/ltcube_433987201_434246401_4FGL_J2325.2+3957_daily_bin751.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/858216/ft2_4FGL_J2325.2+3957_daily_bin751.fits
.....................!
real 12.09
user 11.77
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/858216/ft1_filtered_4FGL_J2325.2+3957_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/858216/ft2_4FGL_J2325.2+3957_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/858216/ltcube_433987201_434246401_4FGL_J2325.2+3957_daily_bin751.fits outfile=/scratch/kocevski/858216/expmap_433987201_434246401_4FGL_J2325.2+3957_daily_bin751.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/858216/ltcube_433987201_434246401_4FGL_J2325.2+3957_daily_bin751.fits
.....................!
real 191.16
user 185.83
sys 5.01

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/858216/ft1_filtered_4FGL_J2325.2+3957_daily_bin751.fits scfile=/scratch/kocevski/858216/ft2_4FGL_J2325.2+3957_daily_bin751.fits outfile=/scratch/kocevski/858216/cmap_433987201_434246401_4FGL_J2325.2+3957_daily_bin751.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/858216/ft1_filtered_4FGL_J2325.2+3957_daily_bin751.fits scfile=/scratch/kocevski/858216/ft2_4FGL_J2325.2+3957_daily_bin751.fits outfile=/scratch/kocevski/858216/cmap_HighResolution_433987201_434246401_4FGL_J2325.2+3957_daily_bin751.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/858216/ft1_filtered_4FGL_J2325.2+3957_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/858216/ft2_4FGL_J2325.2+3957_daily_bin751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/858216/Model_4FGL_J2325.2+3957_daily_bin751.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/858216/ft1_filtered_4FGL_J2325.2+3957_daily_bin751.fits.....................!
real 67.25
user 65.91
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.344       1.0000         .10000E-03   10000.    
     3 'norm      '    10.415       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .44111       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.459       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.7318       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.487       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .99545       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4243       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7467       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.617       1.0000         .10000E-03   10000.    
    15 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.9539       1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.739       1.0000         .10000E-03   10000.    
    18 'norm      '    .10578E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    70.743       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11237E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    63.781       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1008       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89716       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=   5148.536     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2935 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.138        .37460E-06** at limit **
   2  Prefactor     25.336        29.671       -.46714E-05   -.85668E-05
   3  norm          10.409        16.002        .14255E-05   -.23006E-04
   4  Prefactor     .44847        6.2557        .17797E-06   -.49609E-03
   5  Prefactor     11.459        6.4234        .16222E-06   -.16616E-04
   6  Prefactor     .10000E-03    50.826       -.23230E-05** at limit **
   7  Prefactor     .10000E-03    4.4532       -.25846E-06** at limit **
   8  norm          4.7328        4.5048       -.97808E-06    .91435E-04
   9  Prefactor     37.513        45.662        .26141E-04    .80049E-04
  10  Prefactor     .10000E-03    13.943       -.11016E-05** at limit **
  11  Prefactor     .96771        36.685       -.82694E-05    .10014E-03
  12  norm          2.4248        2.3115        .10938E-06    .20778E-03
  13  Prefactor     1.7018        54.763        .17323E-05   -.61658E-04
  14  Prefactor     12.616        23.365        .16286E-06   -.51539E-05
  15  norm          .10000E-03    4.6581        .30709E-06** at limit **
  16  norm          3.9574        13.840       -.43396E-06   -.78215E-04
  17  Prefactor     55.731        31.094       -.39731E-05    .17942E-04
  18  norm          .10000E-03    4.1158       -.26190E-07** at limit **
  19  Prefactor     .10000E-03    10.174        .81458E-07** at limit **
  20  Prefactor     70.742        68.041       -.55234E-06   -.17272E-05
  21  Prefactor     .10000E-03    84.417        .39894E-05** at limit **
  22  Prefactor     63.770        59.446       -.10812E-04   -.28347E-05
  23  Prefactor     .10000E-03    5.3953        .16706E-06** at limit **
  24  Normalizat    1.1008        .31512        .29883E-05    .25374E-04
  25  Prefactor     .89721        .11217       -.14406E-05    .48016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.3361
  norm       = 10.4091
  Prefactor  = 0.448473
  Prefactor  = 11.4593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.73276
  Prefactor  = 37.5129
  Prefactor  = 0.000100003
  Prefactor  = 0.967712
  norm       = 2.42482
  Prefactor  = 1.7018
  Prefactor  = 12.6162
  norm       = 0.0001
  norm       = 3.95741
  Prefactor  = 55.7312
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.7422
  Prefactor  = 0.0001
  Prefactor  = 63.7697
  Prefactor  = 0.0001
  Normalizat = 1.10081
  Prefactor  = 0.897212
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.536     FROM HESSE     STATUS=OK           431 CALLS     3366 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.336        29.674        .79572E-04   -1.4701    
   3  norm          10.409        15.950        .12415E-03   -1.5063    
   4  Prefactor     .44847        17.487        .34116E-02   -1.5574    
   5  Prefactor     11.459        6.4274        .11834E-03   -1.5031    
   6  Prefactor     .10000E-03    50.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4642        .14787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.7328        4.5036        .14336E-03   -1.5273    
   9  Prefactor     37.513        45.699        .65459E-04   -1.4482    
  10  Prefactor     .10000E-03    14.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .96771        221.91        .82157E-02   -1.5511    
  12  norm          2.4248        2.2977        .99980E-04   -1.5397    
  13  Prefactor     1.7018        53.897        .31732E-03   -1.5447    
  14  Prefactor     12.616        23.360        .11277E-03   -1.4997    
  15  norm          .10000E-03    4.6950        .15092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.9574        13.834        .20286E-03   -1.5310    
  17  Prefactor     55.731        31.206        .53729E-04   -1.4214    
  18  norm          .10000E-03    4.2071        .28351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     70.742        68.052        .47728E-04   -1.4024    
  21  Prefactor     .10000E-03    84.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     63.770        59.300        .25124E-03   -1.4109    
  23  Prefactor     .10000E-03    5.4117        .16269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1008        .36680        .39255E-03   -.89726    
  25  Prefactor     .89721        .13222        .16210E-03   -.96239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36924e-09
Minuit parameter uncertainties:
  1  3.94565e-05
  2  29.6908
  3  15.9569
  4  5.602
  5  6.42775
  6  7.20594e-05
  7  3.57021e-05
  8  4.50394
  9  45.7418
  10  0.00044051
  11  29.4179
  12  2.29777
  13  19.1727
  14  23.3765
  15  6.48915e-05
  16  13.8454
  17  31.2156
  18  5.81956e-07
  19  6.72345e-06
  20  68.1274
  21  7.40256e-05
  22  59.3554
  23  3.96404e-05
  24  0.367654
  25  0.132265
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.000e-04  5.820e-07  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.972e-01  1.323e-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.101e+00  3.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 351.315 39.954
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/858216/likelihoodResults_433987201_434246401_4FGL_J2325.2+3957_daily_bin751.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) = 5148.53745109
delta logL = -0.00113413652434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5148.50946301
delta logL = 0.0268539460039

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26560       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1968       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89843       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=   5148.509     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      334 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26410        12.104        .23012E-01    .84211E-03
   2  alpha         3.1980        4.0917        .43380        .21093E-04
   3  Normalizat    1.0839        .33096E-01    .89250E-01   -.40438E-04
   4  Prefactor     .89844        .12549E-01    .44985E-01   -.68917E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.264105
  alpha      = 3.198
  Normalizat = 1.08386
  Prefactor  = 0.898437
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.509     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      367 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26410        224.34        .11711E-02   -1.5605    
   2  alpha         3.1980        2.5955        .33014E-01    .28296    
   3  Normalizat    1.0839        .25054        .39527E-03   -.90272    
   4  Prefactor     .89844        .10520        .16199E-03   -.96196    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.49111e-11
Minuit parameter uncertainties:
  1  15.4501
  2  24.177
  3  0.250819
  4  0.105228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/858216': 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): 102
logL (Free Index) = 5148.50946255
delta logL = 0.0268544032278

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  2.641e-01  1.545e+01  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  3.198e+00  2.418e+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.984e-01  1.052e-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.084e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.315 39.954

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/858216/cmap_HighResolution_433987201_434246401_4FGL_J2325.2+3957_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 17:17:04.071485', job_id='858216', GAL2='0.90', fit_tolerance='1e-08', EG2='1.08', EG='1.10', time_epoch_completed='1632961024.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.69e-02', ts2='0.06', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='751' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:17:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 858216: <4FGL_J2325.2+3957_daily_bin751> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 17:05:39 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:05:40 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:40 2021
Terminated at Wed Sep 29 17:17:04 2021
Results reported at Wed Sep 29 17:17:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin751 351.315 39.9542 433987201 434246401 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 :                                   660.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            685 sec.

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

