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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1379
RA = 338.152, Dec = 11.7306
tmin = 596764801, tmax = 597024001
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='348335', job_status='RUN', time_executed='2021-09-28 14:05:58.349642', time_epoch_executed='1632863158.35' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348335

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348335/ft1_4FGL_J2232.6+1143_daily_bin1379.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348335/ft2_4FGL_J2232.6+1143_daily_bin1379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348335/ft1_4FGL_J2232.6+1143_daily_bin1379.fits outfile=/scratch/kocevski/348335/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1379.fits ra=338.152 dec=11.7306 rad=12.0 tmin=596764801.0 tmax=597024001.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.52
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348335/ft2_4FGL_J2232.6+1143_daily_bin1379.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/348335/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1379.fits evtable="EVENTS" outfile="/scratch/kocevski/348335/ft1_filtered_4FGL_J2232.6+1143_daily_bin1379.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/348335/ft1_filtered_4FGL_J2232.6+1143_daily_bin1379.fits" evtable="EVENTS" scfile=/scratch/kocevski/348335/ft2_4FGL_J2232.6+1143_daily_bin1379.fits sctable="SC_DATA" outfile=/scratch/kocevski/348335/ltcube_596764801_597024001_4FGL_J2232.6+1143_daily_bin1379.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/348335/ft2_4FGL_J2232.6+1143_daily_bin1379.fits
.....................!
real 12.07
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348335/ft1_filtered_4FGL_J2232.6+1143_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/348335/ft2_4FGL_J2232.6+1143_daily_bin1379.fits sctable="SC_DATA" expcube=/scratch/kocevski/348335/ltcube_596764801_597024001_4FGL_J2232.6+1143_daily_bin1379.fits outfile=/scratch/kocevski/348335/expmap_596764801_597024001_4FGL_J2232.6+1143_daily_bin1379.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/348335/ltcube_596764801_597024001_4FGL_J2232.6+1143_daily_bin1379.fits
.....................!
real 191.24
user 185.77
sys 4.97

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/348335/ft1_filtered_4FGL_J2232.6+1143_daily_bin1379.fits scfile=/scratch/kocevski/348335/ft2_4FGL_J2232.6+1143_daily_bin1379.fits outfile=/scratch/kocevski/348335/cmap_596764801_597024001_4FGL_J2232.6+1143_daily_bin1379.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348335/ft1_filtered_4FGL_J2232.6+1143_daily_bin1379.fits scfile=/scratch/kocevski/348335/ft2_4FGL_J2232.6+1143_daily_bin1379.fits outfile=/scratch/kocevski/348335/cmap_HighResolution_596764801_597024001_4FGL_J2232.6+1143_daily_bin1379.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/348335/ft1_filtered_4FGL_J2232.6+1143_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/348335/ft2_4FGL_J2232.6+1143_daily_bin1379.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/348335/Model_4FGL_J2232.6+1143_daily_bin1379.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/348335/ft1_filtered_4FGL_J2232.6+1143_daily_bin1379.fits.....................!
real 69.54
user 68.22
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.054       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.295       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12748E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0695       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4252       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6051       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.462       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58506       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.592       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17896E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6679       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89591       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99626       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=   7084.313     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2194 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.098        66.182        .61560E-04    .21079E-04
   2  norm          .10000E-03    1.2411       -.91016E-06** at limit **
   3  norm          .10000E-03    14.930       -.11097E-04** at limit **
   4  norm          .10000E-03    .27601        .74922E-07** at limit **
   5  Prefactor     .10000E-03    7.6237       -.19007E-05** at limit **
   6  Prefactor     34.309        29.709        .16405E-04    .95102E-07
   7  norm          .10000E-03    1.3603        .27019E-07** at limit **
   8  Prefactor     .10000E-03    4.4395        .94442E-07** at limit **
   9  Prefactor     .10000E-03    25.154       -.40118E-05** at limit **
  10  Prefactor     1.0697        .26133        .37470E-07   -.22273E-02
  11  Prefactor     .10000E-03    8.1042        .28661E-05** at limit **
  12  norm          3.4251        1.9163        .11420E-06    .99248E-04
  13  Prefactor     6.6065        15.306        .12405E-05   -.55085E-04
  14  Prefactor     27.460        13.628        .27335E-06   -.44045E-04
  15  Prefactor     .10000E-03    17.695        .12928E-04** at limit **
  16  Prefactor     .58500        .16466        .38179E-07   -.55672E-02
  17  Prefactor     37.604        42.499        .15104E-04   -.35019E-04
  18  Prefactor     .10006E-03    5.0066        .22569E-05** at limit **
  19  Prefactor     9.6674        12.726       -.27730E-07   -.18571E-03
  20  Normalizat    .89559        .22779       -.54369E-05   -.16750E-03
  21  Prefactor     .99632        .12118       -.11684E-05   -.36536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.0975
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3095
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.06966
  Prefactor  = 0.0001
  norm       = 3.42511
  Prefactor  = 6.60648
  Prefactor  = 27.46
  Prefactor  = 0.0001
  Prefactor  = 0.585001
  Prefactor  = 37.6036
  Prefactor  = 0.000100056
  Prefactor  = 9.66743
  Normalizat = 0.895592
  Prefactor  = 0.996322
 **********
 **   18 **HESSE 
 **********

 FCN=   7084.313     FROM HESSE     STATUS=OK           315 CALLS     2509 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.098        66.222        .30548E-03   -1.4394    
   2  norm          .10000E-03    1.2721        .91695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .28589        .86288E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.309        29.708        .68428E-04   -1.4536    
   7  norm          .10000E-03    1.3645        .95860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4467        .17317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0697        .26132        .20064E-04   -1.5501    
  11  Prefactor     .10000E-03    8.2943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4251        1.9166        .82733E-04   -1.5338    
  13  Prefactor     6.6065        15.303        .15614E-03   -1.5194    
  14  Prefactor     27.460        13.625        .76448E-04   -1.4659    
  15  Prefactor     .10000E-03    17.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .58500        .16364        .17129E-04   -1.5555    
  17  Prefactor     37.604        42.560        .65368E-04   -1.4481    
  18  Prefactor     .10006E-03    22.700        .36018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6674        12.715        .12888E-03   -1.5086    
  20  Normalizat    .89559        .26761        .35669E-03   -.96615    
  21  Prefactor     .99632        .14311        .18937E-03   -.92852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23249e-09
