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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1062
RA = 338.691, Dec = 9.732
tmin = 514598401, tmax = 514857601
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='370796', job_status='RUN', time_executed='2021-09-28 15:15:32.604286', time_epoch_executed='1632867332.6' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1062'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/370796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/370796/ft1_4FGL_J2234.7+0943_daily_bin1062.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/370796/ft2_4FGL_J2234.7+0943_daily_bin1062.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/370796/ft1_4FGL_J2234.7+0943_daily_bin1062.fits outfile=/scratch/kocevski/370796/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1062.fits ra=338.691 dec=9.732 rad=12.0 tmin=514598401.0 tmax=514857601.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 4.09
user 3.86
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/370796/ft1_filtered_4FGL_J2234.7+0943_daily_bin1062.fits" evtable="EVENTS" scfile=/scratch/kocevski/370796/ft2_4FGL_J2234.7+0943_daily_bin1062.fits sctable="SC_DATA" outfile=/scratch/kocevski/370796/ltcube_514598401_514857601_4FGL_J2234.7+0943_daily_bin1062.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/370796/ft2_4FGL_J2234.7+0943_daily_bin1062.fits
.....................!
real 11.79
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/370796/ft1_filtered_4FGL_J2234.7+0943_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/370796/ft2_4FGL_J2234.7+0943_daily_bin1062.fits sctable="SC_DATA" expcube=/scratch/kocevski/370796/ltcube_514598401_514857601_4FGL_J2234.7+0943_daily_bin1062.fits outfile=/scratch/kocevski/370796/expmap_514598401_514857601_4FGL_J2234.7+0943_daily_bin1062.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/370796/ltcube_514598401_514857601_4FGL_J2234.7+0943_daily_bin1062.fits
.....................!
real 190.55
user 185.23
sys 4.91

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/370796/ft1_filtered_4FGL_J2234.7+0943_daily_bin1062.fits scfile=/scratch/kocevski/370796/ft2_4FGL_J2234.7+0943_daily_bin1062.fits outfile=/scratch/kocevski/370796/cmap_514598401_514857601_4FGL_J2234.7+0943_daily_bin1062.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/370796/ft1_filtered_4FGL_J2234.7+0943_daily_bin1062.fits scfile=/scratch/kocevski/370796/ft2_4FGL_J2234.7+0943_daily_bin1062.fits outfile=/scratch/kocevski/370796/cmap_HighResolution_514598401_514857601_4FGL_J2234.7+0943_daily_bin1062.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.55
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/370796/ft1_filtered_4FGL_J2234.7+0943_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/370796/ft2_4FGL_J2234.7+0943_daily_bin1062.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/370796/Model_4FGL_J2234.7+0943_daily_bin1062.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/370796/ft1_filtered_4FGL_J2234.7+0943_daily_bin1062.fits.....................!
real 102.55
user 100.76
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7681       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .47820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.9589       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.668       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7430       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4001       1.0000         .10000E-03   10000.    
    12 'norm      '    .99146       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8649       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11067E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.807       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.023       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99906       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97834       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=   10321.21     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2359 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7678        3.2159        .33705E-07   -.35617E-04
   2  norm          .10000E-03    5.3827        .26108E-07** at limit **
   3  norm          .47819        .79168       -.14687E-07   -.74473E-04
   4  Prefactor     .10000E-03    11.194        .23598E-06** at limit **
   5  Prefactor     .10000E-03    23.678        .39907E-06** at limit **
   6  Prefactor     .10000E-03    26.609        .28443E-05** at limit **
   7  norm          5.9584        4.4873        .13369E-05   -.57721E-03
   8  Prefactor     14.668        13.242       -.22047E-09   -.11242E-04
   9  Prefactor     .10000E-03    4.6405       -.39558E-07** at limit **
  10  Prefactor     5.7429        .45463       -.19411E-08   -.84442E-04
  11  Prefactor     7.4003        6.9004        .41138E-07   -.96650E-05
  12  norm          .99142        .78973       -.20860E-07    .13823E-03
  13  Prefactor     .10000E-03    38.339       -.17724E-05** at limit **
  14  Prefactor     .10000E-03    4.3171        .64537E-08** at limit **
  15  Prefactor     .10000E-03    8.4282       -.75347E-07** at limit **
  16  Prefactor     1.8648        .25105       -.38781E-08   -.69104E-03
  17  Prefactor     .10000E-03    21.191       -.17523E-05** at limit **
  18  Prefactor     .10002E-03    4.4018        .34417E-06** at limit **
  19  Prefactor     17.803        16.215       -.93904E-07   -.82464E-04
  20  Prefactor     35.015        26.143       -.83124E-06   -.20115E-03
  21  Normalizat    .99932        .23592        .59046E-07   -.59687E-04
  22  Prefactor     .97820        .12538       -.15854E-06   -.59235E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.76778
  norm       = 0.0001
  norm       = 0.478188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 5.95837
  Prefactor  = 14.6675
  Prefactor  = 0.0001
  Prefactor  = 5.74294
  Prefactor  = 7.40031
  norm       = 0.991424
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.8648
  Prefactor  = 0.000100002
  Prefactor  = 0.00010002
  Prefactor  = 17.8025
  Prefactor  = 35.0151
  Normalizat = 0.999322
  Prefactor  = 0.978202
 **********
 **   18 **HESSE 
 **********

 FCN=   10321.21     FROM HESSE     STATUS=OK           346 CALLS     2705 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7678        3.2166        .12103E-03   -1.5188    
   2  norm          .10000E-03    5.3842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .47819        .79121        .44726E-04   -1.5570    
   4  Prefactor     .10000E-03    11.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.9584        4.5966        .82248E-03   -1.5220    
   8  Prefactor     14.668        13.255        .10458E-03   -1.4942    
   9  Prefactor     .10000E-03    4.6461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.7429        .45623        .18034E-04   -1.5229    
  11  Prefactor     7.4003        6.9021        .14744E-03   -1.5164    
  12  norm          .99142        .96229        .78603E-03   -1.5509    
  13  Prefactor     .10000E-03    39.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8648        .24893        .17478E-04   -1.5435    
  17  Prefactor     .10000E-03    21.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    44.761        .39688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.803        16.124        .94912E-04   -1.4864    
  20  Prefactor     35.015        26.561        .67715E-04   -1.4524    
  21  Normalizat    .99932        .27561        .41929E-03   -.93053    
  22  Prefactor     .97820        .14766        .23306E-03   -.93460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98112e-10
