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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1076
RA = 338.152, Dec = 11.7306
tmin = 518227201, tmax = 518486401
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='346860', job_status='RUN', time_executed='2021-09-28 14:04:40.556930', time_epoch_executed='1632863080.56' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346860

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346860/ft1_4FGL_J2232.6+1143_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346860/ft2_4FGL_J2232.6+1143_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346860/ft1_4FGL_J2232.6+1143_daily_bin1076.fits outfile=/scratch/kocevski/346860/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1076.fits ra=338.152 dec=11.7306 rad=12.0 tmin=518227201.0 tmax=518486401.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.59
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346860/ft1_filtered_4FGL_J2232.6+1143_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/346860/ft2_4FGL_J2232.6+1143_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/346860/ltcube_518227201_518486401_4FGL_J2232.6+1143_daily_bin1076.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/346860/ft2_4FGL_J2232.6+1143_daily_bin1076.fits
.....................!
real 11.88
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346860/ft1_filtered_4FGL_J2232.6+1143_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/346860/ft2_4FGL_J2232.6+1143_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/346860/ltcube_518227201_518486401_4FGL_J2232.6+1143_daily_bin1076.fits outfile=/scratch/kocevski/346860/expmap_518227201_518486401_4FGL_J2232.6+1143_daily_bin1076.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/346860/ltcube_518227201_518486401_4FGL_J2232.6+1143_daily_bin1076.fits
.....................!
real 189.80
user 184.87
sys 4.61

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/346860/ft1_filtered_4FGL_J2232.6+1143_daily_bin1076.fits scfile=/scratch/kocevski/346860/ft2_4FGL_J2232.6+1143_daily_bin1076.fits outfile=/scratch/kocevski/346860/cmap_518227201_518486401_4FGL_J2232.6+1143_daily_bin1076.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .49831       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7319       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19987E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8820       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5251       1.0000         .10000E-03   10000.    
    12 'norm      '    .48270       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.621       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6552       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.766       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2266       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6722       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4870       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82559       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8932.859     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     1953 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    171.00         .0000    ** at limit **
   2  norm          .49494        1.6635         .0000        .23417E-02
   3  norm          .10000E-03    13.256         .0000    ** at limit **
   4  norm          .10000E-03    .35025         .0000    ** at limit **
   5  Prefactor     6.7330        13.154         .0000        .93199E-03
   6  Prefactor     .10000E-03    12.161         .0000    ** at limit **
   7  norm          .10000E-03    2.5204         .0000    ** at limit **
   8  Prefactor     .10000E-03    27.329         .0000    ** at limit **
   9  Prefactor     .10000E-03    7.7576         .0000    ** at limit **
  10  Prefactor     3.8818        .39608         .0000        .61117E-04
  11  Prefactor     8.5258        7.7013         .0000        .24557E-04
  12  norm          .48233        1.2809         .0000        .18252E-02
  13  Prefactor     32.619        28.974         .0000        .92950E-05
  14  Prefactor     6.6542        10.288         .0000        .24020E-02
  15  Prefactor     10.767        10.998         .0000       -.52740E-03
  16  Prefactor     1.2265        .21180         .0000        .17786E-03
  17  Prefactor     .10000E-03    18.940         .0000    ** at limit **
  18  Prefactor     2.6739        6.9936         .0000        .10329E-01
  19  Prefactor     .10000E-03    16.426         .0000    ** at limit **
  20  Normalizat    1.4870        .23363         .0000        .93117E-05
  21  Prefactor     .82550        .12197         .0000        .14054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.494944
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.73303
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.88178
  Prefactor  = 8.52584
  norm       = 0.48233
  Prefactor  = 32.6191
  Prefactor  = 6.65419
  Prefactor  = 10.7671
  Prefactor  = 1.22647
  Prefactor  = 0.0001
  Prefactor  = 2.67393
  Prefactor  = 0.0001
  Normalizat = 1.48705
  Prefactor  = 0.825499
 **********
 **   18 **HESSE 
 **********

 FCN=   8932.859     FROM HESSE     STATUS=OK           323 CALLS     2276 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    171.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .49494        1.6426        .21563E-03   -1.5567    
   3  norm          .10000E-03    13.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .36526        .10912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7330        13.146        .77325E-03   -1.5189    
   6  Prefactor     .10000E-03    12.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.5420        .14649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    61.261        .50143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8818        .39759        .17947E-04   -1.5314    
  11  Prefactor     8.5258        7.7088        .13729E-03   -1.5124    
  12  norm          .48233        1.1610        .16324E-02   -1.5569    
  13  Prefactor     32.619        29.017        .70157E-04   -1.4565    
  14  Prefactor     6.6542        10.135        .77774E-03   -1.5192    
  15  Prefactor     10.767        11.001        .61053E-03   -1.5052    
  16  Prefactor     1.2265        .21237        .16936E-04   -1.5486    
  17  Prefactor     .10000E-03    19.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6739        6.9744        .12465E-02   -1.5381    
  19  Prefactor     .10000E-03    16.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4870        .27532        .33716E-03   -.78143    
  21  Prefactor     .82550        .14527        .23419E-03   -.98795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54961e-08
