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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1662
RA = 338.691, Dec = 9.732
tmin = 670118401, tmax = 670377601
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='124956', job_status='RUN', time_executed='2022-03-31 00:38:06.856466', time_epoch_executed='1648712286.86' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124956/ft1_4FGL_J2234.7+0943_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124956/ft2_4FGL_J2234.7+0943_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124956/ft1_4FGL_J2234.7+0943_daily_bin1662.fits outfile=/scratch/kocevski/124956/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1662.fits ra=338.691 dec=9.732 rad=12.0 tmin=670118401.0 tmax=670377601.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.53
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/124956/ft2_4FGL_J2234.7+0943_daily_bin1662.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/124956/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1662.fits evtable="EVENTS" outfile="/scratch/kocevski/124956/ft1_filtered_4FGL_J2234.7+0943_daily_bin1662.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 680

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124956/ft1_filtered_4FGL_J2234.7+0943_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/124956/ft2_4FGL_J2234.7+0943_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/124956/ltcube_670118401_670377601_4FGL_J2234.7+0943_daily_bin1662.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/124956/ft2_4FGL_J2234.7+0943_daily_bin1662.fits
.....................!
real 12.08
user 11.67
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124956/ft1_filtered_4FGL_J2234.7+0943_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124956/ft2_4FGL_J2234.7+0943_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/124956/ltcube_670118401_670377601_4FGL_J2234.7+0943_daily_bin1662.fits outfile=/scratch/kocevski/124956/expmap_670118401_670377601_4FGL_J2234.7+0943_daily_bin1662.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/124956/ltcube_670118401_670377601_4FGL_J2234.7+0943_daily_bin1662.fits
.....................!
real 191.20
user 185.54
sys 5.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/124956/ft1_filtered_4FGL_J2234.7+0943_daily_bin1662.fits scfile=/scratch/kocevski/124956/ft2_4FGL_J2234.7+0943_daily_bin1662.fits outfile=/scratch/kocevski/124956/cmap_670118401_670377601_4FGL_J2234.7+0943_daily_bin1662.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124956/ft1_filtered_4FGL_J2234.7+0943_daily_bin1662.fits scfile=/scratch/kocevski/124956/ft2_4FGL_J2234.7+0943_daily_bin1662.fits outfile=/scratch/kocevski/124956/cmap_HighResolution_670118401_670377601_4FGL_J2234.7+0943_daily_bin1662.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124956/ft1_filtered_4FGL_J2234.7+0943_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124956/ft2_4FGL_J2234.7+0943_daily_bin1662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124956/Model_4FGL_J2234.7+0943_daily_bin1662.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/124956/ft1_filtered_4FGL_J2234.7+0943_daily_bin1662.fits....................!
real 73.38
user 71.98
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0855       1.0000         .10000E-03   10000.    
     2 'norm      '    21.049       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2983       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5357       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6407       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65062       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.989       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .94687       1.0000         .10000E-03   10000.    
    17 'Prefactor '    109.70       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33911       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12348E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0492       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91114       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=   7415.557     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2398 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0859        2.7925        .13425E-06   -.10633E-03
   2  norm          21.047        25.187       -.98408E-06   -.50019E-04
   3  norm          .10000E-03    .33624       -.87878E-07** at limit **
   4  Prefactor     .10000E-03    33.286        .13126E-04** at limit **
   5  Prefactor     .10000E-03    12.522        .60350E-05** at limit **
   6  Prefactor     .10000E-03    14.882       -.72462E-05** at limit **
   7  norm          3.2998        5.8598        .49006E-05   -.25651E-03
   8  Prefactor     2.5356        19.230       -.11253E-05   -.14640E-03
   9  Prefactor     8.6437        16.814        .51001E-06   -.39197E-04
  10  Prefactor     .65070        .24114        .69008E-08   -.66205E-03
  11  Prefactor     .10000E-03    6.7128        .13719E-06** at limit **
  12  norm          .10000E-03    .93589       -.35346E-07** at limit **
  13  Prefactor     5.9608        21.639       -.37432E-05   -.48495E-04
  14  Prefactor     12.989        15.094       -.15582E-06   -.19902E-04
  15  Prefactor     .10000E-03    7.9015        .66880E-05** at limit **
  16  Prefactor     .94693        .19933        .26113E-07    .77435E-03
  17  Prefactor     109.70        47.283        .28607E-05    .12246E-03
  18  Prefactor     .34245        5.7530       -.95525E-06   -.91010E-04
  19  Prefactor     .10000E-03    44.226       -.12275E-04** at limit **
  20  Prefactor     .10000E-03    8.0412       -.76108E-05** at limit **
  21  Normalizat    1.0489        .22806       -.12340E-05    .14264E-03
  22  Prefactor     .91129        .11938        .25521E-06    .15685E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.08589
  norm       = 21.0473
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.29976
  Prefactor  = 2.53559
  Prefactor  = 8.64373
  Prefactor  = 0.650696
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.96076
  Prefactor  = 12.9887
  Prefactor  = 0.0001
  Prefactor  = 0.946934
  Prefactor  = 109.704
  Prefactor  = 0.342453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04887
  Prefactor  = 0.911289
 **********
 **   18 **HESSE 
 **********

 FCN=   7415.557     FROM HESSE     STATUS=OK           346 CALLS     2744 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0859        2.7884        .11356E-03   -1.5304    
   2  norm          21.047        25.191        .87303E-04   -1.4790    
   3  norm          .10000E-03    .52641        .96886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2998        5.6985        .22293E-03   -1.5345    
   8  Prefactor     2.5356        19.090        .25648E-03   -1.5389    
   9  Prefactor     8.6437        16.829        .13637E-03   -1.5120    
  10  Prefactor     .65070        .23880        .23436E-04   -1.5547    
  11  Prefactor     .10000E-03    6.8073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .95407        .16219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9608        21.683        .16442E-03   -1.5220    
  14  Prefactor     12.989        15.047        .11114E-03   -1.4987    
  15  Prefactor     .10000E-03    7.9378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .94693        .19931        .16372E-04   -1.5513    
  17  Prefactor     109.70        47.394        .38402E-04   -1.3609    
  18  Prefactor     .34245        34.219        .38883E-02   -1.5591    
  19  Prefactor     .10000E-03    46.021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.0851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0489        .27132        .33605E-03   -.91411    
  22  Prefactor     .91129        .14286        .19671E-03   -.95748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59852e-08
