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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin774
RA = 338.691, Dec = 9.732
tmin = 439948801, tmax = 440208001
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='366553', job_status='RUN', time_executed='2021-09-28 15:06:34.629165', time_epoch_executed='1632866794.63' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366553

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366553/ft1_4FGL_J2234.7+0943_daily_bin774.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366553/ft2_4FGL_J2234.7+0943_daily_bin774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366553/ft1_4FGL_J2234.7+0943_daily_bin774.fits outfile=/scratch/kocevski/366553/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin774.fits ra=338.691 dec=9.732 rad=12.0 tmin=439948801.0 tmax=440208001.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.36
user 3.19
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/366553/ft2_4FGL_J2234.7+0943_daily_bin774.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/366553/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin774.fits evtable="EVENTS" outfile="/scratch/kocevski/366553/ft1_filtered_4FGL_J2234.7+0943_daily_bin774.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/366553/ft1_filtered_4FGL_J2234.7+0943_daily_bin774.fits" evtable="EVENTS" scfile=/scratch/kocevski/366553/ft2_4FGL_J2234.7+0943_daily_bin774.fits sctable="SC_DATA" outfile=/scratch/kocevski/366553/ltcube_439948801_440208001_4FGL_J2234.7+0943_daily_bin774.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/366553/ft2_4FGL_J2234.7+0943_daily_bin774.fits
.....................!
real 11.97
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366553/ft1_filtered_4FGL_J2234.7+0943_daily_bin774.fits evtable="EVENTS" scfile=/scratch/kocevski/366553/ft2_4FGL_J2234.7+0943_daily_bin774.fits sctable="SC_DATA" expcube=/scratch/kocevski/366553/ltcube_439948801_440208001_4FGL_J2234.7+0943_daily_bin774.fits outfile=/scratch/kocevski/366553/expmap_439948801_440208001_4FGL_J2234.7+0943_daily_bin774.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/366553/ltcube_439948801_440208001_4FGL_J2234.7+0943_daily_bin774.fits
.....................!
real 191.14
user 186.50
sys 4.23

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/366553/ft1_filtered_4FGL_J2234.7+0943_daily_bin774.fits scfile=/scratch/kocevski/366553/ft2_4FGL_J2234.7+0943_daily_bin774.fits outfile=/scratch/kocevski/366553/cmap_439948801_440208001_4FGL_J2234.7+0943_daily_bin774.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366553/ft1_filtered_4FGL_J2234.7+0943_daily_bin774.fits scfile=/scratch/kocevski/366553/ft2_4FGL_J2234.7+0943_daily_bin774.fits outfile=/scratch/kocevski/366553/cmap_HighResolution_439948801_440208001_4FGL_J2234.7+0943_daily_bin774.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/366553/ft1_filtered_4FGL_J2234.7+0943_daily_bin774.fits evtable="EVENTS" scfile=/scratch/kocevski/366553/ft2_4FGL_J2234.7+0943_daily_bin774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366553/Model_4FGL_J2234.7+0943_daily_bin774.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/366553/ft1_filtered_4FGL_J2234.7+0943_daily_bin774.fits.....................!
real 107.54
user 106.06
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.9464       1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.261       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.213       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1934       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7533       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1346       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8727       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2338       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3340       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.449       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0457       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77483       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=   9854.837     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2347 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0627       -.46157E-06** at limit **
   2  norm          8.9140        24.374        .44406E-05   -.44626E-05
   3  norm          .10000E-03    .29324        .90843E-07** at limit **
   4  Prefactor     41.267        26.111       -.69884E-06   -.12074E-04
   5  Prefactor     .10000E-03    9.2592        .20569E-06** at limit **
   6  Prefactor     .10000E-03    11.733       -.13179E-06** at limit **
   7  norm          16.213        6.2526       -.90353E-08   -.47302E-04
   8  Prefactor     .10000E-03    4.6899       -.16863E-07** at limit **
   9  Prefactor     .10000E-03    26.433        .83146E-06** at limit **
  10  Prefactor     2.1934        .32685        .35920E-08   -.16566E-03
  11  Prefactor     6.7526        6.7363       -.50845E-07    .28612E-05
  12  norm          3.1345        1.7636       -.24756E-06   -.30909E-04
  13  Prefactor     .10000E-03    50.838        .21959E-05** at limit **
  14  Prefactor     1.8705        27.136        .12122E-04   -.16199E-04
  15  Prefactor     .10000E-03    9.6923        .16931E-06** at limit **
  16  Prefactor     7.2339        .41938       -.17799E-07   -.10210E-02
  17  Prefactor     .10000E-03    43.178       -.33434E-05** at limit **
  18  Prefactor     3.3313        8.7948        .36572E-06   -.60092E-06
  19  Prefactor     25.451        14.095        .96048E-07    .16434E-04
  20  Prefactor     .10000E-03    9.0640       -.18480E-06** at limit **
  21  Normalizat    1.0454        .23428        .45410E-06    .39210E-04
  22  Prefactor     .77502        .12268       -.63133E-06    .17835E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 8.91402
  norm       = 0.0001
  Prefactor  = 41.2667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.2127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.19338
  Prefactor  = 6.75263
  norm       = 3.13454
  Prefactor  = 0.0001
  Prefactor  = 1.87052
  Prefactor  = 0.0001
  Prefactor  = 7.23394
  Prefactor  = 0.0001
  Prefactor  = 3.33134
  Prefactor  = 25.4505
  Prefactor  = 0.0001
  Normalizat = 1.04539
  Prefactor  = 0.775017
 **********
 **   18 **HESSE 
 **********

 FCN=   9854.837     FROM HESSE     STATUS=OK           346 CALLS     2693 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0846        .10045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.9140        24.428        .13400E-03   -1.5111    
   3  norm          .10000E-03    .42930        .10431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.267        26.169        .62405E-04   -1.4422    
   5  Prefactor     .10000E-03    9.2779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.213        6.2484        .99470E-04   -1.4902    
   8  Prefactor     .10000E-03    4.6973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1934        .32758        .20768E-04   -1.5412    
  11  Prefactor     6.7526        6.7416        .77201E-03   -1.5188    
  12  norm          3.1345        1.7673        .93870E-04   -1.5354    
  13  Prefactor     .10000E-03    51.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8705        27.297        .15216E-02   -1.5434    
  15  Prefactor     .10000E-03    9.6975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.2339        .42021        .14569E-04   -1.5170    
  17  Prefactor     .10000E-03    43.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3313        8.7817        .22167E-03   -1.5343    
  19  Prefactor     25.451        14.098        .79408E-04   -1.4699    
  20  Prefactor     .10000E-03    9.0696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0454        .27610        .41282E-03   -.91525    
  22  Prefactor     .77502        .14461        .25388E-03   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29262e-10
