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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin621
RA = 338.691, Dec = 9.732
tmin = 400291201, tmax = 400550401
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='366317', job_status='RUN', time_executed='2021-09-28 15:05:24.422846', time_epoch_executed='1632866724.42' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366317

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366317/ft1_4FGL_J2234.7+0943_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366317/ft2_4FGL_J2234.7+0943_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366317/ft1_4FGL_J2234.7+0943_daily_bin621.fits outfile=/scratch/kocevski/366317/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin621.fits ra=338.691 dec=9.732 rad=12.0 tmin=400291201.0 tmax=400550401.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.33
user 3.11
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/366317/ft2_4FGL_J2234.7+0943_daily_bin621.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/366317/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin621.fits evtable="EVENTS" outfile="/scratch/kocevski/366317/ft1_filtered_4FGL_J2234.7+0943_daily_bin621.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/366317/ft1_filtered_4FGL_J2234.7+0943_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/366317/ft2_4FGL_J2234.7+0943_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/366317/ltcube_400291201_400550401_4FGL_J2234.7+0943_daily_bin621.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/366317/ft2_4FGL_J2234.7+0943_daily_bin621.fits
.....................!
real 11.76
user 11.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366317/ft1_filtered_4FGL_J2234.7+0943_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/366317/ft2_4FGL_J2234.7+0943_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/366317/ltcube_400291201_400550401_4FGL_J2234.7+0943_daily_bin621.fits outfile=/scratch/kocevski/366317/expmap_400291201_400550401_4FGL_J2234.7+0943_daily_bin621.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/366317/ltcube_400291201_400550401_4FGL_J2234.7+0943_daily_bin621.fits
.....................!
real 190.36
user 184.88
sys 5.11

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/366317/ft1_filtered_4FGL_J2234.7+0943_daily_bin621.fits scfile=/scratch/kocevski/366317/ft2_4FGL_J2234.7+0943_daily_bin621.fits outfile=/scratch/kocevski/366317/cmap_400291201_400550401_4FGL_J2234.7+0943_daily_bin621.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/366317/ft1_filtered_4FGL_J2234.7+0943_daily_bin621.fits scfile=/scratch/kocevski/366317/ft2_4FGL_J2234.7+0943_daily_bin621.fits outfile=/scratch/kocevski/366317/cmap_HighResolution_400291201_400550401_4FGL_J2234.7+0943_daily_bin621.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/366317/ft1_filtered_4FGL_J2234.7+0943_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/366317/ft2_4FGL_J2234.7+0943_daily_bin621.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366317/Model_4FGL_J2234.7+0943_daily_bin621.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/366317/ft1_filtered_4FGL_J2234.7+0943_daily_bin621.fits.....................!
real 66.30
user 65.01
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20299E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10298E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.325       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7961       1.0000         .10000E-03   10000.    
     7 'norm      '    10.849       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.444       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54960       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6067       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5808       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0851       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .61037       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91001       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=   6674.210     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2043 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1.3136        .32902E-06** at limit **
   2  norm          .10000E-03    15.497       -.64840E-07** at limit **
   3  norm          .10000E-03    .44240       -.13774E-06** at limit **
   4  Prefactor     23.323        20.224       -.16980E-05    .48018E-04
   5  Prefactor     .10000E-03    5.1093       -.45849E-06** at limit **
   6  Prefactor     3.7871        50.949       -.30914E-04   -.23555E-04
   7  norm          10.848        5.9780       -.40006E-06   -.68969E-05
   8  Prefactor     18.441        14.064       -.96760E-06    .13624E-04
   9  Prefactor     .10000E-03    3.8232       -.51546E-06** at limit **
  10  Prefactor     .54959        .20995        .71343E-07    .17546E-03
  11  Prefactor     4.6064        5.0629        .50332E-07    .11442E-03
  12  norm          4.5804        2.1641        .57620E-07    .10271E-03
  13  Prefactor     .10000E-03    21.909        .96641E-05** at limit **
  14  Prefactor     .10000E-03    14.967       -.27295E-05** at limit **
  15  Prefactor     .10000E-03    5.2326        .44623E-06** at limit **
  16  Prefactor     2.0851        .24993       -.52749E-07   -.41569E-03
  17  Prefactor     .10000E-03    21.874        .10098E-04** at limit **
  18  Prefactor     .10000E-03    3.7426        .47018E-06** at limit **
  19  Prefactor     .10000E-03    4.6216        .83790E-06** at limit **
  20  Prefactor     .10000E-03    25.078       -.12275E-04** at limit **
  21  Normalizat    .61035        .21222        .82418E-06    .50103E-04
  22  Prefactor     .91004        .11766        .11080E-05   -.74024E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 23.323
  Prefactor  = 0.0001
  Prefactor  = 3.78713
  norm       = 10.8483
  Prefactor  = 18.4409
  Prefactor  = 0.0001
  Prefactor  = 0.54959
  Prefactor  = 4.60638
  norm       = 4.58044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.08506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.610346
  Prefactor  = 0.91004
 **********
 **   18 **HESSE 
 **********

 FCN=   6674.210     FROM HESSE     STATUS=OK           340 CALLS     2383 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    10.871        .18067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    15.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.1952        .10424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.323        20.183        .82938E-04   -1.4742    
   5  Prefactor     .10000E-03    5.1117        .18034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7871        51.565        .20718E-03   -1.5319    
   7  norm          10.848        5.9556        .12164E-03   -1.5049    
   8  Prefactor     18.441        14.064        .93261E-04   -1.4849    
   9  Prefactor     .10000E-03    3.8269        .15601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .54959        .20881        .21464E-04   -1.5560    
  11  Prefactor     4.6064        5.0663        .18710E-03   -1.5279    
  12  norm          4.5804        2.1650        .80300E-04   -1.5280    
  13  Prefactor     .10000E-03    21.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0851        .24999        .13507E-04   -1.5419    
  17  Prefactor     .10000E-03    21.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7728        .15430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6263        .17149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .61035        .24200        .38641E-03   -1.0755    
  22  Prefactor     .91004        .13634        .18202E-03   -.95791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79838e-10