Minuit parameter uncertainties:
  1  66.3352
  2  9.86886e-05
  3  4.18616e-05
  4  3.24222e-06
  5  3.39631e-05
  6  29.7207
  7  6.33343e-06
  8  3.89773e-06
  9  0.000503415
  10  0.261318
  11  4.72504e-06
  12  1.91662
  13  15.3123
  14  13.6264
  15  6.3265e-06
  16  0.163643
  17  42.5946
  18  0.00225115
  19  12.7188
  20  0.268005
  21  0.143165
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.070e+00  2.613e-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.963e-01  1.432e-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.956e-01  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.40
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.73e-07 +/- 6.66e-08
Energy Flux (Fixed Index): 1.01e-04 +/- 2.47e-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) = 7081.35181668
delta logL = 2.9614476896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7081.34225657
delta logL = 2.97100779452

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78848       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.7118       1.0000          .0000       10.000    
     3 'Normalizat'    .74563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0528       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=   7081.342     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78829        2.2384        .34494E-02   -.46477E-03
   2  Index1        2.7123        2.3674        .78546E-01    .79583E-04
   3  Normalizat    .74505        .14993        .87222E-01    .31663E-04
   4  Prefactor     1.0530        .79046E-01    .39750E-01   -.17318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.788289
  Index1     = 2.71231
  Normalizat = 0.745051
  Prefactor  = 1.05299
 **********
 **   18 **HESSE 
 **********

 FCN=   7081.342     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78829        .26101        .15274E-04   -1.5530    
   2  Index1        2.7123        .30211        .33857E-02   -.47522    
   3  Normalizat    .74505        .26453        .38631E-03   -1.0214    
   4  Prefactor     1.0530        .14553        .18454E-03   -.90984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76638e-12
Minuit parameter uncertainties:
  1  0.261006
  2  0.302346
  3  0.264989
  4  0.14558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348335': 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) = 7081.34225287
delta logL = 2.97101149337

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  7.883e-01  2.610e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.712e+00  3.023e-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.053e+00  1.456e-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:  7.451e-01  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 44.97
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.71 +/- 0.30
Photon Flux (Free Index): 3.88e-07 +/- 9.13e-08
Energy Flux (Free Index): 8.36e-05 +/- 1.92e-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/348335/cmap_HighResolution_596764801_597024001_4FGL_J2232.6+1143_daily_bin1379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.73e-07', energy_flux2='8.36e-05', photon_flux_error='6.66e-08', dlogl='2.97e+00', energy_flux='1.01e-04', photon_flux2='3.88e-07', job_status='DONE', time_completed='2021-09-28 14:15:32.490799', photon_index_error2='0.30', photon_index2='2.71', ts='38.40', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='0.90', time_epoch_completed='1632863732.49', return_code='0', job_id='348335', GAL2='1.05', EG2='0.75', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='9.13e-08', ts2='44.97', photon_index='2.05' WHERE bin_id='1379' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:15:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 348335: <4FGL_J2232.6+1143_daily_bin1379> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1379> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 14:05:44 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:05:46 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:05:46 2021
Terminated at Tue Sep 28 14:15:33 2021
Results reported at Tue Sep 28 14:15:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1379 338.152 11.7306 596764801 597024001 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 :                                   572.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             339.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            589 sec.

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

