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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1469
RA = 338.691, Dec = 9.732
tmin = 620092801, tmax = 620352001
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='371446', job_status='RUN', time_executed='2021-09-28 15:18:46.249293', time_epoch_executed='1632867526.25' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371446/ft1_4FGL_J2234.7+0943_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371446/ft2_4FGL_J2234.7+0943_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371446/ft1_4FGL_J2234.7+0943_daily_bin1469.fits outfile=/scratch/kocevski/371446/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1469.fits ra=338.691 dec=9.732 rad=12.0 tmin=620092801.0 tmax=620352001.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 2.58
user 2.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371446/ft1_filtered_4FGL_J2234.7+0943_daily_bin1469.fits" evtable="EVENTS" scfile=/scratch/kocevski/371446/ft2_4FGL_J2234.7+0943_daily_bin1469.fits sctable="SC_DATA" outfile=/scratch/kocevski/371446/ltcube_620092801_620352001_4FGL_J2234.7+0943_daily_bin1469.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/371446/ft2_4FGL_J2234.7+0943_daily_bin1469.fits
.....................!
real 8.87
user 8.57
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371446/ft1_filtered_4FGL_J2234.7+0943_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/371446/ft2_4FGL_J2234.7+0943_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/371446/ltcube_620092801_620352001_4FGL_J2234.7+0943_daily_bin1469.fits outfile=/scratch/kocevski/371446/expmap_620092801_620352001_4FGL_J2234.7+0943_daily_bin1469.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/371446/ltcube_620092801_620352001_4FGL_J2234.7+0943_daily_bin1469.fits
.....................!
real 141.16
user 137.56
sys 3.35

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/371446/ft1_filtered_4FGL_J2234.7+0943_daily_bin1469.fits scfile=/scratch/kocevski/371446/ft2_4FGL_J2234.7+0943_daily_bin1469.fits outfile=/scratch/kocevski/371446/cmap_620092801_620352001_4FGL_J2234.7+0943_daily_bin1469.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.46
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371446/ft1_filtered_4FGL_J2234.7+0943_daily_bin1469.fits scfile=/scratch/kocevski/371446/ft2_4FGL_J2234.7+0943_daily_bin1469.fits outfile=/scratch/kocevski/371446/cmap_HighResolution_620092801_620352001_4FGL_J2234.7+0943_daily_bin1469.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.44
user 0.29
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371446/ft1_filtered_4FGL_J2234.7+0943_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/371446/ft2_4FGL_J2234.7+0943_daily_bin1469.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371446/Model_4FGL_J2234.7+0943_daily_bin1469.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/371446/ft1_filtered_4FGL_J2234.7+0943_daily_bin1469.fits.....................!
real 54.47
user 53.40
sys 0.97

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .17447E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.967       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6003       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .93069E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .76283       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2702       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11110E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41194       1.0000         .10000E-03   10000.    
    17 'Prefactor '    94.197       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14491E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.602       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99577       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1013       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=   7292.429     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     3122 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .76538       -.69586E-07** at limit **
   2  norm          .10000E-03    5.0136        .27342E-07** at limit **
   3  norm          .10000E-03    .52418       -.41642E-06** at limit **
   4  Prefactor     .10000E-03    6.8353       -.99769E-06** at limit **
   5  Prefactor     .70151E-01    16.034       -.20214E-05    .55997E-04
   6  Prefactor     15.978        27.156       -.23516E-04    .55043E-04
   7  norm          .10000E-03    1.5093       -.13250E-06** at limit **
   8  Prefactor     .10000E-03    15.108       -.82202E-06** at limit **
   9  Prefactor     4.5989        11.159        .15049E-06   -.75371E-04
  10  Prefactor     .92891E-01    .17225       -.33600E-06   -.49636E-02
  11  Prefactor     .10000E-03    7.1657       -.12965E-05** at limit **
  12  norm          .76277        .74807        .28403E-07    .39631E-03
  13  Prefactor     .10000E-03    7.7090        .14005E-05** at limit **
  14  Prefactor     4.2699        6.6566       -.35205E-06   -.70463E-04
  15  Prefactor     .10000E-03    33.837        .50304E-06** at limit **
  16  Prefactor     .41176        .14900       -.10853E-06    .18259E-02
  17  Prefactor     94.192        55.154       -.14904E-04    .64800E-04
  18  Prefactor     .10000E-03    5.0519       -.11207E-05** at limit **
  19  Prefactor     .10000E-03    6.3562        .72917E-06** at limit **
  20  Prefactor     23.590        35.535       -.11137E-04    .21012E-04
  21  Normalizat    .99552        .23125        .97072E-05    .32001E-03
  22  Prefactor     1.1015        .12246        .90302E-07    .10524E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0701513
  Prefactor  = 15.9781
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.59894
  Prefactor  = 0.0928907
  Prefactor  = 0.0001
  norm       = 0.762766
  Prefactor  = 0.0001
  Prefactor  = 4.26993
  Prefactor  = 0.0001
  Prefactor  = 0.411765
  Prefactor  = 94.1925
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 23.5904
  Normalizat = 0.995522
  Prefactor  = 1.10147
 **********
 **   18 **HESSE 
 **********

 FCN=   7292.429     FROM HESSE     STATUS=OK           352 CALLS     3474 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .76976        .72956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.0142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0599        .11920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .70151E-01    20.889        .10017       -1.5655    
   6  Prefactor     15.978        27.038        .10023E-03   -1.4908    
   7  norm          .10000E-03    1.5185        .10245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5989        11.147        .18766E-03   -1.5279    
  10  Prefactor     .92891E-01    .16946        .45002E-04   -1.5647    
  11  Prefactor     .10000E-03    7.2102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .76277        .78571        .71290E-03   -1.5533    
  13  Prefactor     .10000E-03    7.7093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2699        6.6456        .19497E-03   -1.5295    
  15  Prefactor     .10000E-03    34.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .41176        .14723        .18843E-04   -1.5580    
  17  Prefactor     94.192        55.227        .41410E-04   -1.3764    
  18  Prefactor     .10000E-03    16.967        .36781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.3721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.590        35.557        .82451E-04   -1.4736    
  21  Normalizat    .99552        .26397        .35076E-03   -.93181    
  22  Prefactor     1.1015        .14210        .18752E-03   -.89420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40174e-09
