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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin973
RA = 338.152, Dec = 11.7306
tmin = 491529601, tmax = 491788801
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='346699', job_status='RUN', time_executed='2021-09-28 14:00:54.190836', time_epoch_executed='1632862854.19' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346699/ft1_4FGL_J2232.6+1143_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346699/ft2_4FGL_J2232.6+1143_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346699/ft1_4FGL_J2232.6+1143_daily_bin973.fits outfile=/scratch/kocevski/346699/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin973.fits ra=338.152 dec=11.7306 rad=12.0 tmin=491529601.0 tmax=491788801.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.49
user 3.27
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346699/ft1_filtered_4FGL_J2232.6+1143_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/346699/ft2_4FGL_J2232.6+1143_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/346699/ltcube_491529601_491788801_4FGL_J2232.6+1143_daily_bin973.fits outfile=/scratch/kocevski/346699/expmap_491529601_491788801_4FGL_J2232.6+1143_daily_bin973.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/346699/ltcube_491529601_491788801_4FGL_J2232.6+1143_daily_bin973.fits
.....................!
real 191.12
user 186.24
sys 4.53

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/346699/ft1_filtered_4FGL_J2232.6+1143_daily_bin973.fits scfile=/scratch/kocevski/346699/ft2_4FGL_J2232.6+1143_daily_bin973.fits outfile=/scratch/kocevski/346699/cmap_491529601_491788801_4FGL_J2232.6+1143_daily_bin973.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346699/ft1_filtered_4FGL_J2232.6+1143_daily_bin973.fits scfile=/scratch/kocevski/346699/ft2_4FGL_J2232.6+1143_daily_bin973.fits outfile=/scratch/kocevski/346699/cmap_HighResolution_491529601_491788801_4FGL_J2232.6+1143_daily_bin973.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/346699/ft1_filtered_4FGL_J2232.6+1143_daily_bin973.fits', '/scratch/kocevski/346699/ft2_4FGL_J2232.6+1143_daily_bin973.fits', expMap='/scratch/kocevski/346699/expmap_491529601_491788801_4FGL_J2232.6+1143_daily_bin973.fits', expCube='/scratch/kocevski/346699/ltcube_491529601_491788801_4FGL_J2232.6+1143_daily_bin973.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/346699/Model_4FGL_J2232.6+1143_daily_bin973.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/346699/ft1_filtered_4FGL_J2232.6+1143_daily_bin973.fits
Spacecraft file(s): /scratch/kocevski/346699/ft2_4FGL_J2232.6+1143_daily_bin973.fits
Exposure map: /scratch/kocevski/346699/expmap_491529601_491788801_4FGL_J2232.6+1143_daily_bin973.fits
Exposure cube: /scratch/kocevski/346699/ltcube_491529601_491788801_4FGL_J2232.6+1143_daily_bin973.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/346699/Model_4FGL_J2232.6+1143_daily_bin973.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) = 11264.6832781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3174       1.0000         .10000E-03   10000.    
     3 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8825       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2735       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.996       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5544       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3602       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4401       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8569       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   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 '    10.115       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.376       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89323       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92318       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11264.68     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2214 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.419       -.13376E-07** at limit **
   2  norm          2.3138        2.4480       -.10183E-07    .12196E-04
   3  norm          .10000E-03    33.465        .68947E-08** at limit **
   4  norm          .10000E-03    .28332       -.34664E-09** at limit **
   5  Prefactor     3.8804        11.742       -.32523E-06   -.88884E-04
   6  Prefactor     .10001E-03    10.083        .71747E-07** at limit **
   7  norm          1.2731        4.5279       -.10650E-06   -.26194E-04
   8  Prefactor     11.996        12.015       -.62828E-08    .17159E-04
   9  Prefactor     3.5537        10.404       -.25373E-07    .73318E-04
  10  Prefactor     1.3602        .28165        .18050E-08    .12483E-03
  11  Prefactor     3.4396        3.9280       -.30673E-06   -.21841E-03
  12  norm          2.8574        1.7842       -.17487E-08   -.46883E-05
  13  Prefactor     .10000E-03    12.915       -.13109E-07** at limit **
  14  Prefactor     .10000E-03    8.5283        .22144E-07** at limit **
  15  Prefactor     .10000E-03    6.6484        .16846E-08** at limit **
  16  Prefactor     10.115        .47569       -.44448E-09    .22837E-03
  17  Prefactor     42.376        41.686       -.10847E-07   -.12364E-03
  18  Prefactor     .10000E-03    2.2817       -.70510E-09** at limit **
  19  Prefactor     .10002E-03    9.4309       -.82452E-07** at limit **
  20  Normalizat    .89313        .24275        .41982E-07    .74212E-05
  21  Prefactor     .92323        .12272        .32544E-07    .18395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 2.31379
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.88045
  Prefactor  = 0.000100012
  norm       = 1.27311
  Prefactor  = 11.9955
  Prefactor  = 3.55371
  Prefactor  = 1.36019
  Prefactor  = 3.4396
  norm       = 2.85743
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.115
  Prefactor  = 42.3763
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Normalizat = 0.89313
  Prefactor  = 0.923235
 **********
 **   18 **HESSE 
 **********

 FCN=   11264.68     FROM HESSE     STATUS=OK           319 CALLS     2533 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3138        2.4407        .16427E-03   -1.5404    
   3  norm          .10000E-03    33.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .42443        .10927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8804        13.437        .10239E-02   -1.5314    
   6  Prefactor     .10001E-03    10.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2731        4.6714        .39398E-03   -1.5482    
   8  Prefactor     11.996        12.031        .11566E-03   -1.5015    
   9  Prefactor     3.5537        10.385        .21438E-03   -1.5331    
  10  Prefactor     1.3602        .28286        .23927E-04   -1.5475    
  11  Prefactor     3.4396        6.9735        .10904E-02   -1.5337    
  12  norm          2.8574        1.7835        .10889E-03   -1.5370    
  13  Prefactor     .10000E-03    12.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.115        .47658        .15044E-04   -1.5072    
  17  Prefactor     42.376        41.867        .61582E-04   -1.4405    
  18  Prefactor     .10000E-03    2.2853        .15656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    9.4897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .89313        .28096        .47507E-03   -.96702    
  21  Prefactor     .92323        .14365        .25007E-03   -.95334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21136e-09
