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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin83
RA = 351.315, Dec = 39.9542
tmin = 260841601, tmax = 261100801
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='854959', job_status='RUN', time_executed='2021-09-29 16:58:57.623218', time_epoch_executed='1632959937.62' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854959/ft1_4FGL_J2325.2+3957_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854959/ft2_4FGL_J2325.2+3957_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854959/ft1_4FGL_J2325.2+3957_daily_bin83.fits outfile=/scratch/kocevski/854959/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin83.fits ra=351.315 dec=39.9542 rad=12.0 tmin=260841601.0 tmax=261100801.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.60
user 1.40
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854959/ft2_4FGL_J2325.2+3957_daily_bin83.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/854959/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin83.fits evtable="EVENTS" outfile="/scratch/kocevski/854959/ft1_filtered_4FGL_J2325.2+3957_daily_bin83.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/854959/ft1_filtered_4FGL_J2325.2+3957_daily_bin83.fits" evtable="EVENTS" scfile=/scratch/kocevski/854959/ft2_4FGL_J2325.2+3957_daily_bin83.fits sctable="SC_DATA" outfile=/scratch/kocevski/854959/ltcube_260841601_261100801_4FGL_J2325.2+3957_daily_bin83.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/854959/ft2_4FGL_J2325.2+3957_daily_bin83.fits
.....................!
real 14.30
user 13.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854959/ft1_filtered_4FGL_J2325.2+3957_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/854959/ft2_4FGL_J2325.2+3957_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/854959/ltcube_260841601_261100801_4FGL_J2325.2+3957_daily_bin83.fits outfile=/scratch/kocevski/854959/expmap_260841601_261100801_4FGL_J2325.2+3957_daily_bin83.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/854959/ltcube_260841601_261100801_4FGL_J2325.2+3957_daily_bin83.fits
.....................!
real 190.84
user 185.73
sys 4.73

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/854959/ft1_filtered_4FGL_J2325.2+3957_daily_bin83.fits scfile=/scratch/kocevski/854959/ft2_4FGL_J2325.2+3957_daily_bin83.fits outfile=/scratch/kocevski/854959/cmap_260841601_261100801_4FGL_J2325.2+3957_daily_bin83.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.59
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854959/ft1_filtered_4FGL_J2325.2+3957_daily_bin83.fits scfile=/scratch/kocevski/854959/ft2_4FGL_J2325.2+3957_daily_bin83.fits outfile=/scratch/kocevski/854959/cmap_HighResolution_260841601_261100801_4FGL_J2325.2+3957_daily_bin83.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2557       1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.306       1.0000         .10000E-03   10000.    
     3 'norm      '    11.014       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11388E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8622       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5111       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2089       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0506       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4123       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.1396       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9282       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.413       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4319       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86714       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=   8400.224     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2912 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2827        70.996        .13699E-04    .18756E-03
   2  Prefactor     53.299        36.319       -.99989E-06   -.89590E-04
   3  norm          11.012        15.050       -.36353E-07   -.27140E-04
   4  Prefactor     .10000E-03    3.2617       -.53151E-07** at limit **
   5  Prefactor     .10000E-03    2.9056       -.99167E-07** at limit **
   6  Prefactor     .10000E-03    23.451        .96020E-06** at limit **
   7  Prefactor     .10000E-03    11.905       -.72924E-06** at limit **
   8  norm          .10000E-03    2.9208       -.17431E-06** at limit **
   9  Prefactor     .10000E-03    4.9417        .54848E-07** at limit **
  10  Prefactor     3.8617        6.7002        .23701E-06   -.28139E-04
  11  Prefactor     .10000E-03    8.4332       -.50750E-06** at limit **
  12  norm          3.5111        1.6447        .44675E-08   -.82382E-04
  13  Prefactor     .10000E-03    8.9251        .39216E-06** at limit **
  14  Prefactor     6.2087        25.986        .94641E-07   -.53523E-05
  15  norm          2.0502        3.6881        .59549E-06    .10486E-03
  16  norm          3.4122        6.5279        .47151E-05   -.61996E-03
  17  Prefactor     .10000E-03    15.363       -.93347E-06** at limit **
  18  norm          6.1395        3.0021       -.36298E-07   -.14377E-04
  19  Prefactor     .10000E-03    10.381        .74237E-06** at limit **
  20  Prefactor     .10000E-03    20.816        .10572E-05** at limit **
  21  Prefactor     5.9280        34.086        .15024E-06   -.87761E-05
  22  Prefactor     .10000E-03    27.204       -.11826E-05** at limit **
  23  Prefactor     11.414        7.8098        .21679E-07    .38537E-06
  24  Normalizat    1.4319        .23000        .42113E-07   -.40070E-04
  25  Prefactor     .86712        .84257E-01   -.37473E-06    .42755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.28272
  Prefactor  = 53.2991
  norm       = 11.0119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.8617
  Prefactor  = 0.0001
  norm       = 3.51108
  Prefactor  = 0.0001
  Prefactor  = 6.20866
  norm       = 2.05022
  norm       = 3.41218
  Prefactor  = 0.0001
  norm       = 6.13947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.92798
  Prefactor  = 0.000100001
  Prefactor  = 11.4138
  Normalizat = 1.43193
  Prefactor  = 0.867122
 **********
 **   18 **HESSE 
 **********

 FCN=   8400.224     FROM HESSE     STATUS=OK           425 CALLS     3337 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2827        80.678        .19531E-03   -1.5294    
   2  Prefactor     53.299        36.668        .54935E-04   -1.4247    
   3  norm          11.012        15.060        .12072E-03   -1.5044    
   4  Prefactor     .10000E-03    3.2709        .16160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9220        .15248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.394        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.9683        .15253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8617        6.6702        .20534E-03   -1.5315    
  11  Prefactor     .10000E-03    8.4508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5111        1.6457        .77027E-04   -1.5333    
  13  Prefactor     .10000E-03    9.0008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2087        25.975        .16111E-03   -1.5210    
  15  norm          2.0502        3.6643        .22874E-03   -1.5422    
  16  norm          3.4122        6.7183        .10950E-02   -1.5339    
  17  Prefactor     .10000E-03    15.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.1395        3.0021        .10774E-03   -1.5212    
  19  Prefactor     .10000E-03    10.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.9280        34.328        .16493E-03   -1.5221    
  22  Prefactor     .10000E-03    27.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.414        7.8174        .11859E-03   -1.5032    
  24  Normalizat    1.4319        .26528        .35491E-03   -.79710    
  25  Prefactor     .86712        .97063E-01    .16832E-03   -.97300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90704e-09
