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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1142
RA = 338.691, Dec = 9.732
tmin = 535334401, tmax = 535593601
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='370926', job_status='RUN', time_executed='2021-09-28 15:17:20.735587', time_epoch_executed='1632867440.74' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/370926

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/370926/ft1_4FGL_J2234.7+0943_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/370926/ft2_4FGL_J2234.7+0943_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/370926/ft1_4FGL_J2234.7+0943_daily_bin1142.fits outfile=/scratch/kocevski/370926/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1142.fits ra=338.691 dec=9.732 rad=12.0 tmin=535334401.0 tmax=535593601.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.15
user 4.90
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/370926/ft1_filtered_4FGL_J2234.7+0943_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/370926/ft2_4FGL_J2234.7+0943_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/370926/ltcube_535334401_535593601_4FGL_J2234.7+0943_daily_bin1142.fits outfile=/scratch/kocevski/370926/expmap_535334401_535593601_4FGL_J2234.7+0943_daily_bin1142.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/370926/ltcube_535334401_535593601_4FGL_J2234.7+0943_daily_bin1142.fits
.....................!
real 190.26
user 185.68
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/370926/ft1_filtered_4FGL_J2234.7+0943_daily_bin1142.fits scfile=/scratch/kocevski/370926/ft2_4FGL_J2234.7+0943_daily_bin1142.fits outfile=/scratch/kocevski/370926/cmap_535334401_535593601_4FGL_J2234.7+0943_daily_bin1142.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/370926/ft1_filtered_4FGL_J2234.7+0943_daily_bin1142.fits scfile=/scratch/kocevski/370926/ft2_4FGL_J2234.7+0943_daily_bin1142.fits outfile=/scratch/kocevski/370926/cmap_HighResolution_535334401_535593601_4FGL_J2234.7+0943_daily_bin1142.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/370926/ft1_filtered_4FGL_J2234.7+0943_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/370926/ft2_4FGL_J2234.7+0943_daily_bin1142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/370926/Model_4FGL_J2234.7+0943_daily_bin1142.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/370926/ft1_filtered_4FGL_J2234.7+0943_daily_bin1142.fits.....................!
real 107.34
user 105.90
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4619       1.0000         .10000E-03   10000.    
     2 'norm      '    45.019       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0844       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .16254E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.706       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.113       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.308       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9912       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3153       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.314       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6894       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.188       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.017       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3119       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .42867       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2342       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=   10225.67     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2432 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4595        4.4355        .12951E-05   -.13176E-02
   2  norm          45.010        34.944       -.35947E-05   -.12513E-03
   3  norm          1.0828        1.3536       -.24033E-06   -.89914E-03
   4  Prefactor     .10000E-03    8.9421       -.34343E-06** at limit **
   5  Prefactor     .10000E-03    5.5667       -.22563E-06** at limit **
   6  Prefactor     .10000E-03    43.239       -.25418E-05** at limit **
   7  norm          .10001E-03    3.4696        .13149E-06** at limit **
   8  Prefactor     36.731        26.963       -.26488E-06   -.76898E-04
   9  Prefactor     12.098        16.654       -.10059E-05   -.10459E-03
  10  Prefactor     13.307        .79584       -.11213E-06   -.40822E-02
  11  Prefactor     3.9907        7.2766        .10003E-06   -.68290E-04
  12  norm          1.3148        1.4160       -.88293E-07   -.13664E-03
  13  Prefactor     .10000E-03    19.547       -.10589E-06** at limit **
  14  Prefactor     17.309        16.726       -.74388E-06   -.81866E-04
  15  Prefactor     .10053E-03    12.794        .22391E-05** at limit **
  16  Prefactor     1.6891        .29106       -.71401E-07   -.57275E-02
  17  Prefactor     45.281        60.670        .37563E-05    .14055E-03
  18  Prefactor     12.015        9.2458       -.48955E-06   -.23985E-03
  19  Prefactor     3.2879        23.164       -.43684E-05   -.10720E-03
  20  Prefactor     .10000E-03    11.281        .12524E-06** at limit **
  21  Normalizat    .42795        .35897        .28096E-04   -.56154E-04
  22  Prefactor     1.2346        .17754       -.79011E-05   -.17771E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.45945
  norm       = 45.0099
  norm       = 1.08276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100012
  Prefactor  = 36.7307
  Prefactor  = 12.0976
  Prefactor  = 13.3073
  Prefactor  = 3.99068
  norm       = 1.31484
  Prefactor  = 0.0001
  Prefactor  = 17.3094
  Prefactor  = 0.000100532
  Prefactor  = 1.68907
  Prefactor  = 45.2812
  Prefactor  = 12.0152
  Prefactor  = 3.28793
  Prefactor  = 0.0001
  Normalizat = 0.427955
  Prefactor  = 1.23461
 **********
 **   18 **HESSE 
 **********

 FCN=   10225.67     FROM HESSE     STATUS=OK           344 CALLS     2776 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4595        4.3179        .85965E-03   -1.5241    
   2  norm          45.010        35.029        .59754E-04   -1.4365    
   3  norm          1.0828        1.3210        .12492E-03   -1.5500    
   4  Prefactor     .10000E-03    8.9573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.5738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    29.818        .35793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.731        27.027        .66150E-04   -1.4495    
   9  Prefactor     12.098        16.560        .11510E-03   -1.5012    
  10  Prefactor     13.307        .80031        .20064E-04   -1.4978    
  11  Prefactor     3.9907        7.2640        .20188E-03   -1.5308    
  12  norm          1.3148        1.4180        .12078E-03   -1.5479    
  13  Prefactor     .10000E-03    19.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.309        16.703        .96255E-04   -1.4876    
  15  Prefactor     .10053E-03    82.081        .68929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6891        .28991        .21179E-04   -1.5448    
  17  Prefactor     45.281        60.607        .59643E-04   -1.4361    
  18  Prefactor     12.015        9.2506        .11556E-03   -1.5015    
  19  Prefactor     3.2879        23.106        .22245E-03   -1.5345    
  20  Prefactor     .10000E-03    11.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .42795        .35319        .75513E-03   -1.1588    
  22  Prefactor     1.2346        .17762        .24756E-03   -.85273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59826e-09
