/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 103 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2325.2+3957_daily_bin10
RA = 351.315, Dec = 39.9542
tmin = 241920001, tmax = 242179201
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='854845', job_status='RUN', time_executed='2021-09-29 16:57:31.247531', time_epoch_executed='1632959851.25' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='10'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854845

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854845/ft1_4FGL_J2325.2+3957_daily_bin10.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854845/ft2_4FGL_J2325.2+3957_daily_bin10.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854845/ft1_4FGL_J2325.2+3957_daily_bin10.fits outfile=/scratch/kocevski/854845/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin10.fits ra=351.315 dec=39.9542 rad=12.0 tmin=241920001.0 tmax=242179201.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 1.42
user 1.23
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854845/ft2_4FGL_J2325.2+3957_daily_bin10.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/854845/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin10.fits evtable="EVENTS" outfile="/scratch/kocevski/854845/ft1_filtered_4FGL_J2325.2+3957_daily_bin10.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/854845/ft1_filtered_4FGL_J2325.2+3957_daily_bin10.fits" evtable="EVENTS" scfile=/scratch/kocevski/854845/ft2_4FGL_J2325.2+3957_daily_bin10.fits sctable="SC_DATA" outfile=/scratch/kocevski/854845/ltcube_241920001_242179201_4FGL_J2325.2+3957_daily_bin10.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/854845/ft2_4FGL_J2325.2+3957_daily_bin10.fits
.....................!
real 12.24
user 11.92
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854845/ft1_filtered_4FGL_J2325.2+3957_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/854845/ft2_4FGL_J2325.2+3957_daily_bin10.fits sctable="SC_DATA" expcube=/scratch/kocevski/854845/ltcube_241920001_242179201_4FGL_J2325.2+3957_daily_bin10.fits outfile=/scratch/kocevski/854845/expmap_241920001_242179201_4FGL_J2325.2+3957_daily_bin10.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/854845/ltcube_241920001_242179201_4FGL_J2325.2+3957_daily_bin10.fits
.....................!
real 190.18
user 185.84
sys 3.95

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/854845/ft1_filtered_4FGL_J2325.2+3957_daily_bin10.fits scfile=/scratch/kocevski/854845/ft2_4FGL_J2325.2+3957_daily_bin10.fits outfile=/scratch/kocevski/854845/cmap_241920001_242179201_4FGL_J2325.2+3957_daily_bin10.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854845/ft1_filtered_4FGL_J2325.2+3957_daily_bin10.fits scfile=/scratch/kocevski/854845/ft2_4FGL_J2325.2+3957_daily_bin10.fits outfile=/scratch/kocevski/854845/cmap_HighResolution_241920001_242179201_4FGL_J2325.2+3957_daily_bin10.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8054       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1761       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16944E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .80455       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.913       1.0000         .10000E-03   10000.    
    12 'norm      '    .94272       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.097       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.2452       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .30454E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.620       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13549E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2583       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80344       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=   8547.360     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2946 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8021        23.283        .11157E-05    .12072E-04
   2  Prefactor     .10000E-03    8.5053        .31016E-06** at limit **
   3  norm          .10000E-03    7.9207        .26608E-06** at limit **
   4  Prefactor     3.1746        5.8844        .30059E-05    .17405E-03
   5  Prefactor     .10000E-03    3.8254       -.10548E-05** at limit **
   6  Prefactor     .10000E-03    19.886        .14046E-06** at limit **
   7  Prefactor     .10000E-03    3.3335       -.33325E-07** at limit **
   8  norm          2.3556        3.3800        .15151E-06   -.14481E-03
   9  Prefactor     3.9728        18.036        .31110E-06   -.20166E-04
  10  Prefactor     .79577        4.3888        .19475E-05   -.47645E-03
  11  Prefactor     16.913        18.353        .19163E-06   -.60694E-05
  12  norm          .94278        .95626        .46359E-07   -.59740E-05
  13  Prefactor     11.096        12.607        .30109E-06   -.48730E-04
  14  Prefactor     .10000E-03    8.0017        .39823E-07** at limit **
  15  norm          .10000E-03    1.6711       -.12017E-06** at limit **
  16  norm          6.2445        11.211        .17730E-06   -.87315E-06
  17  Prefactor     .10000E-03    10.519       -.35296E-06** at limit **
  18  norm          .10000E-03    1.6175        .44597E-07** at limit **
  19  Prefactor     .10000E-03    9.1903       -.14018E-06** at limit **
  20  Prefactor     .10000E-03    35.095       -.83044E-06** at limit **
  21  Prefactor     .10000E-03    152.82        .14347E-04** at limit **
  22  Prefactor     10.629        57.388       -.49867E-05   -.31482E-04
  23  Prefactor     .10000E-03    10.170        .11555E-05** at limit **
  24  Normalizat    1.2583        .20218       -.17750E-05   -.23078E-03
  25  Prefactor     .80344        .75506E-01    .25957E-06   -.45935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.80212
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.17462
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.35559
  Prefactor  = 3.9728
  Prefactor  = 0.795772
  Prefactor  = 16.9125
  norm       = 0.942782
  Prefactor  = 11.0961
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.24453
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.629
  Prefactor  = 0.000100001
  Normalizat = 1.25831
  Prefactor  = 0.803444
 **********
 **   18 **HESSE 
 **********

 FCN=   8547.360     FROM HESSE     STATUS=OK           429 CALLS     3375 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8021        23.276        .16669E-03   -1.5226    
   2  Prefactor     .10000E-03    8.5136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.9473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1746        6.0743        .11370E-02   -1.5352    
   5  Prefactor     .10000E-03    11.643        .33360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3750        .16422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3556        3.3271        .18391E-03   -1.5401    
   9  Prefactor     3.9728        17.929        .20232E-03   -1.5309    
  10  Prefactor     .79577        11.526        .30632E-02   -1.5530    
  11  Prefactor     16.913        18.347        .97388E-04   -1.4885    
  12  norm          .94278        .93797        .87828E-04   -1.5514    
  13  Prefactor     11.096        12.452        .12026E-03   -1.5042    
  14  Prefactor     .10000E-03    8.0108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6801        .11669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2445        11.169        .16063E-03   -1.5208    
  17  Prefactor     .10000E-03    10.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3557        .22439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.2341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    153.03        .42767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.629        57.216        .12294E-03   -1.5056    
  23  Prefactor     .10000E-03    10.331        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2583        .22911        .33180E-03   -.84819    
  25  Prefactor     .80344        .87294E-01    .15594E-03   -.99602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02437e-09
