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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin843
RA = 338.152, Dec = 11.7306
tmin = 457833601, tmax = 458092801
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='346493', job_status='RUN', time_executed='2021-09-28 14:00:32.532909', time_epoch_executed='1632862832.53' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='843'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346493

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346493/ft1_4FGL_J2232.6+1143_daily_bin843.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346493/ft2_4FGL_J2232.6+1143_daily_bin843.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346493/ft1_4FGL_J2232.6+1143_daily_bin843.fits outfile=/scratch/kocevski/346493/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin843.fits ra=338.152 dec=11.7306 rad=12.0 tmin=457833601.0 tmax=458092801.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.70
user 3.46
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346493/ft2_4FGL_J2232.6+1143_daily_bin843.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/346493/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin843.fits evtable="EVENTS" outfile="/scratch/kocevski/346493/ft1_filtered_4FGL_J2232.6+1143_daily_bin843.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346493/ft1_filtered_4FGL_J2232.6+1143_daily_bin843.fits" evtable="EVENTS" scfile=/scratch/kocevski/346493/ft2_4FGL_J2232.6+1143_daily_bin843.fits sctable="SC_DATA" outfile=/scratch/kocevski/346493/ltcube_457833601_458092801_4FGL_J2232.6+1143_daily_bin843.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/346493/ft2_4FGL_J2232.6+1143_daily_bin843.fits
.....................!
real 12.30
user 11.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346493/ft1_filtered_4FGL_J2232.6+1143_daily_bin843.fits evtable="EVENTS" scfile=/scratch/kocevski/346493/ft2_4FGL_J2232.6+1143_daily_bin843.fits sctable="SC_DATA" expcube=/scratch/kocevski/346493/ltcube_457833601_458092801_4FGL_J2232.6+1143_daily_bin843.fits outfile=/scratch/kocevski/346493/expmap_457833601_458092801_4FGL_J2232.6+1143_daily_bin843.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/346493/ltcube_457833601_458092801_4FGL_J2232.6+1143_daily_bin843.fits
.....................!
real 192.64
user 187.07
sys 5.20

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/346493/ft1_filtered_4FGL_J2232.6+1143_daily_bin843.fits scfile=/scratch/kocevski/346493/ft2_4FGL_J2232.6+1143_daily_bin843.fits outfile=/scratch/kocevski/346493/cmap_457833601_458092801_4FGL_J2232.6+1143_daily_bin843.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346493/ft1_filtered_4FGL_J2232.6+1143_daily_bin843.fits scfile=/scratch/kocevski/346493/ft2_4FGL_J2232.6+1143_daily_bin843.fits outfile=/scratch/kocevski/346493/cmap_HighResolution_457833601_458092801_4FGL_J2232.6+1143_daily_bin843.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/346493/ft1_filtered_4FGL_J2232.6+1143_daily_bin843.fits evtable="EVENTS" scfile=/scratch/kocevski/346493/ft2_4FGL_J2232.6+1143_daily_bin843.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/346493/Model_4FGL_J2232.6+1143_daily_bin843.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/346493/ft1_filtered_4FGL_J2232.6+1143_daily_bin843.fits....................!
real 105.61
user 104.18
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4618       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.226       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7487       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0099       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9743       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6810       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1530       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7648       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5829       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3337       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .90561       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0299       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=   10599.32     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2193 TOTAL
                     EDM=   .31E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.175        .59566E-05** at limit **
   2  norm          .10000E-03    .64811       -.28816E-07** at limit **
   3  norm          .10000E-03    11.805       -.95645E-07** at limit **
   4  norm          2.4619        1.1116       -.28532E-08    .30074E-05
   5  Prefactor     .10000E-03    7.9457        .67134E-07** at limit **
   6  Prefactor     .10000E-03    24.179       -.68122E-05** at limit **
   7  norm          18.228        7.9384        .59625E-07    .36224E-05
   8  Prefactor     8.7484        16.489       -.13030E-06    .57507E-05
   9  Prefactor     .99108        5.7341       -.77971E-08   -.16360E-04
  10  Prefactor     2.9743        .37239       -.84234E-10    .12868E-03
  11  Prefactor     4.6812        7.0794        .44126E-07   -.84822E-04
  12  norm          1.1530        .99956       -.12202E-08    .66249E-05
  13  Prefactor     .10000E-03    8.9343        .31608E-07** at limit **
  14  Prefactor     1.7652        1.9813       -.28556E-08   -.22784E-03
  15  Prefactor     7.5822        14.661        .33610E-08   -.17281E-04
  16  Prefactor     3.3337        .29978       -.11510E-08   -.97351E-04
  17  Prefactor     .10000E-03    46.451       -.21095E-05** at limit **
  18  Prefactor     .10000E-03    1.8521        .51027E-07** at limit **
  19  Prefactor     .10000E-03    19.182        .21766E-05** at limit **
  20  Normalizat    .90563        .24297       -.10925E-06    .19417E-04
  21  Prefactor     1.0298        .12453        .12565E-06    .19376E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.4619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.2283
  Prefactor  = 8.74843
  Prefactor  = 0.991082
  Prefactor  = 2.97432
  Prefactor  = 4.68123
  norm       = 1.15302
  Prefactor  = 0.0001
  Prefactor  = 1.76522
  Prefactor  = 7.58216
  Prefactor  = 3.33369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.90563
  Prefactor  = 1.02985
 **********
 **   18 **HESSE 
 **********

 FCN=   10599.32     FROM HESSE     STATUS=OK           323 CALLS     2516 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .65338        .80929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4619        1.1106        .69940E-04   -1.5394    
   5  Prefactor     .10000E-03    7.9626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.228        7.9443        .93815E-04   -1.4854    
   8  Prefactor     8.7484        16.537        .13552E-03   -1.5116    
   9  Prefactor     .99108        40.425        .45889E-02   -1.5509    
  10  Prefactor     2.9743        .37483        .20173E-04   -1.5363    
  11  Prefactor     4.6812        7.2900        .93001E-03   -1.5275    
  12  norm          1.1530        1.0807        .93393E-03   -1.5493    
  13  Prefactor     .10000E-03    8.9368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7652        7.2435        .15767E-02   -1.5442    
  15  Prefactor     7.5822        14.709        .72817E-03   -1.5157    
  16  Prefactor     3.3337        .30108        .15905E-04   -1.5343    
  17  Prefactor     .10000E-03    46.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8551        .13682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.789        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .90563        .28265        .44418E-03   -.96263    
  21  Prefactor     1.0298        .14516        .22377E-03   -.91741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14049e-08
