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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1414
RA = 338.691, Dec = 9.732
tmin = 605836801, tmax = 606096001
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='371360', job_status='RUN', time_executed='2021-09-28 15:19:24.175036', time_epoch_executed='1632867564.18' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371360

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371360/ft1_4FGL_J2234.7+0943_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371360/ft2_4FGL_J2234.7+0943_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371360/ft1_4FGL_J2234.7+0943_daily_bin1414.fits outfile=/scratch/kocevski/371360/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1414.fits ra=338.691 dec=9.732 rad=12.0 tmin=605836801.0 tmax=606096001.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.61
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/371360/ft2_4FGL_J2234.7+0943_daily_bin1414.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/371360/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1414.fits evtable="EVENTS" outfile="/scratch/kocevski/371360/ft1_filtered_4FGL_J2234.7+0943_daily_bin1414.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371360/ft1_filtered_4FGL_J2234.7+0943_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/371360/ft2_4FGL_J2234.7+0943_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/371360/ltcube_605836801_606096001_4FGL_J2234.7+0943_daily_bin1414.fits outfile=/scratch/kocevski/371360/expmap_605836801_606096001_4FGL_J2234.7+0943_daily_bin1414.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/371360/ltcube_605836801_606096001_4FGL_J2234.7+0943_daily_bin1414.fits
.....................!
real 193.14
user 186.85
sys 5.67

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/371360/ft1_filtered_4FGL_J2234.7+0943_daily_bin1414.fits scfile=/scratch/kocevski/371360/ft2_4FGL_J2234.7+0943_daily_bin1414.fits outfile=/scratch/kocevski/371360/cmap_605836801_606096001_4FGL_J2234.7+0943_daily_bin1414.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371360/ft1_filtered_4FGL_J2234.7+0943_daily_bin1414.fits scfile=/scratch/kocevski/371360/ft2_4FGL_J2234.7+0943_daily_bin1414.fits outfile=/scratch/kocevski/371360/cmap_HighResolution_605836801_606096001_4FGL_J2234.7+0943_daily_bin1414.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/371360/ft1_filtered_4FGL_J2234.7+0943_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/371360/ft2_4FGL_J2234.7+0943_daily_bin1414.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371360/Model_4FGL_J2234.7+0943_daily_bin1414.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/371360/ft1_filtered_4FGL_J2234.7+0943_daily_bin1414.fits.....................!
real 63.73
user 62.33
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/371360/ft1_filtered_4FGL_J2234.7+0943_daily_bin1414.fits', '/scratch/kocevski/371360/ft2_4FGL_J2234.7+0943_daily_bin1414.fits', expMap='/scratch/kocevski/371360/expmap_605836801_606096001_4FGL_J2234.7+0943_daily_bin1414.fits', expCube='/scratch/kocevski/371360/ltcube_605836801_606096001_4FGL_J2234.7+0943_daily_bin1414.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/371360/Model_4FGL_J2234.7+0943_daily_bin1414.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/371360/ft1_filtered_4FGL_J2234.7+0943_daily_bin1414.fits
Spacecraft file(s): /scratch/kocevski/371360/ft2_4FGL_J2234.7+0943_daily_bin1414.fits
Exposure map: /scratch/kocevski/371360/expmap_605836801_606096001_4FGL_J2234.7+0943_daily_bin1414.fits
Exposure cube: /scratch/kocevski/371360/ltcube_605836801_606096001_4FGL_J2234.7+0943_daily_bin1414.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/371360/Model_4FGL_J2234.7+0943_daily_bin1414.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6345.29023626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .22932E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11856E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.763       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12924       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4256       1.0000         .10000E-03   10000.    
    12 'norm      '    .33199       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .69670       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7462       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3348       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.235       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95174       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0267       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=   6345.158     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2093 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .91658        .31713E-07** at limit **
   2  norm          .10000E-03    105.51        .10862E-05** at limit **
   3  norm          .10000E-03    .69344        .11284E-06** at limit **
   4  Prefactor     .10000E-03    27.350       -.25178E-05** at limit **
   5  Prefactor     .10000E-03    7.3014        .70927E-07** at limit **
   6  Prefactor     .10000E-03    21.794        .25332E-05** at limit **
   7  norm          .10004E-03    2.3406       -.44048E-06** at limit **
   8  Prefactor     .10000E-03    24.233        .88510E-06** at limit **
   9  Prefactor     13.764        14.572        .96028E-07    .17085E-04
  10  Prefactor     .12925        .13436        .17528E-08   -.38904E-03
  11  Prefactor     6.4259        5.9819        .95223E-08   -.86126E-05
  12  norm          .33208        .93898        .34097E-07   -.16444E-03
  13  Prefactor     .10000E-03    8.0329       -.65595E-07** at limit **
  14  Prefactor     .10000E-03    5.0717        .30005E-07** at limit **
  15  Prefactor     .10000E-03    18.331       -.14191E-05** at limit **
  16  Prefactor     .69671        .16774       -.44894E-08    .41809E-03
  17  Prefactor     2.7335        134.73        .50396E-05   -.13607E-05
  18  Prefactor     4.3351        7.1233        .22505E-05    .63622E-04
  19  Prefactor     .10000E-03    10.417        .13317E-06** at limit **
  20  Prefactor     11.237        18.266       -.49003E-08   -.78984E-05
  21  Normalizat    .95167        .22677       -.91155E-08   -.26873E-04
  22  Prefactor     1.0268        .12767       -.54863E-06   -.59317E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 13.7636
  Prefactor  = 0.129252
  Prefactor  = 6.42591
  norm       = 0.332082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.696706
  Prefactor  = 2.73351
  Prefactor  = 4.33508
  Prefactor  = 0.0001
  Prefactor  = 11.2366
  Normalizat = 0.95167
  Prefactor  = 1.02676
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.158     FROM HESSE     STATUS=OK           348 CALLS     2441 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .92219        .74469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    108.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9081        .12799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10004E-03    29.909        .22854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.941        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.764        14.545        .10797E-03   -1.4966    
  10  Prefactor     .12925        .12547        .28519E-03   -1.5636    
  11  Prefactor     6.4259        5.9812        .15833E-03   -1.5201    
  12  norm          .33208        .82620        .12715E-02   -1.5593    
  13  Prefactor     .10000E-03    8.0350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0874        .17519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .69671        .16770        .15284E-04   -1.5541    
  17  Prefactor     2.7335        135.77        .24567E-03   -1.5377    
  18  Prefactor     4.3351        7.1337        .96737E-03   -1.5292    
  19  Prefactor     .10000E-03    10.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.237        18.259        .11952E-03   -1.5037    
  21  Normalizat    .95167        .26935        .32997E-03   -.94668    
  22  Prefactor     1.0268        .15235        .18333E-03   -.91843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08735e-08