Minuit parameter uncertainties:
  1  2.21755e-05
  2  24.4555
  3  1.9457e-06
  4  26.1763
  5  6.96954e-06
  6  4.34813e-06
  7  6.24862
  8  6.1089e-07
  9  3.29903e-05
  10  0.327582
  11  6.74231
  12  1.76732
  13  8.18661e-05
  14  14.2985
  15  1.4241e-06
  16  0.420208
  17  0.000143179
  18  8.7851
  19  14.0998
  20  5.25887e-06
  21  0.27648
  22  0.14468
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  6.753e+00  6.742e+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:  7.750e-01  1.447e-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.045e+00  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.31
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/366553/likelihoodResults_439948801_440208001_4FGL_J2234.7+0943_daily_bin774.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) = 9854.26143258
delta logL = 0.575487600094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9854.2345598
delta logL = 0.602360372299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3730       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0923       1.0000          .0000       10.000    
     3 'Normalizat'    .99549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78260       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=   9854.235     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      262 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3715        43.136        .48151E-02    .81070E-03
   2  Index1        2.0927        2.3247        .16573        .22574E-03
   3  Normalizat    .99553        .76840E-01    .94907E-01    .25506E-04
   4  Prefactor     .78259        .36607E-01    .43490E-01   -.46591E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.37153
  Index1     = 2.09266
  Normalizat = 0.995528
  Prefactor  = 0.782586
 **********
 **   18 **HESSE 
 **********

 FCN=   9854.235     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3715        5.9784        .12731E-03   -1.5290    
   2  Index1        2.0927        .84995        .58751E-02   -.62053    
   3  Normalizat    .99553        .27199        .42044E-03   -.93180    
   4  Prefactor     .78259        .14468        .25207E-03   -1.0037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11258e-10
Minuit parameter uncertainties:
  1  5.97921
  2  0.856259
  3  0.272366
  4  0.144749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366553': 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) = 9854.23455962
delta logL = 0.602360556219

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.372e+00  5.979e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.093e+00  8.563e-01  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:  7.826e-01  1.447e-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.955e-01  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 338.691 9.732
Photon Index (Free Index): 2.09 +/- 0.86
Photon Flux (Free Index): 9.09e-08 +/- 8.05e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.49e-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/366553/cmap_HighResolution_439948801_440208001_4FGL_J2234.7+0943_daily_bin774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-05', comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='2.31e-05', photon_flux_error='1.73e-08', dlogl='6.02e-01', energy_flux='1.28e-05', photon_flux2='9.09e-08', job_status='DONE', time_completed='2021-09-28 15:21:02.192647', photon_index_error2='0.86', photon_index2='2.09', ts='3.31', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='6.82e-08', energy_flux_error2='1.49e-05', EG='1.05', time_epoch_completed='1632867662.19', return_code='0', job_id='366553', GAL2='0.78', EG2='1.00', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='8.05e-08', ts2='4.50', photon_index='0.94' WHERE bin_id='774' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:21:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 366553: <4FGL_J2234.7+0943_daily_bin774> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:05:32 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:05:33 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:05:33 2021
Terminated at Tue Sep 28 15:21:03 2021
Results reported at Tue Sep 28 15:21:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin774 338.691 9.732 439948801 440208001 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 :                                   867.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             370.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