Minuit parameter uncertainties:
  1  3.21671
  2  2.04942e-06
  3  0.791231
  4  2.85425e-05
  5  6.44817e-05
  6  0.000681505
  7  4.59686
  8  13.2581
  9  5.19075e-06
  10  0.45623
  11  6.90284
  12  0.962305
  13  0.000534632
  14  8.67822e-08
  15  1.11981e-05
  16  0.248934
  17  0.000374577
  18  0.00188815
  19  16.1274
  20  26.5704
  21  0.275999
  22  0.147725
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  7.400e+00  6.903e+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:  9.782e-01  1.477e-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.993e-01  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.90e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.31e-05

TS (Fixed Index): 2.21
Ra Dec: 338.691 9.732
Photon Flux Upper Limit: 6.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/370796/likelihoodResults_514598401_514857601_4FGL_J2234.7+0943_daily_bin1062.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) = 10321.1708925
delta logL = 0.0435620100761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10321.1692942
delta logL = 0.0451602837657

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4812       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.4106       1.0000          .0000       10.000    
     3 'Normalizat'    .99164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97902       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10321.17     FROM MIGRAD    STATUS=FAILED        91 CALLS      290 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4802        8.4852        .15764E-03   -.33721E-03
   2  Index1        1.4105        1.4566        .17487E-01    .54349E-03
   3  Normalizat    .99165        .26764        .42045E-03   -.11930E-03
   4  Prefactor     .97900        .14728        .23285E-03   -.37959E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10321.17     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      361 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4802        8.4852        .11062E-03   -1.5199    
   2  Index1        1.4105        1.4566        .12702E-02   -.80079    
   3  Normalizat    .99165        .26764        .54071E-03   -.93311    
   4  Prefactor     .97900        .14728        .25817E-03   -.93433    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10321.17     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      389 TOTAL
                     EDM=   .10E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4802        7.4926        .63058E-05   -.93751E-05
   2  Index1        1.4105        1.2983        .34974E-02   -.11312E-05
   3  Normalizat    .99165        .26681        .16818E-04   -.54079E-06
   4  Prefactor     .97900        .14725        .46570E-04   -.97647E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.48021
  Index1     = 1.41046
  Normalizat = 0.991649
  Prefactor  = 0.979005
 **********
 **   18 **HESSE 
 **********

 FCN=   10321.17     FROM HESSE     STATUS=OK            25 CALLS      414 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4802        7.3216        .12612E-05   -1.5199    
   2  Index1        1.4105        1.2706        .13990E-03   -.80079    
   3  Normalizat    .99165        .26645        .33636E-05   -.93311    
   4  Prefactor     .97900        .14715        .93141E-05   -.93433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40918e-13
Minuit parameter uncertainties:
  1  7.32265
  2  1.30061
  3  0.26681
  4  0.147209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/370796': 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) = 10321.1692942
delta logL = 0.0451603451693

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  6.480e+00  7.323e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.410e+00  1.301e+00  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.790e-01  1.472e-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.916e-01  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.41 +/- 1.30
Photon Flux (Free Index): 3.51e-08 +/- 6.27e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.37e-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/370796/cmap_HighResolution_514598401_514857601_4FGL_J2234.7+0943_daily_bin1062.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-05', comment='SUCCESS', photon_flux='1.90e-08', energy_flux2='1.54e-05', photon_flux_error='1.77e-08', dlogl='4.52e-02', energy_flux='1.40e-05', photon_flux2='3.51e-08', job_status='DONE', time_completed='2021-09-28 15:30:03.547896', photon_index_error2='1.30', photon_index2='1.41', ts='2.21', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='6.57e-08', energy_flux_error2='1.37e-05', EG='1.00', time_epoch_completed='1632868203.55', return_code='0', job_id='370796', GAL2='0.98', EG2='0.99', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='6.27e-08', ts2='2.32', photon_index='0.94' WHERE bin_id='1062' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:30:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 370796: <4FGL_J2234.7+0943_daily_bin1062> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1062 338.691 9.732 514598401 514857601 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 :                                   869.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             313.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

