/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 5 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 = 7680
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2311.0+3425_daily_bin441
RA = 347.768, Dec = 34.4223
tmin = 353635201, tmax = 353894401
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='682342', job_status='RUN', time_executed='2021-09-29 07:45:59.577996', time_epoch_executed='1632926759.58' WHERE source_name='4FGL J2311.0+3425' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682342

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682342/ft1_4FGL_J2311.0+3425_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682342/ft2_4FGL_J2311.0+3425_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682342/ft1_4FGL_J2311.0+3425_daily_bin441.fits outfile=/scratch/kocevski/682342/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin441.fits ra=347.768 dec=34.4223 rad=12.0 tmin=353635201.0 tmax=353894401.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.64
user 3.35
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/682342/ft2_4FGL_J2311.0+3425_daily_bin441.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/682342/ft2_4FGL_J2311.0+3425_daily_bin441.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/682342/ft1_filteredMKT_4FGL_J2311.0+3425_daily_bin441.fits evtable="EVENTS" outfile="/scratch/kocevski/682342/ft1_filtered_4FGL_J2311.0+3425_daily_bin441.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/682342/ft1_filtered_4FGL_J2311.0+3425_daily_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/682342/ft2_4FGL_J2311.0+3425_daily_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/682342/ltcube_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.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/682342/ft2_4FGL_J2311.0+3425_daily_bin441.fits
.....................!
real 12.29
user 11.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682342/ft1_filtered_4FGL_J2311.0+3425_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/682342/ft2_4FGL_J2311.0+3425_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/682342/ltcube_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.fits outfile=/scratch/kocevski/682342/expmap_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.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/682342/ltcube_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.fits
.....................!
real 196.26
user 187.21
sys 6.71

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.
Added 157 point sources and 1 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 J2311.0+3425 @ 347.768 34.4223

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/682342/ft1_filtered_4FGL_J2311.0+3425_daily_bin441.fits scfile=/scratch/kocevski/682342/ft2_4FGL_J2311.0+3425_daily_bin441.fits outfile=/scratch/kocevski/682342/cmap_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.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=347.768 yref=34.4223 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/682342/ft1_filtered_4FGL_J2311.0+3425_daily_bin441.fits scfile=/scratch/kocevski/682342/ft2_4FGL_J2311.0+3425_daily_bin441.fits outfile=/scratch/kocevski/682342/cmap_HighResolution_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.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=347.768 yref=34.4223 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682342/ft1_filtered_4FGL_J2311.0+3425_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/682342/ft2_4FGL_J2311.0+3425_daily_bin441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682342/Model_4FGL_J2311.0+3425_daily_bin441.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 EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/682342/ft1_filtered_4FGL_J2311.0+3425_daily_bin441.fits.....................!
real 105.02
user 100.82
sys 2.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/682342/ft1_filtered_4FGL_J2311.0+3425_daily_bin441.fits', '/scratch/kocevski/682342/ft2_4FGL_J2311.0+3425_daily_bin441.fits', expMap='/scratch/kocevski/682342/expmap_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.fits', expCube='/scratch/kocevski/682342/ltcube_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/682342/Model_4FGL_J2311.0+3425_daily_bin441.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2311.0+3425'

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  2.866e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  2.240e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
374         beta:  9.511e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/682342/ft1_filtered_4FGL_J2311.0+3425_daily_bin441.fits
Spacecraft file(s): /scratch/kocevski/682342/ft2_4FGL_J2311.0+3425_daily_bin441.fits
Exposure map: /scratch/kocevski/682342/expmap_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.fits
Exposure cube: /scratch/kocevski/682342/ltcube_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/682342/Model_4FGL_J2311.0+3425_daily_bin441.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) = 9425.00992209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.703       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8443       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5062       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8922       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.881       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9541       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.200       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0366       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9832       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13567E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2682       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3969       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0713       1.0000         .10000E-03   10000.    
    18 'norm      '    .56304       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0782       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7403       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5167       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0511       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9425.008     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     3419 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2962        .12458E-07** at limit **
   2  norm          .10000E-03    .38049        .24252E-07** at limit **
   3  Prefactor     16.695        79.010       -.15369E-04    .65087E-06
   4  Prefactor     1.8463        6.8910        .26070E-07    .24860E-04
   5  Prefactor     3.5093        24.561       -.35139E-05   -.53993E-05
   6  norm          1.8916        2.9085        .51815E-06   -.10162E-02
   7  Prefactor     13.879        12.478       -.85084E-06    .17571E-04
   8  Prefactor     2.9536        5.3344       -.41993E-05   -.74013E-04
   9  Prefactor     11.202        9.2736        .35106E-06    .41305E-04
  10  Prefactor     6.0341        18.230        .23875E-05    .11052E-04
  11  norm          1.9833        1.4845       -.11024E-07    .54061E-04
  12  Prefactor     .10001E-03    16.299       -.10596E-05** at limit **
  13  Prefactor     8.2646        9.8739       -.41068E-05   -.34294E-04
  14  Prefactor     .10000E-03    39.538        .50595E-06** at limit **
  15  norm          .10000E-03    4.3640       -.17244E-06** at limit **
  16  norm          2.3948        7.1813        .36976E-05   -.13624E-04
  17  Prefactor     2.0703        12.587       -.19148E-06   -.39766E-03
  18  norm          .56475        1.3847        .21307E-06    .39810E-03
  19  Prefactor     .10000E-03    4.9405        .71027E-07** at limit **
  20  Prefactor     4.0921        52.714        .32884E-05   -.18556E-07
  21  Prefactor     7.7390        20.278        .14025E-05    .19168E-05
  22  Prefactor     2.5167        3.3341       -.16357E-06   -.15897E-02
  23  Normalizat    1.0507        .19884        .10893E-05    .11905E-03
  24  Prefactor     .99479        .86139E-01    .43886E-06    .13286E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.6948
  Prefactor  = 1.84634
  Prefactor  = 3.50929
  norm       = 1.89157
  Prefactor  = 13.8791
  Prefactor  = 2.95357
  Prefactor  = 11.2016
  Prefactor  = 6.03406
  norm       = 1.9833
  Prefactor  = 0.000100007
  Prefactor  = 8.26455
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.39476
  Prefactor  = 2.07031
  norm       = 0.564752
  Prefactor  = 0.0001
  Prefactor  = 4.09212
  Prefactor  = 7.739
  Prefactor  = 2.51668
  Normalizat = 1.05075
  Prefactor  = 0.99479
 **********
 **   18 **HESSE 
 **********

 FCN=   9425.008     FROM HESSE     STATUS=OK           415 CALLS     3834 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .39591        .11647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.695        79.175        .97998E-04   -1.4891    
   4  Prefactor     1.8463        6.7144        .30709E-03   -1.5436    
   5  Prefactor     3.5093        24.429        .21591E-03   -1.5333    
   6  norm          1.8916        3.0456        .92976E-03   -1.5433    
   7  Prefactor     13.879        12.474        .10751E-03   -1.4963    
   8  Prefactor     2.9536        5.3024        .23628E-03   -1.5364    
   9  Prefactor     11.202        9.2696        .11971E-03   -1.5038    
  10  Prefactor     6.0341        18.221        .16342E-03   -1.5217    
  11  norm          1.9833        1.4730        .96105E-04   -1.5426    
  12  Prefactor     .10001E-03    146.77        .74186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2646        9.8294        .13942E-03   -1.5133    
  14  Prefactor     .10000E-03    40.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3948        7.1664        .26450E-03   -1.5398    
  17  Prefactor     2.0703        16.925        .14351E-02   -1.5420    
  18  norm          .56475        1.2032        .17189E-02   -1.5558    
  19  Prefactor     .10000E-03    4.9432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0921        53.021        .19965E-03   -1.5303    
  21  Prefactor     7.7390        20.604        .14413E-03   -1.5152    
  22  Prefactor     2.5167        4.8872        .12877E-02   -1.5391    
  23  Normalizat    1.0507        .22813        .35392E-03   -.91349    
  24  Prefactor     .99479        .10077        .16385E-03   -.92903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21736e-09