Minuit parameter uncertainties:
  1  4.19536e-07
  2  7.86842e-05
  3  1.18492e-06
  4  5.34476e-05
  5  2.52366e-06
  6  6.00292e-06
  7  0.00213746
  8  3.55272e-07
  9  14.5483
  10  0.125468
  11  5.98174
  12  0.826233
  13  5.41338e-07
  14  2.09967e-06
  15  2.1132e-05
  16  0.167697
  17  38.6221
  18  7.13506
  19  4.28385e-06
  20  18.2679
  21  0.269734
  22  0.152411
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  6.426e+00  5.982e+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:  1.027e+00  1.524e-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.517e-01  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.26
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.65e-08 +/- 1.54e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.13e-05

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): 0
logL (Free Index) = 6344.39883319
delta logL = 0.759119635603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6344.39665825
delta logL = 0.761294571884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7852       1.0000         .10000E-03   10000.    
     2 'Index1    '    .49212E-07   1.0000          .0000       10.000    
     3 'Normalizat'    .95350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0291       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=   6344.397     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7853        6.4815        .38508E-02   -.59600E-03
   2  Index1        .22204E-14    .78771        .50000    ** at limit **
   3  Normalizat    .95342        .21877        .74500E-01    .21458E-04
   4  Prefactor     1.0292        .12655        .41328E-01    .30740E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.78526
  Index1     = 2.22045e-15
  Normalizat = 0.953415
  Prefactor  = 1.02917
 **********
 **   18 **HESSE 
 **********

 FCN=   6344.397     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7853        6.4648        .15403E-03   -1.5187    
   2  Index1        .22204E-14    1.4415        .44064E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95342        .26087        .32967E-03   -.94608    
   4  Prefactor     1.0292        .15118        .18314E-03   -.91763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71635e-10
Minuit parameter uncertainties:
  1  6.46543
  2  1.18727e-07
  3  0.261219
  4  0.151247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371360': 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) = 6344.39665818
delta logL = 0.76129464214

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  6.785e+00  6.465e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.220e-15  1.187e-07  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.029e+00  1.512e-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.534e-01  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.78
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 7.91e-09 +/- 7.54e-09
Energy Flux (Free Index): 1.81e-05 +/- 1.72e-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/371360/cmap_HighResolution_605836801_606096001_4FGL_J2234.7+0943_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.65e-08', energy_flux2='1.81e-05', photon_flux_error='1.54e-08', dlogl='7.61e-01', energy_flux='1.22e-05', photon_flux2='7.91e-09', job_status='DONE', time_completed='2021-09-28 15:28:41.460741', photon_index_error2='0.00', photon_index2='0.00', ts='4.26', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.95', time_epoch_completed='1632868121.46', return_code='0', job_id='371360', GAL2='1.03', EG2='0.95', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='7.54e-09', ts2='5.78', photon_index='0.94' WHERE bin_id='1414' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:28:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 371360: <4FGL_J2234.7+0943_daily_bin1414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1414 338.691 9.732 605836801 606096001 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 :                                   553.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            751 sec.

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

