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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1356
RA = 338.691, Dec = 9.732
tmin = 590803201, tmax = 591062401
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='371268', job_status='RUN', time_executed='2021-09-28 15:19:42.835571', time_epoch_executed='1632867582.84' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371268/ft1_4FGL_J2234.7+0943_daily_bin1356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371268/ft2_4FGL_J2234.7+0943_daily_bin1356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371268/ft1_4FGL_J2234.7+0943_daily_bin1356.fits outfile=/scratch/kocevski/371268/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1356.fits ra=338.691 dec=9.732 rad=12.0 tmin=590803201.0 tmax=591062401.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 5.52
user 5.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371268/ft1_filtered_4FGL_J2234.7+0943_daily_bin1356.fits" evtable="EVENTS" scfile=/scratch/kocevski/371268/ft2_4FGL_J2234.7+0943_daily_bin1356.fits sctable="SC_DATA" outfile=/scratch/kocevski/371268/ltcube_590803201_591062401_4FGL_J2234.7+0943_daily_bin1356.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/371268/ft2_4FGL_J2234.7+0943_daily_bin1356.fits
.....................!
real 11.65
user 11.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371268/ft1_filtered_4FGL_J2234.7+0943_daily_bin1356.fits evtable="EVENTS" scfile=/scratch/kocevski/371268/ft2_4FGL_J2234.7+0943_daily_bin1356.fits sctable="SC_DATA" expcube=/scratch/kocevski/371268/ltcube_590803201_591062401_4FGL_J2234.7+0943_daily_bin1356.fits outfile=/scratch/kocevski/371268/expmap_590803201_591062401_4FGL_J2234.7+0943_daily_bin1356.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/371268/ltcube_590803201_591062401_4FGL_J2234.7+0943_daily_bin1356.fits
.....................!
real 190.22
user 184.70
sys 4.84

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/371268/ft1_filtered_4FGL_J2234.7+0943_daily_bin1356.fits scfile=/scratch/kocevski/371268/ft2_4FGL_J2234.7+0943_daily_bin1356.fits outfile=/scratch/kocevski/371268/cmap_590803201_591062401_4FGL_J2234.7+0943_daily_bin1356.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 4.63
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371268/ft1_filtered_4FGL_J2234.7+0943_daily_bin1356.fits scfile=/scratch/kocevski/371268/ft2_4FGL_J2234.7+0943_daily_bin1356.fits outfile=/scratch/kocevski/371268/cmap_HighResolution_590803201_591062401_4FGL_J2234.7+0943_daily_bin1356.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.59
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371268/ft1_filtered_4FGL_J2234.7+0943_daily_bin1356.fits evtable="EVENTS" scfile=/scratch/kocevski/371268/ft2_4FGL_J2234.7+0943_daily_bin1356.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371268/Model_4FGL_J2234.7+0943_daily_bin1356.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/371268/ft1_filtered_4FGL_J2234.7+0943_daily_bin1356.fits....................!
real 71.02
user 69.60
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/371268/ft1_filtered_4FGL_J2234.7+0943_daily_bin1356.fits', '/scratch/kocevski/371268/ft2_4FGL_J2234.7+0943_daily_bin1356.fits', expMap='/scratch/kocevski/371268/expmap_590803201_591062401_4FGL_J2234.7+0943_daily_bin1356.fits', expCube='/scratch/kocevski/371268/ltcube_590803201_591062401_4FGL_J2234.7+0943_daily_bin1356.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/371268/Model_4FGL_J2234.7+0943_daily_bin1356.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/371268/ft1_filtered_4FGL_J2234.7+0943_daily_bin1356.fits
Spacecraft file(s): /scratch/kocevski/371268/ft2_4FGL_J2234.7+0943_daily_bin1356.fits
Exposure map: /scratch/kocevski/371268/expmap_590803201_591062401_4FGL_J2234.7+0943_daily_bin1356.fits
Exposure cube: /scratch/kocevski/371268/ltcube_590803201_591062401_4FGL_J2234.7+0943_daily_bin1356.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/371268/Model_4FGL_J2234.7+0943_daily_bin1356.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) = 6726.34382235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .56958       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.629       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.775       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65509       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6193       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9532       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0123       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.715       1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.830       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75081       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0374       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3089       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.272       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7731       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .53880       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=   6726.271     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2073 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9349        .12538E-06** at limit **
   2  norm          .10000E-03    50.059       -.15503E-06** at limit **
   3  norm          .56964        .76265        .12840E-06    .28351E-03
   4  Prefactor     15.623        20.642       -.31042E-06   -.61500E-04
   5  Prefactor     .10000E-03    8.4770        .28269E-07** at limit **
   6  Prefactor     .10000E-03    26.865        .30118E-07** at limit **
   7  norm          .10000E-03    2.2543        .33768E-07** at limit **
   8  Prefactor     .10000E-03    11.690        .75335E-07** at limit **
   9  Prefactor     24.774        17.317       -.39885E-07   -.26425E-04
  10  Prefactor     .65512        .21822        .26008E-08   -.15441E-03
  11  Prefactor     4.6193        4.6774       -.32133E-06   -.21400E-03
  12  norm          1.9531        1.6920        .52198E-08    .16257E-05
  13  Prefactor     5.0122        14.953        .19317E-06   -.71172E-05
  14  Prefactor     43.715        20.109       -.83920E-08   -.13949E-04
  15  Prefactor     32.831        22.049       -.63670E-07   -.50833E-05
  16  Prefactor     .75082        .17419       -.33632E-08   -.11618E-03
  17  Prefactor     .10000E-03    49.647        .44124E-06** at limit **
  18  Prefactor     5.0367        7.2939        .19925E-07   -.43424E-04
  19  Prefactor     6.3095        10.554        .32608E-05   -.23531E-03
  20  Prefactor     14.252        25.408       -.28228E-05   -.25251E-03
  21  Normalizat    1.7731        .23966       -.11624E-06   -.31200E-04
  22  Prefactor     .53880        .12552       -.16632E-06   -.29994E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.569636
  Prefactor  = 15.6228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7744
  Prefactor  = 0.655118
  Prefactor  = 4.61927
  norm       = 1.95312
  Prefactor  = 5.01216
  Prefactor  = 43.7148
  Prefactor  = 32.8307
  Prefactor  = 0.750817
  Prefactor  = 0.0001
  Prefactor  = 5.03669
  Prefactor  = 6.30951
  Prefactor  = 14.2519
  Normalizat = 1.77311
  Prefactor  = 0.538803
 **********
 **   18 **HESSE 
 **********

 FCN=   6726.271     FROM HESSE     STATUS=OK           350 CALLS     2423 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7528        .22076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    50.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .56964        .67071        .80597E-03   -1.5557    
   4  Prefactor     15.623        20.708        .10131E-03   -1.4917    
   5  Prefactor     .10000E-03    8.4876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.2805        .12022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.774        17.352        .80478E-04   -1.4712    
  10  Prefactor     .65512        .21822        .21000E-04   -1.5546    
  11  Prefactor     4.6193        4.6995        .17457E-03   -1.5278    
  12  norm          1.9531        1.6964        .94177E-04   -1.5428    
  13  Prefactor     5.0122        14.946        .17962E-03   -1.5260    
  14  Prefactor     43.715        20.081        .60635E-04   -1.4385    
  15  Prefactor     32.831        22.061        .69934E-04   -1.4561    
  16  Prefactor     .75082        .17434        .15459E-04   -1.5535    
  17  Prefactor     .10000E-03    49.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0367        7.2806        .17916E-03   -1.5259    
  19  Prefactor     6.3095        10.772        .79905E-03   -1.5206    
  20  Prefactor     14.252        26.975        .10602E-03   -1.4953    
  21  Normalizat    1.7731        .28161        .27534E-03   -.70368    
  22  Prefactor     .53880        .14695        .24947E-03   -1.1023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86567e-10
