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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin752
RA = 351.315, Dec = 39.9542
tmin = 434246401, tmax = 434505601
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='858217', job_status='RUN', time_executed='2021-09-29 17:05:55.302792', time_epoch_executed='1632960355.3' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/858217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/858217/ft1_4FGL_J2325.2+3957_daily_bin752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/858217/ft2_4FGL_J2325.2+3957_daily_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/858217/ft1_4FGL_J2325.2+3957_daily_bin752.fits outfile=/scratch/kocevski/858217/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin752.fits ra=351.315 dec=39.9542 rad=12.0 tmin=434246401.0 tmax=434505601.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.02
user 5.77
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/858217/ft1_filtered_4FGL_J2325.2+3957_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/858217/ft2_4FGL_J2325.2+3957_daily_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/858217/ltcube_434246401_434505601_4FGL_J2325.2+3957_daily_bin752.fits outfile=/scratch/kocevski/858217/expmap_434246401_434505601_4FGL_J2325.2+3957_daily_bin752.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/858217/ltcube_434246401_434505601_4FGL_J2325.2+3957_daily_bin752.fits
.....................!
real 190.10
user 185.88
sys 3.90

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/858217/ft1_filtered_4FGL_J2325.2+3957_daily_bin752.fits scfile=/scratch/kocevski/858217/ft2_4FGL_J2325.2+3957_daily_bin752.fits outfile=/scratch/kocevski/858217/cmap_434246401_434505601_4FGL_J2325.2+3957_daily_bin752.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/858217/ft1_filtered_4FGL_J2325.2+3957_daily_bin752.fits scfile=/scratch/kocevski/858217/ft2_4FGL_J2325.2+3957_daily_bin752.fits outfile=/scratch/kocevski/858217/cmap_HighResolution_434246401_434505601_4FGL_J2325.2+3957_daily_bin752.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/858217/ft1_filtered_4FGL_J2325.2+3957_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/858217/ft2_4FGL_J2325.2+3957_daily_bin752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/858217/Model_4FGL_J2325.2+3957_daily_bin752.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/858217/ft1_filtered_4FGL_J2325.2+3957_daily_bin752.fits.....................!
real 56.40
user 55.16
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.612       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10703E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79268       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.957       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10921E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.884       1.0000         .10000E-03   10000.    
    12 'norm      '    .52335       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0808       1.0000         .10000E-03   10000.    
    16 'norm      '    .14342E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.085       1.0000         .10000E-03   10000.    
    18 'norm      '    .98912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8705       1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.475       1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.740       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1696       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82951       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=   4530.130     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     3387 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.610        34.315        .26275E-06   -.61334E-05
   2  Prefactor     .10000E-03    10.452        .25051E-06** at limit **
   3  norm          .10000E-03    31.133       -.16718E-05** at limit **
   4  Prefactor     .78900        13.082        .56053E-05   -.21184E-03
   5  Prefactor     .10000E-03    1.8909       -.58709E-09** at limit **
   6  Prefactor     37.091        147.23        .47503E-05    .93311E-06
   7  Prefactor     .10008E-03    13.922        .20951E-05** at limit **
   8  norm          .10000E-03    7.1338        .46671E-06** at limit **
   9  Prefactor     .10000E-03    14.399        .37074E-06** at limit **
  10  Prefactor     .10000E-03    17.792        .46838E-06** at limit **
  11  Prefactor     23.891        42.947       -.26407E-07    .27165E-05
  12  norm          .52256        1.9400        .28467E-06    .17393E-03
  13  Prefactor     25.265        20.881        .26494E-06    .37953E-04
  14  Prefactor     .10000E-03    16.789        .27482E-07** at limit **
  15  norm          1.0765        17.649       -.13794E-05   -.19029E-03
  16  norm          .10000E-03    58.368        .97362E-06** at limit **
  17  Prefactor     11.067        36.528        .73956E-05    .63655E-04
  18  norm          .98937        3.5957        .11995E-06    .75427E-04
  19  Prefactor     .10000E-03    10.817       -.45524E-06** at limit **
  20  Prefactor     1.8692        160.69        .57454E-06    .20822E-05
  21  Prefactor     42.432        57.614       -.86407E-06    .21085E-04
  22  Prefactor     53.723        57.188       -.61246E-06    .23685E-04
  23  Prefactor     .10000E-03    3.3350       -.20533E-06** at limit **
  24  Normalizat    1.1702        .35265       -.94401E-05    .99121E-04
  25  Prefactor     .82931        .12619        .28585E-05    .23471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6104
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.789002
  Prefactor  = 0.0001
  Prefactor  = 37.0914
  Prefactor  = 0.000100081
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8912
  norm       = 0.522564
  Prefactor  = 25.2649
  Prefactor  = 0.0001
  norm       = 1.07653
  norm       = 0.0001
  Prefactor  = 11.0673
  norm       = 0.989368
  Prefactor  = 0.0001
  Prefactor  = 1.8692
  Prefactor  = 42.4317
  Prefactor  = 53.7231
  Prefactor  = 0.0001
  Normalizat = 1.17016
  Prefactor  = 0.829314
 **********
 **   18 **HESSE 
 **********

 FCN=   4530.130     FROM HESSE     STATUS=OK           425 CALLS     3812 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.610        34.309        .92838E-04   -1.4845    
   2  Prefactor     .10000E-03    10.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    31.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .78900        14.832        .24217E-02   -1.5530    
   5  Prefactor     .10000E-03    1.9022        .90383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.091        147.35        .32963E-03   -1.4489    
   7  Prefactor     .10008E-03    38.907        .31434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.2921        .34968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.891        42.864        .81963E-04   -1.4730    
  12  norm          .52256        1.9035        .16701E-03   -1.5563    
  13  Prefactor     25.265        20.755        .79694E-04   -1.4702    
  14  Prefactor     .10000E-03    16.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0765        20.562        .23169E-02   -1.5500    
  16  norm          .10000E-03    60.724        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.067        37.549        .12033E-03   -1.5042    
  18  norm          .98937        3.5335        .22978E-03   -1.5509    
  19  Prefactor     .10000E-03    10.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8692        162.28        .30454E-03   -1.5435    
  21  Prefactor     42.432        57.681        .61511E-04   -1.4404    
  22  Prefactor     53.723        57.109        .54714E-04   -1.4241    
  23  Prefactor     .10000E-03    3.3352        .11997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1702        .35192        .35366E-03   -.87530    
  25  Prefactor     .82931        .12640        .15778E-03   -.98657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67779e-09
