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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin659
RA = 338.691, Dec = 9.732
tmin = 410140801, tmax = 410400001
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='366379', job_status='RUN', time_executed='2021-09-28 15:05:48.328472', time_epoch_executed='1632866748.33' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='659'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366379/ft1_4FGL_J2234.7+0943_daily_bin659.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366379/ft2_4FGL_J2234.7+0943_daily_bin659.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366379/ft1_4FGL_J2234.7+0943_daily_bin659.fits outfile=/scratch/kocevski/366379/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin659.fits ra=338.691 dec=9.732 rad=12.0 tmin=410140801.0 tmax=410400001.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 6.94
user 6.62
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366379/ft1_filtered_4FGL_J2234.7+0943_daily_bin659.fits" evtable="EVENTS" scfile=/scratch/kocevski/366379/ft2_4FGL_J2234.7+0943_daily_bin659.fits sctable="SC_DATA" outfile=/scratch/kocevski/366379/ltcube_410140801_410400001_4FGL_J2234.7+0943_daily_bin659.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/366379/ft2_4FGL_J2234.7+0943_daily_bin659.fits
.....................!
real 11.94
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366379/ft1_filtered_4FGL_J2234.7+0943_daily_bin659.fits evtable="EVENTS" scfile=/scratch/kocevski/366379/ft2_4FGL_J2234.7+0943_daily_bin659.fits sctable="SC_DATA" expcube=/scratch/kocevski/366379/ltcube_410140801_410400001_4FGL_J2234.7+0943_daily_bin659.fits outfile=/scratch/kocevski/366379/expmap_410140801_410400001_4FGL_J2234.7+0943_daily_bin659.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/366379/ltcube_410140801_410400001_4FGL_J2234.7+0943_daily_bin659.fits
.....................!
real 190.68
user 184.82
sys 5.34

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/366379/ft1_filtered_4FGL_J2234.7+0943_daily_bin659.fits scfile=/scratch/kocevski/366379/ft2_4FGL_J2234.7+0943_daily_bin659.fits outfile=/scratch/kocevski/366379/cmap_410140801_410400001_4FGL_J2234.7+0943_daily_bin659.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366379/ft1_filtered_4FGL_J2234.7+0943_daily_bin659.fits scfile=/scratch/kocevski/366379/ft2_4FGL_J2234.7+0943_daily_bin659.fits outfile=/scratch/kocevski/366379/cmap_HighResolution_410140801_410400001_4FGL_J2234.7+0943_daily_bin659.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/366379/ft1_filtered_4FGL_J2234.7+0943_daily_bin659.fits evtable="EVENTS" scfile=/scratch/kocevski/366379/ft2_4FGL_J2234.7+0943_daily_bin659.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366379/Model_4FGL_J2234.7+0943_daily_bin659.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/366379/ft1_filtered_4FGL_J2234.7+0943_daily_bin659.fits.....................!
real 41.29
user 39.78
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    46.604       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0681       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6432       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7113       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.327       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6819       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .54004E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10345E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.842       1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.809       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.063       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1716       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.445       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.106       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25910E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .30036       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0120       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=   3216.848     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2486 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9457        .16348E-07** at limit **
   2  norm          46.637        46.286        .84166E-06   -.95796E-05
   3  norm          2.0680        1.7953       -.18172E-06   -.43502E-03
   4  Prefactor     .10000E-03    25.001       -.16649E-06** at limit **
   5  Prefactor     17.360        29.206       -.63320E-06   -.46457E-04
   6  Prefactor     6.6457        85.429       -.50722E-05   -.35630E-04
   7  norm          4.7111        11.207        .42946E-06   -.84681E-04
   8  Prefactor     17.335        31.285       -.15612E-05   -.10144E-03
   9  Prefactor     .10001E-03    147.87        .32188E-06** at limit **
  10  Prefactor     1.6825        .57244       -.90540E-07   -.19410E-02
  11  Prefactor     .10016E-03    25.349       -.91831E-06** at limit **
  12  norm          .10001E-03    3.3482        .17455E-05** at limit **
  13  Prefactor     31.901        63.996        .10034E-04    .61322E-04
  14  Prefactor     41.937        40.201       -.10774E-05   -.10169E-03
  15  Prefactor     19.066        33.433       -.90587E-07   -.60394E-04
  16  Prefactor     2.1714        .45799       -.17621E-06   -.18052E-02
  17  Prefactor     38.458        50.618       -.17180E-05   -.26380E-04
  18  Prefactor     21.119        15.075        .48317E-07   -.21016E-03
  19  Prefactor     .10388E-03    12.609        .82509E-06** at limit **
  20  Prefactor     .10000E-03    10.871       -.73754E-07** at limit **
  21  Normalizat    .30007        .42593        .38421E-04   -.44404E-04
  22  Prefactor     1.0122        .22588       -.10875E-04   -.21238E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 46.6367
  norm       = 2.06797
  Prefactor  = 0.0001
  Prefactor  = 17.3602
  Prefactor  = 6.64567
  norm       = 4.71112
  Prefactor  = 17.3347
  Prefactor  = 0.000100009
  Prefactor  = 1.68246
  Prefactor  = 0.00010016
  norm       = 0.000100015
  Prefactor  = 31.901
  Prefactor  = 41.9367
  Prefactor  = 19.0659
  Prefactor  = 2.17139
  Prefactor  = 38.4583
  Prefactor  = 21.1188
  Prefactor  = 0.000103885
  Prefactor  = 0.0001
  Normalizat = 0.300065
  Prefactor  = 1.01225
 **********
 **   18 **HESSE 
 **********

 FCN=   3216.848     FROM HESSE     STATUS=OK           350 CALLS     2836 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9534        .77189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          46.637        46.134        .58734E-04   -1.4341    
   3  norm          2.0680        1.7957        .67809E-04   -1.5420    
   4  Prefactor     .10000E-03    25.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.360        29.216        .96100E-04   -1.4874    
   6  Prefactor     6.6457        85.650        .15569E-03   -1.5192    
   7  norm          4.7111        11.124        .18539E-03   -1.5274    
   8  Prefactor     17.335        31.462        .96217E-04   -1.4875    
   9  Prefactor     .10001E-03    151.97        .42898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6825        .55094        .21296E-04   -1.5449    
  11  Prefactor     .10016E-03    115.15        .51921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    5.9534        .18824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.901        63.971        .71007E-04   -1.4578    
  14  Prefactor     41.937        39.319        .61997E-04   -1.4412    
  15  Prefactor     19.066        33.490        .91733E-04   -1.4834    
  16  Prefactor     2.1714        .46162        .15841E-04   -1.5413    
  17  Prefactor     38.458        50.389        .64642E-04   -1.4467    
  18  Prefactor     21.119        15.103        .87184E-04   -1.4789    
  19  Prefactor     .10388E-03    16.584        .70727E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .30007        .42557        .60173E-03   -1.2283    
  22  Prefactor     1.0122        .22882        .18772E-03   -.92322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26364e-09