Minuit parameter uncertainties:
  1  2.01998e-06
  2  1.19338e-06
  3  72.8708
  4  6.71713
  5  18.5285
  6  3.04585
  7  12.4764
  8  5.30324
  9  9.27082
  10  18.2378
  11  1.47303
  12  0.00201035
  13  9.83131
  14  6.57957e-05
  15  7.61277e-06
  16  7.16892
  17  11.8433
  18  1.20327
  19  3.02007e-06
  20  29.4916
  21  20.6231
  22  4.88794
  23  0.228348
  24  0.100786
Done.

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

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  1.983e+00  1.473e+00  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  2.240e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
374         beta:  9.511e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.948e-01  1.008e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.051e+00  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.50
Ra Dec: 347.768 34.422
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.48e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.45e-05

TS (Fixed Index): 2.50
Ra Dec: 347.768 34.422
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682342/likelihoodResults_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.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) = 9422.10061204
delta logL = 2.90752126863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9421.91552224
delta logL = 3.09261106999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20070       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .90382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0411       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+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=   9421.916     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      296 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20065        .11412        .17575E-04   -.16068E-02
   2  alpha         5.0000        .61836        .50000    ** at limit **
   3  Normalizat    .90395        .22401        .37744E-03   -.74397E-04
   4  Prefactor     1.0411        .99410E-01    .16045E-03   -.18051E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.200652
  alpha      = 5
  Normalizat = 0.903947
  Prefactor  = 1.04107
 **********
 **   18 **HESSE 
 **********

 FCN=   9421.916     FROM HESSE     STATUS=OK            29 CALLS      325 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20065        .11488        .70300E-06   -1.5618    
   2  alpha         5.0000        .64100        .48939        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .90395        .22407        .15098E-04   -.96322    
   4  Prefactor     1.0411        .99457E-01    .32090E-04   -.91373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63336e-11
