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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin307
RA = 338.691, Dec = 9.732
tmin = 318902401, tmax = 319161601
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='364726', job_status='RUN', time_executed='2021-09-28 15:02:30.510851', time_epoch_executed='1632866550.51' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364726/ft1_4FGL_J2234.7+0943_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364726/ft2_4FGL_J2234.7+0943_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364726/ft1_4FGL_J2234.7+0943_daily_bin307.fits outfile=/scratch/kocevski/364726/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin307.fits ra=338.691 dec=9.732 rad=12.0 tmin=318902401.0 tmax=319161601.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.38
user 3.17
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/364726/ft2_4FGL_J2234.7+0943_daily_bin307.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/364726/ft2_4FGL_J2234.7+0943_daily_bin307.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/364726/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin307.fits evtable="EVENTS" outfile="/scratch/kocevski/364726/ft1_filtered_4FGL_J2234.7+0943_daily_bin307.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.47
user 0.33
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364726/ft1_filtered_4FGL_J2234.7+0943_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/364726/ft2_4FGL_J2234.7+0943_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/364726/ltcube_318902401_319161601_4FGL_J2234.7+0943_daily_bin307.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/364726/ft2_4FGL_J2234.7+0943_daily_bin307.fits
.....................!
real 11.88
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364726/ft1_filtered_4FGL_J2234.7+0943_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/364726/ft2_4FGL_J2234.7+0943_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/364726/ltcube_318902401_319161601_4FGL_J2234.7+0943_daily_bin307.fits outfile=/scratch/kocevski/364726/expmap_318902401_319161601_4FGL_J2234.7+0943_daily_bin307.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/364726/ltcube_318902401_319161601_4FGL_J2234.7+0943_daily_bin307.fits
.....................!
real 191.40
user 186.12
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
Added 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2234.7+0943 @ 338.691 9.732

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/364726/ft1_filtered_4FGL_J2234.7+0943_daily_bin307.fits scfile=/scratch/kocevski/364726/ft2_4FGL_J2234.7+0943_daily_bin307.fits outfile=/scratch/kocevski/364726/cmap_318902401_319161601_4FGL_J2234.7+0943_daily_bin307.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=338.691 yref=9.732 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364726/ft1_filtered_4FGL_J2234.7+0943_daily_bin307.fits scfile=/scratch/kocevski/364726/ft2_4FGL_J2234.7+0943_daily_bin307.fits outfile=/scratch/kocevski/364726/cmap_HighResolution_318902401_319161601_4FGL_J2234.7+0943_daily_bin307.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=338.691 yref=9.732 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/364726/ft1_filtered_4FGL_J2234.7+0943_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/364726/ft2_4FGL_J2234.7+0943_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/364726/Model_4FGL_J2234.7+0943_daily_bin307.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 GAL_V02
Working on...
/scratch/kocevski/364726/ft1_filtered_4FGL_J2234.7+0943_daily_bin307.fits.....................!
real 117.73
user 116.30
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/364726/ft1_filtered_4FGL_J2234.7+0943_daily_bin307.fits', '/scratch/kocevski/364726/ft2_4FGL_J2234.7+0943_daily_bin307.fits', expMap='/scratch/kocevski/364726/expmap_318902401_319161601_4FGL_J2234.7+0943_daily_bin307.fits', expCube='/scratch/kocevski/364726/ltcube_318902401_319161601_4FGL_J2234.7+0943_daily_bin307.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/364726/Model_4FGL_J2234.7+0943_daily_bin307.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.7+0943'

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.256e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/364726/ft1_filtered_4FGL_J2234.7+0943_daily_bin307.fits
Spacecraft file(s): /scratch/kocevski/364726/ft2_4FGL_J2234.7+0943_daily_bin307.fits
Exposure map: /scratch/kocevski/364726/expmap_318902401_319161601_4FGL_J2234.7+0943_daily_bin307.fits
Exposure cube: /scratch/kocevski/364726/ltcube_318902401_319161601_4FGL_J2234.7+0943_daily_bin307.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/364726/Model_4FGL_J2234.7+0943_daily_bin307.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) = 10918.0978991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13568E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.160       1.0000         .10000E-03   10000.    
     3 'norm      '    .72937       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.056       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9077       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8799       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8631       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.091       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17596       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6803       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4430       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9868       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27445E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6336       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7759       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.992       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90314       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89763       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10918.03     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2499 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1.2976       -.82730E-06** at limit **
   2  norm          27.123        27.524        .72257E-05    .52830E-04
   3  norm          .72897        .91725       -.10115E-06   -.11494E-03
   4  Prefactor     23.055        22.017       -.22558E-07    .27514E-04
   5  Prefactor     .10000E-03    7.3585        .74119E-06** at limit **
   6  Prefactor     5.9125        29.982       -.49885E-05    .39696E-04
   7  norm          1.8777        .74305        .41409E-07   -.10500E-02
   8  Prefactor     5.8703        10.596       -.45142E-06    .13035E-04
   9  Prefactor     12.108        18.902       -.33409E-05    .99059E-04
  10  Prefactor     .17578        .19596        .76964E-07    .62531E-03
  11  Prefactor     5.6810        5.2513        .17593E-06   -.30893E-04
  12  norm          1.4422        1.6885        .10233E-06    .16108E-05
  13  Prefactor     1.8449        139.54       -.50457E-05    .64133E-05
  14  Prefactor     .10000E-03    73.947       -.37677E-06** at limit **
  15  Prefactor     4.6319        11.355       -.14593E-05    .37698E-04
  16  Prefactor     7.7761        .44302        .25510E-07   -.29164E-03
  17  Prefactor     .10000E-03    8.8768       -.74251E-06** at limit **
  18  Prefactor     .10000E-03    8.1352       -.25549E-06** at limit **
  19  Prefactor     28.992        14.146        .77810E-06   -.86768E-04
  20  Prefactor     .10000E-03    7.4182       -.11710E-05** at limit **
  21  Normalizat    .90314        .21948       -.35290E-06    .15838E-03
  22  Prefactor     .89761        .11348        .10122E-06    .20560E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100009
  norm       = 27.1229
  norm       = 0.728973
  Prefactor  = 23.0552
  Prefactor  = 0.0001
  Prefactor  = 5.9125
  norm       = 1.87775
  Prefactor  = 5.87027
  Prefactor  = 12.1076
  Prefactor  = 0.175782
  Prefactor  = 5.68099
  norm       = 1.44218
  Prefactor  = 1.84488
  Prefactor  = 0.0001
  Prefactor  = 4.63188
  Prefactor  = 7.77608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.992
  Prefactor  = 0.0001
  Normalizat = 0.90314
  Prefactor  = 0.897613
 **********
 **   18 **HESSE 
 **********

 FCN=   10918.03     FROM HESSE     STATUS=OK           356 CALLS     2855 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    9.2635        .22281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.123        27.534        .76870E-04   -1.4666    
   3  norm          .72897        .79683        .10799E-02   -1.5537    
   4  Prefactor     23.055        22.045        .83420E-04   -1.4747    
   5  Prefactor     .10000E-03    7.3724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9125        29.833        .16522E-03   -1.5222    
   7  norm          1.8777        4.4588        .15182E-02   -1.5434    
   8  Prefactor     5.8703        10.462        .16585E-03   -1.5223    
   9  Prefactor     12.108        18.932        .11520E-03   -1.5012    
  10  Prefactor     .17578        .17951        .43867E-03   -1.5624    
  11  Prefactor     5.6810        5.2449        .16854E-03   -1.5231    
  12  norm          1.4422        1.6664        .14238E-03   -1.5468    
  13  Prefactor     1.8449        140.33        .29398E-03   -1.5436    
  14  Prefactor     .10000E-03    76.695        .39846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6319        11.331        .18697E-03   -1.5277    
  16  Prefactor     7.7761        .44226        .15404E-04   -1.5150    
  17  Prefactor     .10000E-03    8.8785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.992        14.115        .74408E-04   -1.4631    
  20  Prefactor     .10000E-03    7.4161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .90314        .25559        .42406E-03   -.96350    
  22  Prefactor     .89761        .13406        .23153E-03   -.96225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97281e-09