Minuit parameter uncertainties:
  1  23.258
  2  8.48342e-06
  3  3.71772e-05
  4  6.07549
  5  0.000323917
  6  5.11695e-06
  7  1.23571e-05
  8  3.32739
  9  16.8875
  10  6.05803
  11  18.3529
  12  0.937983
  13  12.4544
  14  1.87492e-06
  15  7.27938e-07
  16  11.1731
  17  4.1986e-06
  18  2.29736e-06
  19  3.23698e-06
  20  4.45166e-05
  21  8.61992e-05
  22  49.3944
  23  0.000218741
  24  0.229294
  25  0.0873092
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.000e-04  2.297e-06  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.034e-01  8.731e-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.258e+00  2.293e-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: 6.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854845/likelihoodResults_241920001_242179201_4FGL_J2325.2+3957_daily_bin10.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) = 8547.36124815
delta logL = -0.00141908350452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8547.35982702
delta logL = 2.05090145755e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11790E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0721       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80346       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=   8546.845     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      278 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72584E-01    .93665E-01    .56459E-02    .78963E-02
   2  alpha         4.3359        .63918        .41940       -.49420E-04
   3  Normalizat    1.1971        .20181        .76506E-01   -.51690E-03
   4  Prefactor     .81393        .74788E-01    .43762E-01   -.37897E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0725841
  alpha      = 4.33592
  Normalizat = 1.19707
  Prefactor  = 0.81393
 **********
 **   18 **HESSE 
 **********

 FCN=   8546.845     FROM HESSE     STATUS=OK            29 CALLS      307 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72584E-01    .16084        .25610E-03   -1.5762    
   2  alpha         4.3359        1.0024        .26867E-02    .82473    
   3  Normalizat    1.1971        .22994        .33861E-03   -.86694    
   4  Prefactor     .81393        .86471E-01    .15492E-03   -.99217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81007e-09
Minuit parameter uncertainties:
  1  0.160844
  2  1.0724
  3  0.230139
  4  0.0864853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854845': 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) = 8546.84520533
delta logL = 0.51462373623

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  7.258e-02  1.608e-01  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  4.336e+00  1.072e+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.139e-01  8.649e-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.197e+00  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 351.315 39.954
Photon Index (Free Index): 4.34 +/- 1.07
Photon Flux (Free Index): 6.04e-08 +/- 2.63e-07
Energy Flux (Free Index): 9.12e-06 +/- 3.83e-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/854845/cmap_HighResolution_241920001_242179201_4FGL_J2325.2+3957_daily_bin10.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-05', comment='SUCCESS', energy_flux2='9.12e-06', dlogl='5.15e-01', photon_flux2='6.04e-08', job_status='DONE', time_completed='2021-09-29 17:12:01.672697', photon_index_error2='1.07', photon_index2='4.34', ts='-0.00', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='6.29e-08', energy_flux_error2='3.83e-05', EG='1.26', time_epoch_completed='1632960721.67', return_code='0', job_id='854845', GAL2='0.81', EG2='1.20', return_code2='0', photon_flux_error2='2.63e-07', ts2='1.08', photon_index='1.99' WHERE bin_id='10' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:12:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 854845: <4FGL_J2325.2+3957_daily_bin10> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin10> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:55:36 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:55:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:55:39 2021
Terminated at Wed Sep 29 17:12:02 2021
Results reported at Wed Sep 29 17:12:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin10 351.315 39.9542 241920001 242179201 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 :                                   846.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            986 sec.

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