Minuit parameter uncertainties:
  1  2.0911e-06
  2  5.75309e-08
  3  7.19486e-05
  4  1.58388e-05
  5  2.42017
  6  27.0591
  7  7.24373e-06
  8  4.72066e-05
  9  11.1521
  10  0.169462
  11  8.07351e-06
  12  0.785718
  13  5.1538e-06
  14  6.64674
  15  0.000110953
  16  0.147233
  17  55.2572
  18  0.000297827
  19  1.12516e-05
  20  35.5891
  21  0.264315
  22  0.142153
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  8.074e-06  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.101e+00  1.422e-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.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/371446/likelihoodResults_620092801_620352001_4FGL_J2234.7+0943_daily_bin1469.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): 102
logL (Free Index) = 7292.42992863
delta logL = -0.000661008509269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7292.4292676
delta logL = 2.43571776082e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    .95658       1.0000          .0000       10.000    
     3 'Normalizat'    .99552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1015       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=   7292.429     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      256 TOTAL
                     EDM=   .98E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25792        .69008E-01** at limit **
   2  Index1        1.1923        8.5303        .50000        .45065E-07
   3  Normalizat    .99553        .13443E-02    .35076E-03   -.13837E-03
   4  Prefactor     1.1015        .75677E-03    .18752E-03   -.23242E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index1     = 1.1923
  Normalizat = 0.995525
  Prefactor  = 1.10147
 **********
 **   18 **HESSE 
 **********

 FCN=   7292.429     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.918        .35203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        1.1923        6.8395        .50000       -.86569    
   3  Normalizat    .99553        .15017E-01    .14030E-04   -.93180    
   4  Prefactor     1.1015        .84535E-02    .37503E-04   -.89420    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6705e-10
Minuit parameter uncertainties:
  1  0.0001256
  2  333.071
  3  0.015017
  4  0.00845354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371446': 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): 102
logL (Free Index) = 7292.42926727
delta logL = 3.53453287971e-07

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  1.256e-04  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  1.192e+00  3.331e+02  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.101e+00  8.454e-03  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  1.502e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.691 9.732

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/371446/cmap_HighResolution_620092801_620352001_4FGL_J2234.7+0943_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-05', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2021-09-28 15:27:43.730497', job_id='371446', GAL2='1.10', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632868063.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='0.94' WHERE bin_id='1469' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:27:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 371446: <4FGL_J2234.7+0943_daily_bin1469> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1469> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 15:16:17 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:16:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:16:18 2021
Terminated at Tue Sep 28 15:27:44 2021
Results reported at Tue Sep 28 15:27:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1469 338.691 9.732 620092801 620352001 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 :                                   531.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            687 sec.

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