Minuit parameter uncertainties:
  1  4.11707e-07
  2  9.04113e-08
  3  1.55207e-07
  4  1.11062
  5  5.84006e-07
  6  1.07316e-05
  7  7.94478
  8  16.546
  9  12.6679
  10  0.374829
  11  7.29143
  12  1.08075
  13  7.95233e-08
  14  7.15288
  15  14.7162
  16  0.301083
  17  9.27509e-06
  18  1.74455e-07
  19  3.9075e-05
  20  0.283115
  21  0.145213
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.974e+00  3.748e-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:  1.030e+00  1.452e-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.056e-01  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 229.28
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 7.58e-07 +/- 9.55e-08
Energy Flux (Fixed Index): 2.81e-04 +/- 3.54e-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) = 10598.1775273
delta logL = 1.14416240847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10598.1737298
delta logL = 1.14795996704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8029       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.2490       1.0000          .0000       10.000    
     3 'Normalizat'    .80734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0659       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=   10598.17     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8030        .55023        .42948E-02   -.95809E-06
   2  Index1        2.2491        .19854        .61664E-01    .11707E-03
   3  Normalizat    .80745        .24442        .10514        .47976E-04
   4  Prefactor     1.0658        .12866        .39058E-01    .26641E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.80296
  Index1     = 2.24909
  Normalizat = 0.807452
  Prefactor  = 1.06583
 **********
 **   18 **HESSE 
 **********

 FCN=   10598.17     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .11E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8030        .36295        .18986E-04   -1.5373    
   2  Index1        2.2491        .13237        .26954E-03   -.58258    
   3  Normalizat    .80745        .27621        .46609E-03   -.99793    
   4  Prefactor     1.0658        .14569        .22020E-03   -.90566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07332e-14
Minuit parameter uncertainties:
  1  0.36295
  2  0.132394
  3  0.276694
  4  0.145739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346493': 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) = 10598.1737293
delta logL = 1.14796043988

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.803e+00  3.630e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.249e+00  1.324e-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:  1.066e+00  1.457e-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.075e-01  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 229.63
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.25 +/- 0.13
Photon Flux (Free Index): 8.52e-07 +/- 1.16e-07
Energy Flux (Free Index): 2.56e-04 +/- 3.31e-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/346493/cmap_HighResolution_457833601_458092801_4FGL_J2232.6+1143_daily_bin843.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.58e-07', energy_flux2='2.56e-04', photon_flux_error='9.55e-08', dlogl='1.15e+00', energy_flux='2.81e-04', photon_flux2='8.52e-07', job_status='DONE', time_completed='2021-09-28 14:12:35.783353', photon_index_error2='0.13', photon_index2='2.25', ts='229.28', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='3.31e-05', EG='0.91', time_epoch_completed='1632863555.78', return_code='0', job_id='346493', GAL2='1.07', EG2='0.81', return_code2='0', energy_flux_error='3.54e-05', photon_flux_error2='1.16e-07', ts2='229.63', photon_index='2.05' WHERE bin_id='843' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:12:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 346493: <4FGL_J2232.6+1143_daily_bin843> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin843> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:00:22 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:00:24 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:24 2021
Terminated at Tue Sep 28 14:12:36 2021
Results reported at Tue Sep 28 14:12:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin843 338.152 11.7306 457833601 458092801 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 :                                   722.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            734 sec.

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

