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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin809
RA = 338.152, Dec = 11.7306
tmin = 449020801, tmax = 449280001
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='345375', job_status='RUN', time_executed='2021-09-28 13:55:53.767967', time_epoch_executed='1632862553.77' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345375/ft1_4FGL_J2232.6+1143_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345375/ft2_4FGL_J2232.6+1143_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345375/ft1_4FGL_J2232.6+1143_daily_bin809.fits outfile=/scratch/kocevski/345375/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin809.fits ra=338.152 dec=11.7306 rad=12.0 tmin=449020801.0 tmax=449280001.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 5.55
user 5.26
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/345375/ft2_4FGL_J2232.6+1143_daily_bin809.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345375/ft2_4FGL_J2232.6+1143_daily_bin809.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/345375/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin809.fits evtable="EVENTS" outfile="/scratch/kocevski/345375/ft1_filtered_4FGL_J2232.6+1143_daily_bin809.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345375/ft1_filtered_4FGL_J2232.6+1143_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/345375/ft2_4FGL_J2232.6+1143_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/345375/ltcube_449020801_449280001_4FGL_J2232.6+1143_daily_bin809.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/345375/ft2_4FGL_J2232.6+1143_daily_bin809.fits
.....................!
real 12.47
user 12.08
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345375/ft1_filtered_4FGL_J2232.6+1143_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/345375/ft2_4FGL_J2232.6+1143_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/345375/ltcube_449020801_449280001_4FGL_J2232.6+1143_daily_bin809.fits outfile=/scratch/kocevski/345375/expmap_449020801_449280001_4FGL_J2232.6+1143_daily_bin809.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/345375/ltcube_449020801_449280001_4FGL_J2232.6+1143_daily_bin809.fits
.....................!
real 190.89
user 185.00
sys 5.56

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2232.6+1143 @ 338.152 11.7306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/345375/ft1_filtered_4FGL_J2232.6+1143_daily_bin809.fits scfile=/scratch/kocevski/345375/ft2_4FGL_J2232.6+1143_daily_bin809.fits outfile=/scratch/kocevski/345375/cmap_449020801_449280001_4FGL_J2232.6+1143_daily_bin809.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.152 yref=11.7306 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345375/ft1_filtered_4FGL_J2232.6+1143_daily_bin809.fits scfile=/scratch/kocevski/345375/ft2_4FGL_J2232.6+1143_daily_bin809.fits outfile=/scratch/kocevski/345375/cmap_HighResolution_449020801_449280001_4FGL_J2232.6+1143_daily_bin809.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.152 yref=11.7306 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/345375/ft1_filtered_4FGL_J2232.6+1143_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/345375/ft2_4FGL_J2232.6+1143_daily_bin809.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/345375/Model_4FGL_J2232.6+1143_daily_bin809.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/345375/ft1_filtered_4FGL_J2232.6+1143_daily_bin809.fits.....................!
real 65.91
user 64.51
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/345375/ft1_filtered_4FGL_J2232.6+1143_daily_bin809.fits', '/scratch/kocevski/345375/ft2_4FGL_J2232.6+1143_daily_bin809.fits', expMap='/scratch/kocevski/345375/expmap_449020801_449280001_4FGL_J2232.6+1143_daily_bin809.fits', expCube='/scratch/kocevski/345375/ltcube_449020801_449280001_4FGL_J2232.6+1143_daily_bin809.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/345375/Model_4FGL_J2232.6+1143_daily_bin809.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2232.6+1143'

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.234e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       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/345375/ft1_filtered_4FGL_J2232.6+1143_daily_bin809.fits
Spacecraft file(s): /scratch/kocevski/345375/ft2_4FGL_J2232.6+1143_daily_bin809.fits
Exposure map: /scratch/kocevski/345375/expmap_449020801_449280001_4FGL_J2232.6+1143_daily_bin809.fits
Exposure cube: /scratch/kocevski/345375/ltcube_449020801_449280001_4FGL_J2232.6+1143_daily_bin809.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/345375/Model_4FGL_J2232.6+1143_daily_bin809.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) = 6248.97645019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7193       1.0000         .10000E-03   10000.    
     3 'norm      '    22.643       1.0000         .10000E-03   10000.    
     4 'norm      '    .21768       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    85.913       1.0000         .10000E-03   10000.    
     7 'norm      '    8.0378       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22259E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3789       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8401       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.654       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4253       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89036       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6248.975     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     2535 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    14.794        .52859E-05** at limit **
   2  norm          1.7218        3.0332        .82954E-06   -.19495E-05
   3  norm          22.641        27.179       -.66635E-06    .48252E-03
   4  norm          .21680        1.1231       -.21542E-08   -.32082E-05
   5  Prefactor     .10000E-03    9.9637       -.23292E-05** at limit **
   6  Prefactor     85.924        3.5943       -.27209E-07   -.40850E-02
   7  norm          8.0339        6.9615       -.76132E-06   -.67464E-04
   8  Prefactor     .10000E-03    8.7121       -.66006E-06** at limit **
   9  Prefactor     .15885        614.27        .26323E-05   -.48249E-05
  10  Prefactor     3.3790        .48222        .11833E-06    .59550E-04
  11  Prefactor     .10000E-03    5.2998       -.20028E-06** at limit **
  12  norm          3.8395        3.5372        .11016E-07   -.34439E-06
  13  Prefactor     17.639        3.5381       -.82775E-07   -.19972E-02
  14  Prefactor     .10000E-03    11.919        .27364E-05** at limit **
  15  Prefactor     .10000E-03    15.135        .35350E-06** at limit **
  16  Prefactor     3.4253        .55632        .22320E-07    .59433E-05
  17  Prefactor     .10000E-03    21.733       -.19211E-05** at limit **
  18  Prefactor     .10001E-03    13.841        .51918E-05** at limit **
  19  Prefactor     .10000E-03    22.046       -.15611E-05** at limit **
  20  Normalizat    .89003        .34574       -.30617E-05   -.16077E-05
  21  Prefactor     .94398        .17285        .33108E-06   -.23606E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  norm       = 1.72183
  norm       = 22.6415
  norm       = 0.216802
  Prefactor  = 0.0001
  Prefactor  = 85.9237
  norm       = 8.0339
  Prefactor  = 0.0001
  Prefactor  = 0.158845
  Prefactor  = 3.37903
  Prefactor  = 0.0001
  norm       = 3.83945
  Prefactor  = 17.6393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42527
  Prefactor  = 0.000100002
  Prefactor  = 0.000100007
  Prefactor  = 0.000100002
  Normalizat = 0.890031
  Prefactor  = 0.943982
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.975     FROM HESSE     STATUS=OK           369 CALLS     2904 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    27.408        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7218        3.1016        .80101E-02   -1.5446    
   3  norm          22.641        27.531        .21044E-02   -1.4756    
   4  norm          .21680        .78767        .23692E-01   -1.5615    
   5  Prefactor     .10000E-03    9.9534        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     85.924        46.955        .10836E-02   -1.3851    
   7  norm          8.0339        6.9910        .35355E-02   -1.5141    
   8  Prefactor     .10000E-03    8.6965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15885        18.487        .11202       -1.5628    
  10  Prefactor     3.3790        .48175        .44213E-02   -1.5340    
  11  Prefactor     .10000E-03    5.2853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8395        3.5341        .51487E-02   -1.5316    
  13  Prefactor     17.639        45.314        .23831E-02   -1.4868    
  14  Prefactor     .10000E-03    11.896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.119        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4253        .56609        .51627E-02   -1.5338    
  17  Prefactor     .10000E-03    22.092        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    26.885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .89003        .30871        .97628E-01   -.96811    
  21  Prefactor     .94398        .14782        .45564E-01   -.94621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40088e-08
