/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 142 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2234.7+0943_daily_bin392
RA = 338.691, Dec = 9.732
tmin = 340934401, tmax = 341193601
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='364861', job_status='RUN', time_executed='2021-09-28 15:03:19.722668', time_epoch_executed='1632866599.72' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364861

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364861/ft1_4FGL_J2234.7+0943_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364861/ft2_4FGL_J2234.7+0943_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364861/ft1_4FGL_J2234.7+0943_daily_bin392.fits outfile=/scratch/kocevski/364861/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin392.fits ra=338.691 dec=9.732 rad=12.0 tmin=340934401.0 tmax=341193601.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.37
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364861/ft1_filtered_4FGL_J2234.7+0943_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/364861/ft2_4FGL_J2234.7+0943_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/364861/ltcube_340934401_341193601_4FGL_J2234.7+0943_daily_bin392.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/364861/ft2_4FGL_J2234.7+0943_daily_bin392.fits
.....................!
real 11.90
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364861/ft1_filtered_4FGL_J2234.7+0943_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/364861/ft2_4FGL_J2234.7+0943_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/364861/ltcube_340934401_341193601_4FGL_J2234.7+0943_daily_bin392.fits outfile=/scratch/kocevski/364861/expmap_340934401_341193601_4FGL_J2234.7+0943_daily_bin392.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/364861/ltcube_340934401_341193601_4FGL_J2234.7+0943_daily_bin392.fits
.....................!
real 190.44
user 185.63
sys 4.42

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

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364861/ft1_filtered_4FGL_J2234.7+0943_daily_bin392.fits scfile=/scratch/kocevski/364861/ft2_4FGL_J2234.7+0943_daily_bin392.fits outfile=/scratch/kocevski/364861/cmap_HighResolution_340934401_341193601_4FGL_J2234.7+0943_daily_bin392.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/364861/ft1_filtered_4FGL_J2234.7+0943_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/364861/ft2_4FGL_J2234.7+0943_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/364861/Model_4FGL_J2234.7+0943_daily_bin392.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/364861/ft1_filtered_4FGL_J2234.7+0943_daily_bin392.fits.....................!
real 69.06
user 67.72
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0686       1.0000         .10000E-03   10000.    
     2 'norm      '    17.520       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2763       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4147       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3687       1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.788       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2358       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.955       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.849       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39649       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .87051E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2948       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.385       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.425       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8445       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2973       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0339       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78720       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=   6902.539     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2093 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0668        4.1193        .37721E-02    .54075E-03
   2  norm          17.518        21.287        .23921E-02    .39721E-04
   3  norm          3.2763        1.3371        .55928E-02    .31852E-03
   4  Prefactor     1.4149        26.027        .91007E-02    .25517E-03
   5  Prefactor     2.4388        44.288        .66558E-02    .11252E-03
   6  Prefactor     50.785        31.571        .14069E-02    .14326E-02
   7  norm          3.2373        4.7451        .56294E-02    .49379E-03
   8  Prefactor     13.955        17.513        .26805E-02   -.10619E-02
   9  Prefactor     19.858        17.093        .22475E-02    .42076E-03
  10  Prefactor     .39663        .21562        .56067E-02    .12203E-03
  11  Prefactor     .10000E-03    4.8639        .66376E-01** at limit **
  12  norm          2.2948        1.5118        .67736E-02   -.72716E-04
  13  Prefactor     25.371        22.680        .19877E-02    .90878E-03
  14  Prefactor     13.426        13.435        .27330E-02   -.17517E-03
  15  Prefactor     2.8480        13.544        .60271E-02    .19668E-03
  16  Prefactor     .10000E-03    .39833E-01    .83096E-02** at limit **
  17  Prefactor     .10000E-03    24.014        .90712E-02** at limit **
  18  Prefactor     3.2975        6.6249        .55741E-02    .69564E-03
  19  Prefactor     .10000E-03    5.7198        .90712E-02** at limit **
  20  Prefactor     .10000E-03    10.071        .90712E-02** at limit **
  21  Normalizat    1.0338        .21253        .70359E-01    .18429E-04
  22  Prefactor     .78723        .11098        .43550E-01    .11897E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.0668
  norm       = 17.5179
  norm       = 3.2763
  Prefactor  = 1.41488
  Prefactor  = 2.43879
  Prefactor  = 50.7855
  norm       = 3.23728
  Prefactor  = 13.9551
  Prefactor  = 19.8582
  Prefactor  = 0.396633
  Prefactor  = 0.0001
  norm       = 2.29484
  Prefactor  = 25.3714
  Prefactor  = 13.4256
  Prefactor  = 2.84796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.29749
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.03381
  Prefactor  = 0.787226
 **********
 **   18 **HESSE 
 **********

 FCN=   6902.539     FROM HESSE     STATUS=OK           350 CALLS     2443 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0668        4.1165        .12156E-03   -1.5176    
   2  norm          17.518        21.278        .95686E-04   -1.4871    
   3  norm          3.2763        1.3350        .58943E-04   -1.5346    
   4  Prefactor     1.4149        26.055        .36403E-03   -1.5470    
   5  Prefactor     2.4388        44.303        .26623E-03   -1.5396    
   6  Prefactor     50.785        31.564        .56274E-04   -1.4281    
   7  norm          3.2373        4.7288        .20998E-03   -1.5348    
   8  Prefactor     13.955        17.475        .10722E-03   -1.4961    
   9  Prefactor     19.858        17.106        .89901E-04   -1.4816    
  10  Prefactor     .39663        .21153        .24905E-04   -1.5582    
  11  Prefactor     .10000E-03    18.514        .35168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2948        1.5111        .80292E-04   -1.5405    
  13  Prefactor     25.371        22.577        .79507E-04   -1.4700    
  14  Prefactor     13.426        13.423        .10932E-03   -1.4975    
  15  Prefactor     2.8480        13.445        .24108E-03   -1.5370    
  16  Prefactor     .10000E-03    .51444E-01    .31806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2975        6.6037        .22296E-03   -1.5345    
  19  Prefactor     .10000E-03    5.7460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0338        .25036        .31130E-03   -.91906    
  22  Prefactor     .78723        .13110        .19085E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03558e-09