Minuit parameter uncertainties:
  1  0.00056514
  2  1.86311e-05
  3  0.000170752
  4  20.1889
  5  4.2279e-06
  6  27.9777
  7  5.95589
  8  14.0661
  9  7.2435e-07
  10  0.208812
  11  5.06677
  12  2.16505
  13  1.86986e-05
  14  8.41085e-06
  15  6.92316e-07
  16  0.249988
  17  3.33959e-05
  18  5.71206e-06
  19  6.31258e-06
  20  8.40544e-06
  21  0.242416
  22  0.136391
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.606e+00  5.067e+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.100e-01  1.364e-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:  6.103e-01  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.70
Ra Dec: 338.691 9.732
Photon Index (Fixed Index): 0.94 +/- 0.00
Photon Flux (Fixed Index): 1.18e-08 +/- 1.30e-08
Energy Flux (Fixed Index): 8.73e-06 +/- 9.60e-06

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

Saving results to:
/scratch/kocevski/366317/likelihoodResults_400291201_400550401_4FGL_J2234.7+0943_daily_bin621.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): 0
logL (Free Index) = 6673.2750486
delta logL = 0.934724172246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6673.2707171
delta logL = 0.93905567629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2107       1.0000         .10000E-03   10000.    
     2 'Index1    '    .53434E-09   1.0000          .0000       10.000    
     3 'Normalizat'    .61321       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91097       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=   6673.271     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2107        4.3867        .49096E-02    .11026E-02
   2  Index1        .27756E-14    .51503        .50000    ** at limit **
   3  Normalizat    .61327        .20498        .87031E-01    .35254E-04
   4  Prefactor     .91094        .11707        .45145E-01   -.48490E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.21072
  Index1     = 2.77556e-15
  Normalizat = 0.613271
  Prefactor  = 0.910944
 **********
 **   18 **HESSE 
 **********

 FCN=   6673.271     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2107        4.3747        .16989E-03   -1.5298    
   2  Index1        .27756E-14    .56407        .36376E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .61327        .23717        .38558E-03   -1.0742    
   4  Prefactor     .91094        .13586        .18194E-03   -.95760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90127e-10
Minuit parameter uncertainties:
  1  4.37507
  2  7.62256e-08
  3  0.237564
  4  0.135913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366317': 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) = 6673.27071706
delta logL = 0.939055715515

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  4.211e+00  4.375e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  2.776e-15  7.623e-08  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.109e-01  1.359e-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:  6.133e-01  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 338.691 9.732
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.91e-09 +/- 5.10e-09
Energy Flux (Free Index): 1.12e-05 +/- 1.16e-05

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/366317/cmap_HighResolution_400291201_400550401_4FGL_J2234.7+0943_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-05', comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='1.12e-05', photon_flux_error='1.30e-08', dlogl='9.39e-01', energy_flux='8.73e-06', photon_flux2='4.91e-09', job_status='DONE', time_completed='2021-09-28 15:15:36.126270', photon_index_error2='0.00', photon_index2='0.00', ts='2.70', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='5.54e-08', energy_flux_error2='1.16e-05', EG='0.61', time_epoch_completed='1632867336.13', return_code='0', job_id='366317', GAL2='0.91', EG2='0.61', return_code2='0', energy_flux_error='9.60e-06', photon_flux_error2='5.10e-09', ts2='4.58', photon_index='0.94' WHERE bin_id='621' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 15:15:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 366317: <4FGL_J2234.7+0943_daily_bin621> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin621 338.691 9.732 400291201 400550401 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 :                                   611.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            624 sec.

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