Minuit parameter uncertainties:
  1  1.98445e-05
  2  1.64274
  3  4.84099e-07
  4  3.46162e-08
  5  13.1515
  6  2.37174e-06
  7  1.86242e-07
  8  5.50109e-07
  9  1.75519e-06
  10  0.397591
  11  7.70968
  12  1.16107
  13  29.03
  14  10.1372
  15  11.0033
  16  0.212373
  17  2.93545e-06
  18  6.97653
  19  7.00128e-07
  20  0.275596
  21  0.145339
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.882e+00  3.976e-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:  8.255e-01  1.453e-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:  1.487e+00  2.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 344.23
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 9.90e-07 +/- 1.01e-07
Energy Flux (Fixed Index): 3.67e-04 +/- 3.76e-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) = 8932.18053591
delta logL = 0.678107596294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8932.17845575
delta logL = 0.680187752547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6975       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1830       1.0000          .0000       10.000    
     3 'Normalizat'    1.4153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85181       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=   8932.178     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6976        .53547        .38949E-02   -.62717E-04
   2  Index1        2.1830        .14526        .48746E-01    .96504E-04
   3  Normalizat    1.4154        .23117        .77539E-01    .12997E-04
   4  Prefactor     .85181        .12238        .44388E-01    .13802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.69764
  Index1     = 2.18299
  Normalizat = 1.41536
  Prefactor  = 0.851807
 **********
 **   18 **HESSE 
 **********

 FCN=   8932.178     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .13E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6976        .41521        .17213E-04   -1.5323    
   2  Index1        2.1830        .11379        .21419E-03   -.59850    
   3  Normalizat    1.4154        .27714        .34317E-03   -.80185    
   4  Prefactor     .85181        .14637        .23083E-03   -.97846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30125e-15
Minuit parameter uncertainties:
  1  0.415213
  2  0.113803
  3  0.277435
  4  0.146435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346860': 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) = 8932.17845546
delta logL = 0.680188040946

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.698e+00  4.152e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.183e+00  1.138e-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:  8.518e-01  1.464e-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:  1.415e+00  2.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 344.32
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.18 +/- 0.11
Photon Flux (Free Index): 1.06e-06 +/- 1.20e-07
Energy Flux (Free Index): 3.39e-04 +/- 4.02e-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/346860/cmap_HighResolution_518227201_518486401_4FGL_J2232.6+1143_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.90e-07', energy_flux2='3.39e-04', photon_flux_error='1.01e-07', dlogl='6.80e-01', energy_flux='3.67e-04', photon_flux2='1.06e-06', job_status='DONE', time_completed='2021-09-28 14:15:25.288769', photon_index_error2='0.11', photon_index2='2.18', ts='344.23', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='4.02e-05', EG='1.49', time_epoch_completed='1632863725.29', return_code='0', job_id='346860', GAL2='0.85', EG2='1.42', return_code2='0', energy_flux_error='3.76e-05', photon_flux_error2='1.20e-07', ts2='344.32', photon_index='2.05' WHERE bin_id='1076' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:15:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 346860: <4FGL_J2232.6+1143_daily_bin1076> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1076 338.152 11.7306 518227201 518486401 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 :                                   644.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            868 sec.

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