Minuit parameter uncertainties:
  1  0.000344138
  2  2.44081
  3  6.94577e-05
  4  1.1128e-07
  5  13.4478
  6  0.000698732
  7  4.67274
  8  12.0334
  9  10.3907
  10  0.282857
  11  6.97515
  12  1.78354
  13  0.000143485
  14  0.000214758
  15  1.44548e-05
  16  0.476578
  17  41.8963
  18  1.56151e-06
  19  0.000768565
  20  0.281424
  21  0.143708
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.360e+00  2.829e-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.232e-01  1.437e-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.931e-01  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 69.96
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 3.47e-07 +/- 7.21e-08
Energy Flux (Fixed Index): 1.29e-04 +/- 2.67e-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) = 11264.6439795
delta logL = 0.0341830433281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11264.6368689
delta logL = 0.041293669412

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3453       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1134       1.0000          .0000       10.000    
     3 'Normalizat'    .87689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92892       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=   11264.64     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3451        1.8942        .53157E-02    .20818E-03
   2  Index1        2.1132        1.3660        .11461        .86129E-04
   3  Normalizat    .87728        .29353        .10793        .43979E-04
   4  Prefactor     .92878        .15375        .45373E-01    .65648E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.3451
  Index1     = 2.11321
  Normalizat = 0.87728
  Prefactor  = 0.928781
 **********
 **   18 **HESSE 
 **********

 FCN=   11264.64     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3451        .27819        .23534E-04   -1.5476    
   2  Index1        2.1132        .21384        .48375E-02   -.61549    
   3  Normalizat    .87728        .27108        .47860E-03   -.97263    
   4  Prefactor     .92878        .14367        .24937E-03   -.95143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27892e-10
Minuit parameter uncertainties:
  1  0.278191
  2  0.213942
  3  0.271497
  4  0.143733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346699': 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) = 11264.6368673
delta logL = 0.0412951880862

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.345e+00  2.782e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.113e+00  2.139e-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.288e-01  1.437e-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.773e-01  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 68.57
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.11 +/- 0.21
Photon Flux (Free Index): 3.61e-07 +/- 8.70e-08
Energy Flux (Free Index): 1.25e-04 +/- 2.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/346699/cmap_HighResolution_491529601_491788801_4FGL_J2232.6+1143_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.47e-07', energy_flux2='1.25e-04', photon_flux_error='7.21e-08', dlogl='4.13e-02', energy_flux='1.29e-04', photon_flux2='3.61e-07', job_status='DONE', time_completed='2021-09-28 14:14:20.490514', photon_index_error2='0.21', photon_index2='2.11', ts='69.96', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.81e-05', EG='0.89', time_epoch_completed='1632863660.49', return_code='0', job_id='346699', GAL2='0.93', EG2='0.88', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='8.70e-08', ts2='68.57', photon_index='2.05' WHERE bin_id='973' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:14:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 346699: <4FGL_J2232.6+1143_daily_bin973> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin973> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:00:41 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:00:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 14:00:43 2021
Terminated at Tue Sep 28 14:14:20 2021
Results reported at Tue Sep 28 14:14:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin973 338.152 11.7306 491529601 491788801 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 :                                   805.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            819 sec.

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

