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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin1004
RA = 351.315, Dec = 39.9542
tmin = 499564801, tmax = 499824001
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='859725', job_status='RUN', time_executed='2021-09-29 17:13:20.283203', time_epoch_executed='1632960800.28' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859725/ft1_4FGL_J2325.2+3957_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859725/ft2_4FGL_J2325.2+3957_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859725/ft1_4FGL_J2325.2+3957_daily_bin1004.fits outfile=/scratch/kocevski/859725/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin1004.fits ra=351.315 dec=39.9542 rad=12.0 tmin=499564801.0 tmax=499824001.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.05
user 4.81
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/859725/ft2_4FGL_J2325.2+3957_daily_bin1004.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/859725/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin1004.fits evtable="EVENTS" outfile="/scratch/kocevski/859725/ft1_filtered_4FGL_J2325.2+3957_daily_bin1004.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/859725/ft1_filtered_4FGL_J2325.2+3957_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/859725/ft2_4FGL_J2325.2+3957_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/859725/ltcube_499564801_499824001_4FGL_J2325.2+3957_daily_bin1004.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/859725/ft2_4FGL_J2325.2+3957_daily_bin1004.fits
.....................!
real 12.15
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859725/ft1_filtered_4FGL_J2325.2+3957_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/859725/ft2_4FGL_J2325.2+3957_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/859725/ltcube_499564801_499824001_4FGL_J2325.2+3957_daily_bin1004.fits outfile=/scratch/kocevski/859725/expmap_499564801_499824001_4FGL_J2325.2+3957_daily_bin1004.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/859725/ltcube_499564801_499824001_4FGL_J2325.2+3957_daily_bin1004.fits
.....................!
real 191.36
user 185.72
sys 5.23

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/859725/ft1_filtered_4FGL_J2325.2+3957_daily_bin1004.fits scfile=/scratch/kocevski/859725/ft2_4FGL_J2325.2+3957_daily_bin1004.fits outfile=/scratch/kocevski/859725/cmap_499564801_499824001_4FGL_J2325.2+3957_daily_bin1004.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27702       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26203E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    42.269       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2755       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5382       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0040       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3729       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.011       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5966       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16343       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4658       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4992.184     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2949 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11130E-01    1725.9       -.52928E-04    .42542E-03
   2  Prefactor     .10070E-03    568.52       -.23517E-04** at limit **
   3  norm          42.264        5.7756        .40058E-07   -.20178E-02
   4  Prefactor     .10000E-03    5.7351        .47244E-06** at limit **
   5  Prefactor     .10000E-03    3.8049       -.64639E-08** at limit **
   6  Prefactor     .10003E-03    96.597       -.59567E-05** at limit **
   7  Prefactor     4.2682        11.528        .18216E-06    .34858E-03
   8  norm          3.5395        6.1063        .23328E-06   -.42870E-04
   9  Prefactor     .10000E-03    17.472        .37712E-06** at limit **
  10  Prefactor     6.0686        1.1738       -.10886E-07   -.98319E-03
  11  Prefactor     4.9915        1.8875       -.35733E-06   -.12147E-03
  12  norm          1.3716        1.7931        .10618E-06   -.10473E-04
  13  Prefactor     39.712        13.764       -.30233E-06    .46078E-02
  14  Prefactor     .10000E-03    19.711       -.49548E-06** at limit **
  15  norm          .10000E-03    3.8312       -.81726E-06** at limit **
  16  norm          .10000E-03    7.8542        .14111E-06** at limit **
  17  Prefactor     10.020        16.962       -.42304E-06   -.24603E-02
  18  norm          3.5961        3.2337       -.97811E-07   -.20285E-04
  19  Prefactor     .10000E-03    13.165        .16326E-06** at limit **
  20  Prefactor     .10000E-03    19.905       -.22766E-05** at limit **
  21  Prefactor     .49678E-03    1907.0       -.52643E-04** at limit **
  22  Prefactor     .10000E-03    57.335        .14862E-05** at limit **
  23  Prefactor     .10000E-03    29.395       -.31943E-05** at limit **
  24  Normalizat    1.4663        .33544        .15926E-05   -.92410E-05
  25  Prefactor     .70467        .11689       -.36328E-06   -.79838E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0111298
  Prefactor  = 0.000100701
  norm       = 42.2639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 4.26816
  norm       = 3.53952
  Prefactor  = 0.0001
  Prefactor  = 6.06861
  Prefactor  = 4.99149
  norm       = 1.37161
  Prefactor  = 39.7122
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0201
  norm       = 3.59614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000496777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.46633
  Prefactor  = 0.704668
 **********
 **   18 **HESSE 
 **********

 FCN=   4992.184     FROM HESSE     STATUS=OK           497 CALLS     3446 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11130E-01    44.072        .15782       -1.5687    
   2  Prefactor     .10070E-03    27.899        .12617       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          42.264        29.345        .15415E-02   -1.4407    
   4  Prefactor     .10000E-03    5.7288        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7918        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    97.259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2682        11.875        .48712E-02   -1.5295    
   8  norm          3.5395        6.4213        .53724E-02   -1.5332    
   9  Prefactor     .10000E-03    17.482        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0686        9.8365        .40733E-02   -1.5215    
  11  Prefactor     4.9915        108.48        .44942E-02   -1.5261    
  12  norm          1.3716        1.8498        .92987E-02   -1.5474    
  13  Prefactor     39.712        26.168        .15899E-02   -1.4447    
  14  Prefactor     .10000E-03    19.787        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.8270        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.8298        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.020        20.256        .31661E-02   -1.5075    
  18  norm          3.5961        3.2503        .53267E-02   -1.5329    
  19  Prefactor     .10000E-03    13.160        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .49678E-03    48.315        .15058       -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.780        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4663        .30162        .79082E-01   -.78729    
  25  Prefactor     .70467        .10238        .42463E-01   -1.0334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93846e-08
