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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1496
RA = 338.691, Dec = 9.732
tmin = 627091201, tmax = 627350401
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='371487', job_status='RUN', time_executed='2021-09-28 15:16:30.684226', time_epoch_executed='1632867390.68' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371487

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371487/ft1_4FGL_J2234.7+0943_daily_bin1496.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371487/ft2_4FGL_J2234.7+0943_daily_bin1496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371487/ft1_4FGL_J2234.7+0943_daily_bin1496.fits outfile=/scratch/kocevski/371487/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1496.fits ra=338.691 dec=9.732 rad=12.0 tmin=627091201.0 tmax=627350401.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.98
user 2.78
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371487/ft1_filtered_4FGL_J2234.7+0943_daily_bin1496.fits" evtable="EVENTS" scfile=/scratch/kocevski/371487/ft2_4FGL_J2234.7+0943_daily_bin1496.fits sctable="SC_DATA" outfile=/scratch/kocevski/371487/ltcube_627091201_627350401_4FGL_J2234.7+0943_daily_bin1496.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/371487/ft2_4FGL_J2234.7+0943_daily_bin1496.fits
.....................!
real 12.02
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371487/ft1_filtered_4FGL_J2234.7+0943_daily_bin1496.fits evtable="EVENTS" scfile=/scratch/kocevski/371487/ft2_4FGL_J2234.7+0943_daily_bin1496.fits sctable="SC_DATA" expcube=/scratch/kocevski/371487/ltcube_627091201_627350401_4FGL_J2234.7+0943_daily_bin1496.fits outfile=/scratch/kocevski/371487/expmap_627091201_627350401_4FGL_J2234.7+0943_daily_bin1496.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/371487/ltcube_627091201_627350401_4FGL_J2234.7+0943_daily_bin1496.fits
.....................!
real 189.38
user 184.45
sys 4.62

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/371487/ft1_filtered_4FGL_J2234.7+0943_daily_bin1496.fits scfile=/scratch/kocevski/371487/ft2_4FGL_J2234.7+0943_daily_bin1496.fits outfile=/scratch/kocevski/371487/cmap_627091201_627350401_4FGL_J2234.7+0943_daily_bin1496.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.691 yref=9.732 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371487/ft1_filtered_4FGL_J2234.7+0943_daily_bin1496.fits evtable="EVENTS" scfile=/scratch/kocevski/371487/ft2_4FGL_J2234.7+0943_daily_bin1496.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371487/Model_4FGL_J2234.7+0943_daily_bin1496.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/371487/ft1_filtered_4FGL_J2234.7+0943_daily_bin1496.fits.....................!
real 78.48
user 77.25
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4735       1.0000         .10000E-03   10000.    
     2 'norm      '    15.371       1.0000         .10000E-03   10000.    
     3 'norm      '    .93206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.248       1.0000         .10000E-03   10000.    
     7 'norm      '    .59332E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5582       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.071       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22361       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6860       1.0000         .10000E-03   10000.    
    12 'norm      '    .76721       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.328       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8991       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .44892       1.0000         .10000E-03   10000.    
    17 'Prefactor '    97.461       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26296E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89022       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93934       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=   8089.848     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2440 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4735        2.3397        .16569E-06   -.57155E-05
   2  norm          15.373        14.985        .10317E-06    .74457E-05
   3  norm          .93190        .68432        .42747E-08    .37815E-04
   4  Prefactor     .10000E-03    10.416       -.45916E-07** at limit **
   5  Prefactor     51.577        19.711        .11830E-06    .62962E-04
   6  Prefactor     34.248        26.296        .18694E-06    .31738E-04
   7  norm          .65334E-01    6.0684       -.50339E-05    .75133E-03
   8  Prefactor     3.5593        7.6661        .33730E-05    .31104E-03
   9  Prefactor     15.073        12.895        .32460E-06    .12258E-03
  10  Prefactor     .22357        .16656       -.11727E-06   -.71940E-03
  11  Prefactor     2.6855        6.8974        .55367E-05    .43695E-03
  12  norm          .76776        1.8506        .12830E-06   -.41029E-04
  13  Prefactor     .10000E-03    7.3832       -.10623E-06** at limit **
  14  Prefactor     30.324        18.149        .62529E-07    .43709E-04
  15  Prefactor     7.8779        22.043        .37616E-06   -.16652E-03
  16  Prefactor     .44901        .15602        .22426E-07    .20076E-02
  17  Prefactor     97.480        48.446       -.57517E-07    .30801E-03
  18  Prefactor     .10000E-03    3.9522       -.22578E-06** at limit **
  19  Prefactor     .10001E-03    7.9762       -.37894E-06** at limit **
  20  Prefactor     .10000E-03    23.625        .70050E-06** at limit **
  21  Normalizat    .88988        .21115       -.20934E-05    .11898E-06
  22  Prefactor     .93955        .11048        .50714E-06    .31304E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.47346
  norm       = 15.3734
  norm       = 0.931897
  Prefactor  = 0.0001
  Prefactor  = 51.5773
  Prefactor  = 34.2483
  norm       = 0.0653343
  Prefactor  = 3.55927
  Prefactor  = 15.0728
  Prefactor  = 0.223573
  Prefactor  = 2.68551
  norm       = 0.767759
  Prefactor  = 0.0001
  Prefactor  = 30.3235
  Prefactor  = 7.87795
  Prefactor  = 0.449012
  Prefactor  = 97.4796
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Normalizat = 0.889883
  Prefactor  = 0.939553
 **********
 **   18 **HESSE 
 **********

 FCN=   8089.848     FROM HESSE     STATUS=OK           362 CALLS     2802 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4735        2.3132        .16340E-03   -1.5465    
   2  norm          15.373        14.947        .10216E-03   -1.4924    
   3  norm          .93190        .65448        .61617E-03   -1.5515    
   4  Prefactor     .10000E-03    10.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.577        19.721        .55845E-04   -1.4270    
   6  Prefactor     34.248        26.323        .68475E-04   -1.4537    
   7  norm          .65334E-01    3.2205        .48303E-01   -1.5657    
   8  Prefactor     3.5593        7.7173        .10713E-02   -1.5331    
   9  Prefactor     15.073        12.902        .10317E-03   -1.4931    
  10  Prefactor     .22357        .16035        .29121E-03   -1.5613    
  11  Prefactor     2.6855        7.0836        .12431E-02   -1.5380    
  12  norm          .76776        1.7895        .16874E-03   -1.5533    
  13  Prefactor     .10000E-03    7.3858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.324        17.815        .72754E-04   -1.4606    
  15  Prefactor     7.8779        22.170        .14267E-03   -1.5147    
  16  Prefactor     .44901        .15575        .19024E-04   -1.5574    
  17  Prefactor     97.480        48.948        .40717E-04   -1.3730    
  18  Prefactor     .10000E-03    3.9759        .17463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    82.555        .48509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88988        .24947        .34017E-03   -.96817    
  22  Prefactor     .93955        .13298        .18567E-03   -.94772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55884e-09