Minuit parameter uncertainties:
  1  2.78847
  2  25.2036
  3  9.29577e-06
  4  0.000171025
  5  0.0001047
  6  0.000132626
  7  5.69944
  8  13.9207
  9  16.8384
  10  0.238798
  11  4.00501e-06
  12  6.01082e-08
  13  21.7112
  14  15.0515
  15  9.79497e-05
  16  0.199308
  17  47.4107
  18  6.84951
  19  3.31069e-05
  20  0.000111297
  21  0.27168
  22  0.142917
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  4.005e-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:  9.113e-01  1.429e-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.049e+00  2.717e-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: 4.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124956/likelihoodResults_670118401_670377601_4FGL_J2234.7+0943_daily_bin1662.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) = 7415.55804531
delta logL = -0.000700106410477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7415.55734337
delta logL = 1.84182317753e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    1.0506       1.0000          .0000       10.000    
     3 'Normalizat'    1.0491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91119       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7414.892     FROM MIGRAD    STATUS=FAILED       191 CALLS      343 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1377        46.738        .84647E-04    .12528E-02
   2  Index1        2.5701        6.2042        .32819E-01    .15224E-03
   3  Normalizat    1.0001        .17022        .34269E-03    .66407E-03
   4  Prefactor     .91664        .85103E-01    .19585E-03    .44934E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7414.892     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      425 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1377        46.738        .10815E-03    .12528E-02
   2  Index1        2.5701        6.2042        .13631E-02    .15224E-03
   3  Normalizat    1.0001        .17022        .14485E-03    .66407E-03
   4  Prefactor     .91664        .85103E-01    .92213E-04    .44934E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7414.892     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      460 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1377        2.3053        .33859E-05   -.37606E-03
   2  Index1        2.5701        .92026        .80358E-03    .40023E-04
   3  Normalizat    1.0001        .26112        .68538E-04    .51487E-04
   4  Prefactor     .91665        .14213        .39171E-04    .50152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13771
  Index1     = 2.57009
  Normalizat = 1.00011
  Prefactor  = 0.916648
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.892     FROM HESSE     STATUS=OK            23 CALLS      483 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1377        2.2300        .67718E-06   -1.5921    
   2  Index1        2.5701        .89040        .32143E-04   -.50749    
   3  Normalizat    1.0001        .26105        .13708E-04   -.93027    
   4  Prefactor     .91665        .14210        .78341E-05   -.95562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78827e-11
Minuit parameter uncertainties:
  1  2.23019
  2  0.896678
  3  0.261384
  4  0.142154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124956': 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) = 7414.89242747
delta logL = 0.664917738415

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.138e+00  2.230e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.570e+00  8.967e-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:  9.166e-01  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:  1.000e+00  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 338.691 9.732
Photon Index (Free Index): 2.57 +/- 0.90
Photon Flux (Free Index): 6.78e-08 +/- 2.62e-07
Energy Flux (Free Index): 1.36e-05 +/- 4.79e-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/124956/cmap_HighResolution_670118401_670377601_4FGL_J2234.7+0943_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-05', comment='SUCCESS', energy_flux2='1.36e-05', dlogl='6.65e-01', photon_flux2='6.78e-08', job_status='DONE', time_completed='2022-03-31 00:49:39.362659', photon_index_error2='0.90', photon_index2='2.57', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='4.85e-08', energy_flux_error2='4.79e-05', EG='1.05', time_epoch_completed='1648712979.36', return_code='0', job_id='124956', GAL2='0.92', EG2='1.00', return_code2='0', photon_flux_error2='2.62e-07', ts2='1.36', photon_index='0.94' WHERE bin_id='1662' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:49:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 124956: <4FGL_J2234.7+0943_daily_bin1662> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:28 2022
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:30 2022
Terminated at Thu Mar 31 00:49:39 2022
Results reported at Thu Mar 31 00:49:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1662 338.691 9.732 670118401 670377601 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 :                                   694.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