Minuit parameter uncertainties:
  1  37.2343
  2  36.6834
  3  15.0655
  4  1.25665e-06
  5  1.89974e-06
  6  0.000204351
  7  4.84805e-05
  8  3.33116e-06
  9  6.30451e-06
  10  6.67147
  11  6.21912e-05
  12  1.64568
  13  5.3913e-05
  14  25.4173
  15  3.66467
  16  6.71978
  17  0.000175762
  18  3.00218
  19  0.000104878
  20  0.000198709
  21  28.5548
  22  0.000259626
  23  7.81806
  24  0.265535
  25  0.0970818
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  6.139e+00  3.002e+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.671e-01  9.708e-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.432e+00  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.75
Ra Dec: 351.315 39.954
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 6.24e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 1.97e-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) = 8400.11227849
delta logL = 0.11190531851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8400.10721902
delta logL = 0.116964787181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5574       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7934       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86612       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8400.107     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      261 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5576        3.2742        .11254E-03   -.24261E-02
   2  alpha         1.7935        .40562        .13101E-01   -.21478E-03
   3  Normalizat    1.4404        .25021        .35407E-03    .10904E-03
   4  Prefactor     .86614        .95762E-01    .16841E-03    .22379E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.55759
  alpha      = 1.79354
  Normalizat = 1.4404
  Prefactor  = 0.866142
 **********
 **   18 **HESSE 
 **********

 FCN=   8400.107     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5576        3.2626        .22508E-04   -1.5196    
   2  alpha         1.7935        .40417        .52402E-03   -.28649    
   3  Normalizat    1.4404        .25033        .14163E-04   -.79467    
   4  Prefactor     .86614        .95820E-01    .33683E-04   -.97334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06802e-09
Minuit parameter uncertainties:
  1  3.26271
  2  0.406103
  3  0.250546
  4  0.0958388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854959': 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) = 8400.1072189
delta logL = 0.11696490758

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  6.558e+00  3.263e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  1.794e+00  4.061e-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.661e-01  9.584e-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.440e+00  2.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.98
Ra Dec: 351.315 39.954
Photon Index (Free Index): 1.79 +/- 0.41
Photon Flux (Free Index): 5.21e-08 +/- 3.28e-08
Energy Flux (Free Index): 4.89e-05 +/- 3.24e-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/854959/cmap_HighResolution_260841601_261100801_4FGL_J2325.2+3957_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.24e-08', energy_flux2='4.89e-05', photon_flux_error='3.05e-08', dlogl='1.17e-01', energy_flux='4.02e-05', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-09-29 17:11:35.564752', photon_index_error2='0.41', photon_index2='1.79', ts='11.75', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='3.24e-05', EG='1.43', time_epoch_completed='1632960695.56', return_code='0', job_id='854959', GAL2='0.87', EG2='1.44', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='3.28e-08', ts2='11.98', photon_index='1.99' WHERE bin_id='83' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:11:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 854959: <4FGL_J2325.2+3957_daily_bin83> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin83 351.315 39.9542 260841601 261100801 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 :                                   755.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