Minuit parameter uncertainties:
  1  0.114882
  2  1.97754e-05
  3  0.224303
  4  0.099475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682342': 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) = 9421.91552004
delta logL = 3.09261327326

Extracting fit parameters...

4FGL J2311.0+3425
   Spectrum: LogParabola
372         norm:  2.007e-01  1.149e-01  1.000e-04  1.000e+04 ( 1.000e-11)
373        alpha:  5.000e+00  1.978e-05  0.000e+00  5.000e+00 ( 1.000e+00)
374         beta:  9.511e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
375           Eb:  5.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.041e+00  9.947e-02  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  9.039e-01  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.34
Ra Dec: 347.768 34.422
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.46e-07 +/- 8.33e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.13e-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/682342/cmap_HighResolution_353635201_353894401_4FGL_J2311.0+3425_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-05', comment='SUCCESS', photon_flux='5.48e-08', energy_flux2='1.98e-05', photon_flux_error='4.07e-08', dlogl='3.09e+00', energy_flux='1.95e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-29 08:02:02.407947', photon_index_error2='0.00', photon_index2='5.00', ts='2.50', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.13e-05', EG='1.05', time_epoch_completed='1632927722.41', return_code='0', job_id='682342', GAL2='1.04', EG2='0.90', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='8.33e-08', ts2='9.34', photon_index='2.24' WHERE bin_id='441' AND source_name='4FGL J2311.0+3425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 08:02:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 682342: <4FGL_J2311.0+3425_daily_bin441> in cluster <slac> Done

Job <4FGL_J2311.0+3425_daily_bin441> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:45:43 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:45:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 07:45:45 2021
Terminated at Wed Sep 29 08:02:02 2021
Results reported at Wed Sep 29 08:02:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2311.0+3425_daily_bin441 347.768 34.4223 353635201 353894401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2311.0+3425 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   951.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             351.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