Minuit parameter uncertainties:
  1  4.3181
  2  35.0455
  3  1.32108
  4  4.62831e-07
  5  4.04187e-06
  6  0.000131815
  7  0.00121444
  8  27.0356
  9  16.5659
  10  0.800306
  11  7.26561
  12  1.41799
  13  3.83356e-06
  14  16.7074
  15  0.0132403
  16  0.289907
  17  60.6896
  18  9.25168
  19  17.4417
  20  3.80101e-05
  21  0.35505
  22  0.177711
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.991e+00  7.266e+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:  1.235e+00  1.777e-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:  4.280e-01  3.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/370926/likelihoodResults_535334401_535593601_4FGL_J2234.7+0943_daily_bin1142.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) = 10225.3256
delta logL = 0.340745069385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10225.3255615
delta logL = 0.340783589936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9908       1.0000         .10000E-03   10000.    
     2 'Index1    '    .22960E-04   1.0000          .0000       10.000    
     3 'Normalizat'    .43074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2337       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=   10225.33     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      206 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0118        5.5104        .50472E-02    .27140E-03
   2  Index1        .18062E-08    1.3467        .50000    ** at limit **
   3  Normalizat    .43075        .33732        .16978        .95060E-04
   4  Prefactor     1.2337        .18260        .56016E-01   -.67456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.01176
  Index1     = 1.80623e-09
  Normalizat = 0.430752
  Prefactor  = 1.23369
 **********
 **   18 **HESSE 
 **********

 FCN=   10225.33     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0118        5.4847        .20189E-03   -1.5307    
   2  Index1        .18062E-08    1.4794        .73908E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .43075        .32309        .75296E-03   -1.1574    
   4  Prefactor     1.2337        .17541        .24762E-03   -.85301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19864e-09
Minuit parameter uncertainties:
  1  5.48536
  2  0.000106123
  3  0.3245
  4  0.175497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/370926': 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) = 10225.3255468
delta logL = 0.340798222032

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.012e+00  5.485e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.806e-09  1.061e-04  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.234e+00  1.755e-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:  4.308e-01  3.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.68e-09 +/- 6.39e-09
Energy Flux (Free Index): 1.07e-05 +/- 1.46e-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/370926/cmap_HighResolution_535334401_535593601_4FGL_J2234.7+0943_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-05', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='3.41e-01', photon_flux2='4.68e-09', job_status='DONE', time_completed='2021-09-28 15:31:42.069087', photon_index_error2='0.00', photon_index2='0.00', ts='0.48', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='7.35e-08', energy_flux_error2='1.46e-05', EG='0.43', time_epoch_completed='1632868302.07', return_code='0', job_id='370926', GAL2='1.23', EG2='0.43', return_code2='0', photon_flux_error2='6.39e-09', ts2='1.16', photon_index='0.94' WHERE bin_id='1142' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:31:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 370926: <4FGL_J2234.7+0943_daily_bin1142> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1142 338.691 9.732 535334401 535593601 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 :                                   857.01 sec.
    Max Memory :                                 1206 MB
    Average Memory :                             350.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            972 sec.

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

