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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin1202
RA = 351.315, Dec = 39.9542
tmin = 550886401, tmax = 551145601
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='861200', job_status='RUN', time_executed='2021-09-29 17:18:50.077869', time_epoch_executed='1632961130.08' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861200

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861200/ft1_4FGL_J2325.2+3957_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861200/ft2_4FGL_J2325.2+3957_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861200/ft1_4FGL_J2325.2+3957_daily_bin1202.fits outfile=/scratch/kocevski/861200/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin1202.fits ra=351.315 dec=39.9542 rad=12.0 tmin=550886401.0 tmax=551145601.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 3.77
user 3.53
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/861200/ft1_filtered_4FGL_J2325.2+3957_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/861200/ft2_4FGL_J2325.2+3957_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/861200/ltcube_550886401_551145601_4FGL_J2325.2+3957_daily_bin1202.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/861200/ft2_4FGL_J2325.2+3957_daily_bin1202.fits
.....................!
real 12.05
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861200/ft1_filtered_4FGL_J2325.2+3957_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/861200/ft2_4FGL_J2325.2+3957_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/861200/ltcube_550886401_551145601_4FGL_J2325.2+3957_daily_bin1202.fits outfile=/scratch/kocevski/861200/expmap_550886401_551145601_4FGL_J2325.2+3957_daily_bin1202.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/861200/ltcube_550886401_551145601_4FGL_J2325.2+3957_daily_bin1202.fits
.....................!
real 190.21
user 185.02
sys 4.72

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/861200/ft1_filtered_4FGL_J2325.2+3957_daily_bin1202.fits scfile=/scratch/kocevski/861200/ft2_4FGL_J2325.2+3957_daily_bin1202.fits outfile=/scratch/kocevski/861200/cmap_550886401_551145601_4FGL_J2325.2+3957_daily_bin1202.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861200/ft1_filtered_4FGL_J2325.2+3957_daily_bin1202.fits scfile=/scratch/kocevski/861200/ft2_4FGL_J2325.2+3957_daily_bin1202.fits outfile=/scratch/kocevski/861200/cmap_HighResolution_550886401_551145601_4FGL_J2325.2+3957_daily_bin1202.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.231       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7225       1.0000         .10000E-03   10000.    
     3 'norm      '    6.0913       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2502       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.075       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    31.132       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13160E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.308       1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.740       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5536       1.0000         .10000E-03   10000.    
    16 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.371       1.0000         .10000E-03   10000.    
    18 'norm      '    4.3350       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1824       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.989       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.928       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8188       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .34293       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98636       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=   3621.438     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2880 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.239        42.380        .15878E-06   -.16612E-04
   2  Prefactor     7.7367        40.940        .40701E-06   -.17951E-04
   3  norm          6.0855        42.056       -.19654E-05   -.18409E-04
   4  Prefactor     7.2447        21.916        .41028E-05   -.62730E-04
   5  Prefactor     19.077        9.7488       -.43527E-06   -.40476E-04
   6  Prefactor     .10000E-03    31.047        .11658E-05** at limit **
   7  Prefactor     .10000E-03    5.7687       -.82171E-07** at limit **
   8  norm          31.135        9.1445       -.26292E-06   -.44042E-04
   9  Prefactor     .10000E-03    12.477        .13332E-07** at limit **
  10  Prefactor     5.5740        6.1963        .85125E-06   -.54215E-04
  11  Prefactor     .10000E-03    137.95       -.20312E-06** at limit **
  12  norm          2.8486        2.2997       -.20657E-06   -.12583E-03
  13  Prefactor     14.317        18.274       -.13512E-05   -.33953E-04
  14  Prefactor     57.759        48.960        .14795E-05   -.29397E-04
  15  norm          5.5527        11.368       -.58009E-06   -.78372E-04
  16  norm          .10000E-03    7.5872       -.20219E-07** at limit **
  17  Prefactor     20.388        37.658       -.26384E-06   -.28730E-04
  18  norm          4.3344        4.1701        .33220E-07   -.27880E-04
  19  Prefactor     5.1860        47.228       -.83643E-06   -.13264E-04
  20  Prefactor     24.989        129.20       -.33190E-05   -.99042E-05
  21  Prefactor     .10000E-03    28.634       -.12167E-05** at limit **
  22  Prefactor     22.897        257.12        .10380E-04   -.10341E-04
  23  Prefactor     3.8407        71.936       -.10628E-04   -.12498E-04
  24  Normalizat    .34258        .43840        .15046E-04   -.44025E-05
  25  Prefactor     .98643        .15286       -.26589E-05   -.64510E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2386
  Prefactor  = 7.73674
  norm       = 6.08551
  Prefactor  = 7.24468
  Prefactor  = 19.0773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.1348
  Prefactor  = 0.0001
  Prefactor  = 5.57401
  Prefactor  = 0.0001
  norm       = 2.84864
  Prefactor  = 14.3174
  Prefactor  = 57.759
  norm       = 5.55272
  norm       = 0.0001
  Prefactor  = 20.3877
  norm       = 4.33444
  Prefactor  = 5.18602
  Prefactor  = 24.9889
  Prefactor  = 0.0001
  Prefactor  = 22.8974
  Prefactor  = 3.84065
  Normalizat = 0.342576
  Prefactor  = 0.986427
 **********
 **   18 **HESSE 
 **********

 FCN=   3621.438     FROM HESSE     STATUS=OK           435 CALLS     3315 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.239        42.217        .84953E-04   -1.4764    
   2  Prefactor     7.7367        40.101        .14430E-03   -1.5152    
   3  norm          6.0855        40.882        .16267E-03   -1.5215    
   4  Prefactor     7.2447        20.834        .14896E-03   -1.5170    
   5  Prefactor     19.077        9.7204        .91706E-04   -1.4834    
   6  Prefactor     .10000E-03    31.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7980        .14104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          31.135        9.1483        .71811E-04   -1.4591    
   9  Prefactor     .10000E-03    12.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5740        6.1762        .15272E-03   -1.5236    
  11  Prefactor     .10000E-03    139.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8486        2.2841        .77185E-04   -1.5370    
  13  Prefactor     14.317        18.129        .10589E-03   -1.4951    
  14  Prefactor     57.759        48.726        .52795E-04   -1.4187    
  15  norm          5.5527        11.360        .17048E-03   -1.5237    
  16  norm          .10000E-03    7.5928        .16190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.388        37.117        .88742E-04   -1.4805    
  18  norm          4.3344        4.1644        .11379E-03   -1.5292    
  19  Prefactor     5.1860        46.751        .17659E-03   -1.5252    
  20  Prefactor     24.989        127.66        .80133E-04   -1.4708    
  21  Prefactor     .10000E-03    28.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.897        231.37        .83653E-04   -1.4751    
  23  Prefactor     3.8407        65.629        .20654E-03   -1.5316    
  24  Normalizat    .34258        .40652        .59054E-03   -1.2038    
  25  Prefactor     .98643        .14569        .14412E-03   -.93183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85541e-11