Minuit parameter uncertainties:
  1  2.96066e-05
  2  7.21205e-05
  3  0.67072
  4  20.7172
  5  2.76031e-06
  6  1.17154e-06
  7  3.19245e-08
  8  7.19491e-07
  9  17.3555
  10  0.218221
  11  4.69992
  12  1.69642
  13  14.9566
  14  20.0845
  15  22.0669
  16  0.174344
  17  0.000160085
  18  7.28184
  19  10.7755
  20  26.998
  21  0.281864
  22  0.147049
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.619e+00  4.700e+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:  5.388e-01  1.470e-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:  1.773e+00  2.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.19e-08 +/- 1.21e-08
Energy Flux (Fixed Index): 8.75e-06 +/- 8.91e-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) = 6725.77480943
delta logL = 0.496449582432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6725.77423783
delta logL = 0.497021190859

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7625       1.0000         .10000E-03   10000.    
     2 'Index1    '    .25750E-07   1.0000          .0000       10.000    
     3 'Normalizat'    1.7759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53961       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=   6725.774     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7624        4.8627        .46092E-02    .94227E-03
   2  Index1        .28866E-13    1.1396        .50000    ** at limit **
   3  Normalizat    1.7759        .23197        .62229E-01    .25465E-05
   4  Prefactor     .53960        .12463        .40224E-01    .31853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.76244
  Index1     = 2.88658e-14
  Normalizat = 1.77592
  Prefactor  = 0.539601
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.774     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7624        4.8598        .17804E-03   -1.5271    
   2  Index1        .28866E-13    1.9544        .55012E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.7759        .27186        .27519E-03   -.70294    
   4  Prefactor     .53960        .14605        .24931E-03   -1.1019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.663e-10
Minuit parameter uncertainties:
  1  4.86021
  2  4.91579e-07
  3  0.272092
  4  0.146149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371268': 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) = 6725.77423782
delta logL = 0.4970212013

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.762e+00  4.860e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.887e-14  4.916e-07  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:  5.396e-01  1.461e-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:  1.776e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.66
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 5.55e-09 +/- 5.67e-09
Energy Flux (Free Index): 1.27e-05 +/- 1.29e-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/371268/cmap_HighResolution_590803201_591062401_4FGL_J2234.7+0943_daily_bin1356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-08', energy_flux2='1.27e-05', photon_flux_error='1.21e-08', dlogl='4.97e-01', energy_flux='8.75e-06', photon_flux2='5.55e-09', job_status='DONE', time_completed='2021-09-28 15:29:31.449646', photon_index_error2='0.00', photon_index2='0.00', ts='4.66', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.77', time_epoch_completed='1632868171.45', return_code='0', job_id='371268', GAL2='0.54', EG2='1.78', return_code2='0', energy_flux_error='8.91e-06', photon_flux_error2='5.67e-09', ts2='5.66', photon_index='0.94' WHERE bin_id='1356' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:29:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 371268: <4FGL_J2234.7+0943_daily_bin1356> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1356> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:16:02 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:16:04 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:16:04 2021
Terminated at Tue Sep 28 15:29:32 2021
Results reported at Tue Sep 28 15:29:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1356 338.691 9.732 590803201 591062401 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 :                                   577.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             236.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            810 sec.

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

