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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1081
RA = 338.691, Dec = 9.732
tmin = 519523201, tmax = 519782401
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='370824', job_status='RUN', time_executed='2021-09-28 15:17:32.274700', time_epoch_executed='1632867452.27' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/370824

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/370824/ft1_4FGL_J2234.7+0943_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/370824/ft2_4FGL_J2234.7+0943_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/370824/ft1_4FGL_J2234.7+0943_daily_bin1081.fits outfile=/scratch/kocevski/370824/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1081.fits ra=338.691 dec=9.732 rad=12.0 tmin=519523201.0 tmax=519782401.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.00
user 2.72
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/370824/ft1_filtered_4FGL_J2234.7+0943_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/370824/ft2_4FGL_J2234.7+0943_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/370824/ltcube_519523201_519782401_4FGL_J2234.7+0943_daily_bin1081.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/370824/ft2_4FGL_J2234.7+0943_daily_bin1081.fits
.....................!
real 12.82
user 12.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/370824/ft1_filtered_4FGL_J2234.7+0943_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/370824/ft2_4FGL_J2234.7+0943_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/370824/ltcube_519523201_519782401_4FGL_J2234.7+0943_daily_bin1081.fits outfile=/scratch/kocevski/370824/expmap_519523201_519782401_4FGL_J2234.7+0943_daily_bin1081.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/370824/ltcube_519523201_519782401_4FGL_J2234.7+0943_daily_bin1081.fits
.....................!
real 191.25
user 185.80
sys 4.80

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/370824/ft1_filtered_4FGL_J2234.7+0943_daily_bin1081.fits scfile=/scratch/kocevski/370824/ft2_4FGL_J2234.7+0943_daily_bin1081.fits outfile=/scratch/kocevski/370824/cmap_519523201_519782401_4FGL_J2234.7+0943_daily_bin1081.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/370824/ft1_filtered_4FGL_J2234.7+0943_daily_bin1081.fits scfile=/scratch/kocevski/370824/ft2_4FGL_J2234.7+0943_daily_bin1081.fits outfile=/scratch/kocevski/370824/cmap_HighResolution_519523201_519782401_4FGL_J2234.7+0943_daily_bin1081.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/370824/ft1_filtered_4FGL_J2234.7+0943_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/370824/ft2_4FGL_J2234.7+0943_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/370824/Model_4FGL_J2234.7+0943_daily_bin1081.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/370824/ft1_filtered_4FGL_J2234.7+0943_daily_bin1081.fits.....................!
real 83.42
user 81.94
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7274       1.0000         .10000E-03   10000.    
     2 'norm      '    .10741E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.847       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.1189       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1094       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50957       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6665       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.591       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6376       1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.837       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .77695       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18503E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6614       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7673       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80860       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0011       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=   8291.601     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2399 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7285        4.1778       -.19882E-06   -.40652E-03
   2  norm          .10000E-03    38.080       -.17392E-05** at limit **
   3  norm          .10000E-03    .40917       -.21385E-07** at limit **
   4  Prefactor     .10000E-03    5.4085       -.45180E-07** at limit **
   5  Prefactor     20.843        24.745        .24736E-05   -.10522E-04
   6  Prefactor     .10000E-03    20.311        .49412E-07** at limit **
   7  norm          7.1189        4.6184        .23017E-06    .89028E-03
   8  Prefactor     2.1020        45.207        .17267E-04   -.86462E-04
   9  Prefactor     .55325        8.4068       -.24740E-05    .29017E-03
  10  Prefactor     5.6666        .51184       -.72382E-07   -.65781E-03
  11  Prefactor     19.588        12.491       -.86468E-06   -.43420E-04
  12  norm          2.6374        1.8316        .23745E-08   -.11585E-04
  13  Prefactor     45.845        34.850        .33174E-06    .77445E-05
  14  Prefactor     .10000E-03    6.8251       -.33831E-07** at limit **
  15  Prefactor     .10000E-03    5.0821       -.11226E-08** at limit **
  16  Prefactor     .77695        .18418        .11208E-07    .44072E-03
  17  Prefactor     .10018E-03    33.782        .39264E-08** at limit **
  18  Prefactor     3.6601        6.5961       -.35059E-06   -.28730E-03
  19  Prefactor     2.7658        14.186       -.77280E-05   -.13177E-03
  20  Prefactor     .10000E-03    9.3450        .54705E-07** at limit **
  21  Normalizat    .80846        .25108        .66030E-07    .23707E-04
  22  Prefactor     1.0012        .13224       -.58505E-07    .74069E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.7285
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8432
  Prefactor  = 0.0001
  norm       = 7.11887
  Prefactor  = 2.10197
  Prefactor  = 0.55325
  Prefactor  = 5.66665
  Prefactor  = 19.5882
  norm       = 2.63743
  Prefactor  = 45.845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.77695
  Prefactor  = 0.000100179
  Prefactor  = 3.66011
  Prefactor  = 2.76584
  Prefactor  = 0.0001
  Normalizat = 0.808461
  Prefactor  = 1.00121
 **********
 **   18 **HESSE 
 **********

 FCN=   8291.601     FROM HESSE     STATUS=OK           354 CALLS     2753 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7285        4.1792        .15062E-03   -1.5229    
   2  norm          .10000E-03    38.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .65409        .11245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.843        24.672        .87723E-04   -1.4795    
   6  Prefactor     .10000E-03    20.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.1189        4.6460        .75173E-03   -1.5174    
   8  Prefactor     2.1020        41.183        .28406E-03   -1.5418    
   9  Prefactor     .55325        58.928        .49751E-02   -1.5559    
  10  Prefactor     5.6666        .51151        .17604E-04   -1.5232    
  11  Prefactor     19.588        12.539        .90491E-04   -1.4823    
  12  norm          2.6374        1.8295        .99802E-04   -1.5383    
  13  Prefactor     45.845        34.868        .59221E-04   -1.4353    
  14  Prefactor     .10000E-03    6.8351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .77695        .18414        .17912E-04   -1.5532    
  17  Prefactor     .10018E-03    284.62        .99165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6601        6.6084        .21110E-03   -1.5325    
  19  Prefactor     2.7658        15.034        .24466E-03   -1.5375    
  20  Prefactor     .10000E-03    9.3565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .80846        .28185        .42526E-03   -.99756    
  22  Prefactor     1.0012        .15339        .21620E-03   -.92689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80849e-09