Minuit parameter uncertainties:
  1  0.000845464
  2  3.10187
  3  27.5462
  4  0.787709
  5  2.81811e-06
  6  46.9749
  7  6.99175
  8  1.07827e-06
  9  3.42731
  10  0.481754
  11  1.96629e-07
  12  3.53431
  13  45.4026
  14  2.9571e-06
  15  3.45858e-06
  16  0.566094
  17  0.000390561
  18  0.000886918
  19  0.000444057
  20  0.309324
  21  0.147886
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.379e+00  4.818e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.440e-01  1.479e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  8.900e-01  3.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 159.46
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 8.61e-07 +/- 1.23e-07
Energy Flux (Fixed Index): 3.19e-04 +/- 4.55e-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) = 6248.89164726
delta logL = 0.0831571120107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6248.87760089
delta logL = 0.0972034882116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4062       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9873       1.0000          .0000       10.000    
     3 'Normalizat'    .92329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93230       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6248.878     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      194 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4062        .51764        .44730E-02    .25944E-02
   2  Index1        1.9873        .15373        .61758E-01    .37433E-03
   3  Normalizat    .92327        .29207        .96146E-01    .30660E-05
   4  Prefactor     .93230        .14764        .45415E-01    .54325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.40622
  Index1     = 1.98731
  Normalizat = 0.923266
  Prefactor  = 0.932301
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.878     FROM HESSE     STATUS=OK            29 CALLS      223 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4062        .48859        .19772E-04   -1.5339    
   2  Index1        1.9873        .14662        .27074E-03   -.64668    
   3  Normalizat    .92327        .34290        .42598E-03   -.95647    
   4  Prefactor     .93230        .17341        .21666E-03   -.95021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54447e-10
Minuit parameter uncertainties:
  1  0.488591
  2  0.146648
  3  0.343713
  4  0.173509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345375': 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) = 6248.87760088
delta logL = 0.0972034909528

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.406e+00  4.886e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  1.987e+00  1.466e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
271    Expfactor:  2.832e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
272       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  9.323e-01  1.735e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  9.233e-01  3.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 157.27
Ra Dec: 338.152 11.731
Photon Index (Free Index): 1.99 +/- 0.15
Photon Flux (Free Index): 8.23e-07 +/- 1.46e-07
Energy Flux (Free Index): 3.31e-04 +/- 5.44e-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/345375/cmap_HighResolution_449020801_449280001_4FGL_J2232.6+1143_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.61e-07', energy_flux2='3.31e-04', photon_flux_error='1.23e-07', dlogl='9.72e-02', energy_flux='3.19e-04', photon_flux2='8.23e-07', job_status='DONE', time_completed='2021-09-28 14:05:29.533450', photon_index_error2='0.15', photon_index2='1.99', ts='159.46', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='5.44e-05', EG='0.89', time_epoch_completed='1632863129.53', return_code='0', job_id='345375', GAL2='0.93', EG2='0.92', return_code2='0', energy_flux_error='4.55e-05', photon_flux_error2='1.46e-07', ts2='157.27', photon_index='2.05' WHERE bin_id='809' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:05:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 345375: <4FGL_J2232.6+1143_daily_bin809> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin809> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 13:55:42 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:55:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 13:55:44 2021
Terminated at Tue Sep 28 14:05:32 2021
Results reported at Tue Sep 28 14:05:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin809 338.152 11.7306 449020801 449280001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2232.6+1143 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   575.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   585 sec.
    Turnaround time :                            590 sec.

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