Minuit parameter uncertainties:
  1  0.000565922
  2  27.5473
  3  0.796841
  4  22.0526
  5  1.82255e-05
  6  26.583
  7  4.45957
  8  10.465
  9  18.9414
  10  0.179513
  11  5.24529
  12  1.66647
  13  32.2582
  14  0.000115127
  15  11.336
  16  0.44226
  17  1.69446e-05
  18  2.60116e-06
  19  14.1166
  20  2.62011e-05
  21  0.255932
  22  0.13411
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  5.681e+00  5.245e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  8.976e-01  1.341e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.031e-01  2.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.67
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.46e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 9.94e-06

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) = 10917.7699892
delta logL = 0.263892708241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10917.7463888
delta logL = 0.287493103213

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6108       1.0000         .10000E-03   10000.    
     2 'Index1    '    .74865E-05   1.0000          .0000       10.000    
     3 'Normalizat'    .90171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10917.75     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      223 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6119        4.9264        .46861E-02    .55384E-03
   2  Index1        .75657E-10    2.1344        .50000    ** at limit **
   3  Normalizat    .90179        .20583        .95791E-01    .38636E-04
   4  Prefactor     .90243        .11287        .45037E-01    .90655E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.61191
  Index1     = 7.56573e-11
  Normalizat = 0.901793
  Prefactor  = 0.902427
 **********
 **   18 **HESSE 
 **********

 FCN=   10917.75     FROM HESSE     STATUS=OK            35 CALLS      258 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6119        4.9172        .18745E-03   -1.5278    
   2  Index1        .75657E-10    2.1222        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .90179        .24115        .42445E-03   -.96397    
   4  Prefactor     .90243        .13265        .23105E-03   -.96056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61391e-10
Minuit parameter uncertainties:
  1  4.91761
  2  2.63373e-05
  3  0.241443
  4  0.132697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364726': 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) = 10917.7463881
delta logL = 0.287493865375

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.612e+00  4.918e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  7.566e-11  2.634e-05  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  9.024e-01  1.327e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  9.018e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.23
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 5.38e-09 +/- 5.73e-09
Energy Flux (Free Index): 1.23e-05 +/- 1.31e-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/364726/cmap_HighResolution_318902401_319161601_4FGL_J2234.7+0943_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.46e-08', energy_flux2='1.23e-05', photon_flux_error='1.35e-08', dlogl='2.87e-01', energy_flux='1.08e-05', photon_flux2='5.38e-09', job_status='DONE', time_completed='2021-09-28 15:16:02.546532', photon_index_error2='0.00', photon_index2='0.00', ts='5.67', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.90', time_epoch_completed='1632867362.55', return_code='0', job_id='364726', GAL2='0.90', EG2='0.90', return_code2='0', energy_flux_error='9.94e-06', photon_flux_error2='5.73e-09', ts2='6.23', photon_index='0.94' WHERE bin_id='307' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:16:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 364726: <4FGL_J2234.7+0943_daily_bin307> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin307> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 15:00:37 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:00:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:00:39 2021
Terminated at Tue Sep 28 15:16:03 2021
Results reported at Tue Sep 28 15:16:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin307 338.691 9.732 318902401 319161601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.7+0943 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   811.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