Minuit parameter uncertainties:
  1  4.17938
  2  2.05744e-05
  3  3.32714e-06
  4  3.04219e-06
  5  24.6845
  6  1.77156e-05
  7  4.64627
  8  18.6223
  9  11.4302
  10  0.51151
  11  12.5402
  12  1.82957
  13  34.8838
  14  2.01778e-06
  15  2.13411e-06
  16  0.18414
  17  0.014341
  18  6.60976
  19  12.9018
  20  1.26657e-06
  21  0.282364
  22  0.15346
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.959e+01  1.254e+01  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:  1.001e+00  1.535e-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:  8.085e-01  2.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.63
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 3.71e-05 +/- 2.38e-05

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) = 8291.24862414
delta logL = 0.352699157584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8291.20715775
delta logL = 0.394165544543

Fit tolerance = 1e-08

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

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

 FCN=   8291.207     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      294 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.049        13.048        .10686E-03    .34235E-03
   2  Index1        1.5379        .69262        .85024E-02    .10071E-03
   3  Normalizat    .78209        .27084        .43097E-03    .24269E-05
   4  Prefactor     1.0074        .15216        .21532E-03    .43824E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0487
  Index1     = 1.53788
  Normalizat = 0.782092
  Prefactor  = 1.00744
 **********
 **   18 **HESSE 
 **********

 FCN=   8291.207     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.049        11.941        .42745E-05   -1.4958    
   2  Index1        1.5379        .63408        .34010E-03   -.76484    
   3  Normalizat    .78209        .27013        .17239E-04   -1.0074    
   4  Prefactor     1.0074        .15202        .86126E-05   -.92482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84097e-11
Minuit parameter uncertainties:
  1  11.9432
  2  0.637391
  3  0.270597
  4  0.152088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/370824': 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) = 8291.20715774
delta logL = 0.394165551666

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.405e+01  1.194e+01  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.538e+00  6.374e-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:  1.007e+00  1.521e-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:  7.821e-01  2.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.48
Ra Dec: 338.691 9.732
Photon Index (Free Index): 1.54 +/- 0.64
Photon Flux (Free Index): 9.60e-08 +/- 7.67e-08
Energy Flux (Free Index): 3.71e-05 +/- 2.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/370824/cmap_HighResolution_519523201_519782401_4FGL_J2234.7+0943_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='3.71e-05', photon_flux_error='3.22e-08', dlogl='3.94e-01', energy_flux='3.71e-05', photon_flux2='9.60e-08', job_status='DONE', time_completed='2021-09-28 15:28:42.535237', photon_index_error2='0.64', photon_index2='1.54', ts='5.63', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='0.81', time_epoch_completed='1632868122.54', return_code='0', job_id='370824', GAL2='1.01', EG2='0.78', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='7.67e-08', ts2='6.48', photon_index='0.94' WHERE bin_id='1081' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:28:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 370824: <4FGL_J2234.7+0943_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1081 338.691 9.732 519523201 519782401 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 :                                   667.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            803 sec.

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