Minuit parameter uncertainties:
  1  2.31333
  2  14.9509
  3  0.654483
  4  9.11685e-06
  5  19.7235
  6  26.3323
  7  0.916759
  8  7.71942
  9  12.9045
  10  0.160347
  11  7.08578
  12  1.78962
  13  2.07948e-05
  14  17.8178
  15  22.1931
  16  0.155752
  17  48.9679
  18  3.18711e-05
  19  0.00141027
  20  0.000222182
  21  0.24979
  22  0.133025
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  2.686e+00  7.086e+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:  9.396e-01  1.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  8.899e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/371487/likelihoodResults_627091201_627350401_4FGL_J2234.7+0943_daily_bin1496.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) = 8088.15633494
delta logL = 1.69185319927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8088.1495372
delta logL = 1.69865093578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2974       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.6132       1.0000          .0000       10.000    
     3 'Normalizat'    .81364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95478       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=   8088.150     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2977        11.056        .97048E-02    .84916E-03
   2  Index1        2.6131        1.9694        .12125        .19392E-03
   3  Normalizat    .81366        .53787E-01    .79925E-01    .33595E-04
   4  Prefactor     .95477        .29653E-01    .45699E-01    .41656E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.2977
  Index1     = 2.61307
  Normalizat = 0.813658
  Prefactor  = 0.954765
 **********
 **   18 **HESSE 
 **********

 FCN=   8088.150     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2977        12.898        .61507E-04   -1.5480    
   2  Index1        2.6131        2.6343        .42949E-02   -.49768    
   3  Normalizat    .81366        .25198        .35383E-03   -.99564    
   4  Prefactor     .95477        .14232        .18406E-03   -.94253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91231e-10
Minuit parameter uncertainties:
  1  8.18419
  2  2.82501
  3  0.252341
  4  0.142373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371487': 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) = 8088.14953719
delta logL = 1.69865094536

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.298e+00  8.184e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.613e+00  2.825e+00  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.548e-01  1.424e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  8.137e-01  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 338.691 9.732
Photon Index (Free Index): 2.61 +/- 2.83
Photon Flux (Free Index): 8.53e-08 +/- 5.55e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.84e-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/371487/cmap_HighResolution_627091201_627350401_4FGL_J2234.7+0943_daily_bin1496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-05', comment='SUCCESS', energy_flux2='1.68e-05', dlogl='1.70e+00', photon_flux2='8.53e-08', job_status='DONE', time_completed='2021-09-28 15:28:36.593462', photon_index_error2='2.83', photon_index2='2.61', ts='0.18', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='5.59e-08', energy_flux_error2='1.84e-05', EG='0.89', time_epoch_completed='1632868116.59', return_code='0', job_id='371487', GAL2='0.95', EG2='0.81', return_code2='0', photon_flux_error2='5.55e-08', ts2='3.64', photon_index='0.94' WHERE bin_id='1496' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:28:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 371487: <4FGL_J2234.7+0943_daily_bin1496> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1496 338.691 9.732 627091201 627350401 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 :                                   722.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             389.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            737 sec.

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