Minuit parameter uncertainties:
  1  1.39545
  2  0.00884839
  3  29.3545
  4  9.30336e-07
  5  2.466e-07
  6  0.00354227
  7  11.8815
  8  6.4225
  9  3.88473e-07
  10  9.83911
  11  46.6357
  12  1.84984
  13  26.1757
  14  1.33256e-05
  15  2.10252e-06
  16  4.81638e-09
  17  20.2694
  18  3.25042
  19  9.00461e-07
  20  3.26928e-05
  21  0.277137
  22  0.000171531
  23  1.03249e-05
  24  0.301987
  25  0.102405
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  3.596e+00  3.250e+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:  7.047e-01  1.024e-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.466e+00  3.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.14
Ra Dec: 351.315 39.954
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 2.13e-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) = 4991.58374345
delta logL = 0.600663823574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4991.44350456
delta logL = 0.740902714537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6912       1.0000         .10000E-03   10000.    
     2 'alpha     '    .92942       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70822       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=   4991.444     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6848        1.8129        .80919E-02   -.34178E-03
   2  alpha         .92781        .55548        .41952       -.21883E-04
   3  Normalizat    1.4734        .28428        .78967E-01    .84616E-05
   4  Prefactor     .70822        .99813E-01    .42511E-01    .90278E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.68478
  alpha      = 0.927805
  Normalizat = 1.47343
  Prefactor  = 0.708223
 **********
 **   18 **HESSE 
 **********

 FCN=   4991.444     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .94E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6848        2.7496        .87995E-04   -1.5448    
   2  alpha         .92781        .83011        .18259E-02   -.68011    
   3  Normalizat    1.4734        .32724        .34949E-03   -.78528    
   4  Prefactor     .70822        .11508        .16880E-03   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40261e-13
Minuit parameter uncertainties:
  1  2.74978
  2  0.857671
  3  0.327714
  4  0.115118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859725': 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) = 4991.44350154
delta logL = 0.740905731003

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.685e+00  2.750e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  9.278e-01  8.577e-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:  7.082e-01  1.151e-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.473e+00  3.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.62
Ra Dec: 351.315 39.954
Photon Index (Free Index): 0.93 +/- 0.86
Photon Flux (Free Index): 9.47e-09 +/- 1.22e-08
Energy Flux (Free Index): 6.99e-05 +/- 1.06e-04

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/859725/cmap_HighResolution_499564801_499824001_4FGL_J2325.2+3957_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='6.99e-05', photon_flux_error='3.30e-08', dlogl='7.41e-01', energy_flux='2.36e-05', photon_flux2='9.47e-09', job_status='DONE', time_completed='2021-09-29 17:23:10.501739', photon_index_error2='0.86', photon_index2='0.93', ts='8.14', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.06e-04', EG='1.47', time_epoch_completed='1632961390.5', return_code='0', job_id='859725', GAL2='0.71', EG2='1.47', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='1.22e-08', ts2='9.62', photon_index='1.99' WHERE bin_id='1004' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:23:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 859725: <4FGL_J2325.2+3957_daily_bin1004> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin1004> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 17:10:36 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:10:36 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:10:36 2021
Terminated at Wed Sep 29 17:23:11 2021
Results reported at Wed Sep 29 17:23:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin1004 351.315 39.9542 499564801 499824001 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 :                                   585.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            755 sec.

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