Minuit parameter uncertainties:
  1  4.11665
  2  21.2869
  3  1.33505
  4  12.1491
  5  20.8065
  6  31.5747
  7  4.72939
  8  17.4817
  9  17.11
  10  0.211528
  11  0.000120792
  12  1.51116
  13  22.5843
  14  13.426
  15  12.3803
  16  8.80391e-08
  17  0.000110965
  18  6.60515
  19  0.000107361
  20  5.56082e-05
  21  0.250642
  22  0.131155
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  1.208e-04  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:  7.872e-01  1.312e-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.034e+00  2.506e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/364861/likelihoodResults_340934401_341193601_4FGL_J2234.7+0943_daily_bin392.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) = 6902.53946612
delta logL = -0.000254777524788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6902.53921276
delta logL = -1.41720011015e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42993E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    1.1007       1.0000          .0000       10.000    
     3 'Normalizat'    1.0334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78746       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=   6902.159     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      285 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36721        2.6430        .10615E-01   -.20347E-02
   2  Index1        2.9827        1.7161        .12182        .16349E-03
   3  Normalizat    .98550        .26508        .71795E-01   -.48668E-05
   4  Prefactor     .79687        .11731        .43554E-01   -.26705E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.367212
  Index1     = 2.98269
  Normalizat = 0.985498
  Prefactor  = 0.796865
 **********
 **   18 **HESSE 
 **********

 FCN=   6902.159     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      318 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36721        25.167        .58273E-04   -1.5829    
   2  Index1        2.9827        6.2649        .64917E-02   -.41530    
   3  Normalizat    .98550        .24586        .31769E-03   -.93518    
   4  Prefactor     .79687        .13326        .18964E-03   -.99844    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10372e-06
Minuit parameter uncertainties:
  1  6.08189
  2  7.24865
  3  0.246141
  4  0.133314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364861': 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) = 6902.15854176
delta logL = 0.380669580633

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.672e-01  6.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.983e+00  7.249e+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:  7.969e-01  1.333e-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.855e-01  2.461e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/364861/cmap_HighResolution_340934401_341193601_4FGL_J2234.7+0943_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-05', job_status='DONE', photon_flux_upper_limit='4.71e-08', time_completed='2021-09-28 15:13:41.782648', job_id='364861', GAL2='0.80', fit_tolerance='1e-08', EG2='0.99', EG='1.03', time_epoch_completed='1632867221.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.81e-01', ts2='0.79', photon_index_error='0.00', photon_index='0.94' WHERE bin_id='392' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:13:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 364861: <4FGL_J2234.7+0943_daily_bin392> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin392> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 15:00:48 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 15:00:49 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:00:49 2021
Terminated at Tue Sep 28 15:13:42 2021
Results reported at Tue Sep 28 15:13:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin392 338.691 9.732 340934401 341193601 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 :                                   622.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            774 sec.

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