Minuit parameter uncertainties:
  1  1.37876e-05
  2  46.1693
  3  1.7957
  4  4.06608e-05
  5  29.2403
  6  47.7999
  7  11.1285
  8  31.4923
  9  0.0022877
  10  0.550944
  11  0.0086049
  12  0.00059371
  13  64.1087
  14  39.3429
  15  33.523
  16  0.461625
  17  50.4447
  18  15.1053
  19  0.0160578
  20  7.82645e-06
  21  0.430273
  22  0.229041
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.002e-04  8.605e-03  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.012e+00  2.290e-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:  3.001e-01  4.303e-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: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/366379/likelihoodResults_410140801_410400001_4FGL_J2234.7+0943_daily_bin659.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) = 3216.84785588
delta logL = -4.08030819017e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3216.84781543
delta logL = -3.48784851667e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    .91320       1.0000          .0000       10.000    
     3 'Normalizat'    .30007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0122       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=   3214.483     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      324 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4352        7.8977        .63082E-04    .23402E-02
   2  Index1        2.5835        .80079        .28723E-02    .45131E-03
   3  Normalizat    .15168        .41396        .81423E-02    .13053E-03
   4  Prefactor     1.0244        .23483        .18472E-03    .55063E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.43525
  Index1     = 2.58349
  Normalizat = 0.151684
  Prefactor  = 1.0244
 **********
 **   18 **HESSE 
 **********

 FCN=   3214.483     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4352        6.2175        .25233E-05   -1.5287    
   2  Index1        2.5835        .63075        .11489E-03   -.50442    
   3  Normalizat    .15168        .39327        .32569E-03   -1.3320    
   4  Prefactor     1.0244        .22266        .36944E-04   -.91920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.53435e-10
Minuit parameter uncertainties:
  1  6.21839
  2  0.632949
  3  0.400924
  4  0.222857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366379': 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) = 3214.48293569
delta logL = 2.36487939283

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.435e+00  6.218e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.583e+00  6.329e-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.024e+00  2.229e-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.517e-01  4.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.85
Ra Dec: 338.691 9.732
Photon Index (Free Index): 2.58 +/- 0.63
Photon Flux (Free Index): 2.73e-07 +/- 1.59e-07
Energy Flux (Free Index): 5.44e-05 +/- 3.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/366379/cmap_HighResolution_410140801_410400001_4FGL_J2234.7+0943_daily_bin659.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-04', comment='SUCCESS', energy_flux2='5.44e-05', dlogl='2.36e+00', photon_flux2='2.73e-07', job_status='DONE', time_completed='2021-09-28 15:13:58.142528', photon_index_error2='0.63', photon_index2='2.58', ts='-0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='3.11e-05', EG='0.30', time_epoch_completed='1632867238.14', return_code='0', job_id='366379', GAL2='1.02', EG2='0.15', return_code2='0', photon_flux_error2='1.59e-07', ts2='4.85', photon_index='0.94' WHERE bin_id='659' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:13:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 366379: <4FGL_J2234.7+0943_daily_bin659> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin659> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 15:05:17 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:05:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 15:05:19 2021
Terminated at Tue Sep 28 15:13:58 2021
Results reported at Tue Sep 28 15:13:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin659 338.691 9.732 410140801 410400001 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 :                                   486.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   519 sec.
    Turnaround time :                            521 sec.

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