Minuit parameter uncertainties:
  1  34.3449
  2  5.13794e-06
  3  0.000330399
  4  6.8433
  5  2.88078e-06
  6  148.502
  7  0.00355756
  8  1.20133e-05
  9  3.28516e-05
  10  4.81568e-05
  11  42.9188
  12  1.9037
  13  20.7611
  14  8.71717e-06
  15  9.41306
  16  0.000289411
  17  37.629
  18  3.53427
  19  3.33809e-05
  20  34.9304
  21  57.7571
  22  57.1677
  23  1.51316e-05
  24  0.352636
  25  0.126446
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  9.894e-01  3.534e+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.293e-01  1.264e-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.170e+00  3.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/858217/likelihoodResults_434246401_434505601_4FGL_J2325.2+3957_daily_bin752.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) = 4530.00481337
delta logL = 0.125066658191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4529.99441921
delta logL = 0.13546082512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64658       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1356       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83438       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4529.994     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64181        7.5502        .93321E-04   -.61228E-03
   2  alpha         3.1388        4.0607        .85946E-02   -.21925E-04
   3  Normalizat    1.1375        .33825        .35783E-03   -.87433E-04
   4  Prefactor     .83426        .12593        .15729E-03   -.28738E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.641814
  alpha      = 3.13882
  Normalizat = 1.13749
  Prefactor  = 0.834263
 **********
 **   18 **HESSE 
 **********

 FCN=   4529.994     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64181        2.9330        .37328E-05   -1.5548    
   2  alpha         3.1388        3.7214        .34378E-03    .25839    
   3  Normalizat    1.1375        .32760        .14313E-04   -.88557    
   4  Prefactor     .83426        .12304        .31458E-04   -.98477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42995e-10
Minuit parameter uncertainties:
  1  2.74403
  2  2.57298
  3  0.328187
  4  0.123076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/858217': 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) = 4529.99441618
delta logL = 0.135463854313

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  6.418e-01  2.744e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  3.139e+00  2.573e+00  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.343e-01  1.231e-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.137e+00  3.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/858217/cmap_HighResolution_434246401_434505601_4FGL_J2325.2+3957_daily_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-29 17:16:28.977784', job_id='858217', GAL2='0.83', fit_tolerance='1e-08', EG2='1.14', EG='1.17', time_epoch_completed='1632960988.98', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.35e-01', ts2='0.37', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='752' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:16:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 858217: <4FGL_J2325.2+3957_daily_bin752> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin752> 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) <bullet0125>, 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:16:31 2021
Results reported at Wed Sep 29 17:16:31 2021

Your job looked like:

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

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