Minuit parameter uncertainties:
  1  42.2735
  2  35.2647
  3  31.5769
  4  20.8545
  5  9.7212
  6  2.82818e-05
  7  8.62307e-06
  8  9.14871
  9  4.2035e-06
  10  6.17692
  11  0.000103417
  12  2.28421
  13  18.1356
  14  48.7593
  15  11.3639
  16  2.29507e-06
  17  37.159
  18  4.16469
  19  31.1737
  20  113.345
  21  2.77936e-06
  22  146.309
  23  31.7932
  24  0.410093
  25  0.145748
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  4.334e+00  4.165e+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:  9.864e-01  1.457e-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:  3.426e-01  4.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.85
Ra Dec: 351.315 39.954
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.41e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 2.73e-05

TS (Fixed Index): 3.85
Ra Dec: 351.315 39.954
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/861200/likelihoodResults_550886401_551145601_4FGL_J2325.2+3957_daily_bin1202.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) = 3621.41381651
delta logL = 0.0237165937028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3621.40952423
delta logL = 0.0280088707595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9675       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1965       1.0000          .0000       5.0000    
     3 'Normalizat'    .33264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98802       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=   3621.410     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      250 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9676        4.2839        .10528E-03   -.13391E-04
   2  alpha         2.1965        .87598        .14517E-01   -.11841E-04
   3  Normalizat    .33262        .34646        .59889E-03    .11039E-04
   4  Prefactor     .98802        .14053        .14400E-03    .92348E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.96761
  alpha      = 2.19652
  Normalizat = 0.332618
  Prefactor  = 0.988023
 **********
 **   18 **HESSE 
 **********

 FCN=   3621.410     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9676        4.1599        .42110E-05   -1.5310    
   2  alpha         2.1965        .85094        .58069E-03   -.12169    
   3  Normalizat    .33262        .34584        .23956E-04   -1.2094    
   4  Prefactor     .98802        .14038        .28800E-04   -.93130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65097e-11
Minuit parameter uncertainties:
  1  4.16016
  2  0.86857
  3  0.348094
  4  0.140433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861200': 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) = 3621.40952423
delta logL = 0.0280088732625

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  3.968e+00  4.160e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  2.197e+00  8.686e-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:  9.880e-01  1.404e-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:  3.326e-01  3.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.90
Ra Dec: 351.315 39.954
Photon Index (Free Index): 2.20 +/- 0.87
Photon Flux (Free Index): 5.39e-08 +/- 6.48e-08
Energy Flux (Free Index): 2.53e-05 +/- 2.54e-05

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/861200/cmap_HighResolution_550886401_551145601_4FGL_J2325.2+3957_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', comment='SUCCESS', photon_flux='4.41e-08', energy_flux2='2.53e-05', photon_flux_error='4.23e-08', dlogl='2.80e-02', energy_flux='2.84e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-09-29 17:28:35.876900', photon_index_error2='0.87', photon_index2='2.20', ts='3.85', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='2.54e-05', EG='0.34', time_epoch_completed='1632961715.88', return_code='0', job_id='861200', GAL2='0.99', EG2='0.33', return_code2='0', energy_flux_error='2.73e-05', photon_flux_error2='6.48e-08', ts2='3.90', photon_index='1.99' WHERE bin_id='1202' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:28:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 861200: <4FGL_J2325.2+3957_daily_bin1202> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin1202> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 17:15:32 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 17:15:33 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:15:33 2021
Terminated at Wed Sep 29 17:28:36 2021
Results reported at Wed Sep 29 17:28:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin1202 351.315 39.9542 550886401 551145601 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 :                                   544.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            784 sec.

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

