/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 185 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2232.6+1143_daily_bin54
RA = 338.152, Dec = 11.7306
tmin = 253324801, tmax = 253584001
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='342166', job_status='RUN', time_executed='2021-09-28 13:48:28.324448', time_epoch_executed='1632862108.32' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342166/ft1_4FGL_J2232.6+1143_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342166/ft2_4FGL_J2232.6+1143_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342166/ft1_4FGL_J2232.6+1143_daily_bin54.fits outfile=/scratch/kocevski/342166/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin54.fits ra=338.152 dec=11.7306 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.42
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342166/ft2_4FGL_J2232.6+1143_daily_bin54.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/342166/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/342166/ft1_filtered_4FGL_J2232.6+1143_daily_bin54.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.50
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342166/ft1_filtered_4FGL_J2232.6+1143_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/342166/ft2_4FGL_J2232.6+1143_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/342166/ltcube_253324801_253584001_4FGL_J2232.6+1143_daily_bin54.fits outfile=/scratch/kocevski/342166/expmap_253324801_253584001_4FGL_J2232.6+1143_daily_bin54.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/342166/ltcube_253324801_253584001_4FGL_J2232.6+1143_daily_bin54.fits
.....................!
real 189.69
user 184.95
sys 4.39

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/342166/ft1_filtered_4FGL_J2232.6+1143_daily_bin54.fits scfile=/scratch/kocevski/342166/ft2_4FGL_J2232.6+1143_daily_bin54.fits outfile=/scratch/kocevski/342166/cmap_253324801_253584001_4FGL_J2232.6+1143_daily_bin54.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.152 yref=11.7306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342166/ft1_filtered_4FGL_J2232.6+1143_daily_bin54.fits scfile=/scratch/kocevski/342166/ft2_4FGL_J2232.6+1143_daily_bin54.fits outfile=/scratch/kocevski/342166/cmap_HighResolution_253324801_253584001_4FGL_J2232.6+1143_daily_bin54.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11557E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.6300       1.0000         .10000E-03   10000.    
     3 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4395       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.273       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10581E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25058       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5968       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5563       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .65661       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1762       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.280       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91641       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97428       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=   12056.89     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2193 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.207        .42964E-06** at limit **
   2  norm          7.6290        2.5045       -.36676E-06   -.42859E-02
   3  norm          .10000E-03    6.5568        .60866E-05** at limit **
   4  norm          2.4394        .87658       -.13889E-07   -.26517E-03
   5  Prefactor     15.279        14.337       -.44734E-05    .32966E-05
   6  Prefactor     .10000E-03    7.7587       -.84116E-05** at limit **
   7  norm          .10000E-03    1.6515       -.47427E-07** at limit **
   8  Prefactor     .10000E-03    3.4853       -.71840E-07** at limit **
   9  Prefactor     .10000E-03    9.7490        .94928E-05** at limit **
  10  Prefactor     .25063        .13901       -.61994E-08   -.11868E-02
  11  Prefactor     6.5918        5.2288       -.98248E-06   -.21548E-02
  12  norm          1.5563        1.1988       -.30090E-07   -.14850E-03
  13  Prefactor     .56679        16.772       -.25559E-05    .96637E-04
  14  Prefactor     .10000E-03    3.9643        .45197E-08** at limit **
  15  Prefactor     .10000E-03    5.9426       -.24578E-05** at limit **
  16  Prefactor     2.1765        .21409       -.70050E-08    .55584E-02
  17  Prefactor     .10000E-03    11.347       -.63892E-05** at limit **
  18  Prefactor     .10000E-03    1.8299       -.35715E-07** at limit **
  19  Prefactor     10.284        10.928       -.47551E-06   -.36357E-04
  20  Normalizat    .91640        .17769        .66516E-06    .31961E-04
  21  Prefactor     .97430        .95392E-01    .47616E-06    .97774E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.62897
  norm       = 0.0001
  norm       = 2.43941
  Prefactor  = 15.2791
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.250627
  Prefactor  = 6.59183
  norm       = 1.55627
  Prefactor  = 0.566786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2839
  Normalizat = 0.916399
  Prefactor  = 0.974304
 **********
 **   18 **HESSE 
 **********

 FCN=   12056.89     FROM HESSE     STATUS=OK           321 CALLS     2514 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.6290        2.5640        .49148E-03   -1.5155    
   3  norm          .10000E-03    6.5168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4394        .87631        .59370E-04   -1.5396    
   5  Prefactor     15.279        14.270        .10249E-03   -1.4926    
   6  Prefactor     .10000E-03    7.6305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6665        .13777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .25063        .13477        .28696E-04   -1.5608    
  11  Prefactor     6.5918        5.3902        .78121E-03   -1.5194    
  12  norm          1.5563        1.2047        .10260E-03   -1.5458    
  13  Prefactor     .56679        19.533        .13690       -1.5557    
  14  Prefactor     .10000E-03    3.9926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1765        .21581        .14649E-04   -1.5413    
  17  Prefactor     .10000E-03    11.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8408        .14503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.284        10.939        .12497E-03   -1.5066    
  20  Normalizat    .91640        .20764        .36648E-03   -.95886    
  21  Prefactor     .97430        .11238        .19724E-03   -.93591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71534e-09
Minuit parameter uncertainties:
  1  1.34488e-05
  2  2.56403
  3  9.63394e-06
  4  0.876316
  5  14.2737
  6  1.18322e-05
  7  3.64104e-06
  8  1.33501e-06
  9  6.29001e-05
  10  0.13477
  11  5.39061
  12  1.20476
  13  6.65633
  14  3.90287e-06
  15  1.37233e-06
  16  0.215809
  17  4.35306e-06
  18  1.07751e-06
  19  10.9413
  20  0.207822
  21  0.112404
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.506e-01  1.348e-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.743e-01  1.124e-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.164e-01  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.49
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 6.39e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.27e-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) = 12056.509146
delta logL = 0.385019681265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12056.4999066
delta logL = 0.394259065515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23293       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5565       1.0000          .0000       10.000    
     3 'Normalizat'    .87064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99032       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=   12056.50     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      241 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23303        1.1878        .53367E-02    .27621E-02
   2  Index1        2.5563        3.0081        .23341        .12877E-03
   3  Normalizat    .87057        .51723E-01    .84664E-01    .14982E-03
   4  Prefactor     .99033        .27178E-01    .46146E-01    .21662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.233027
  Index1     = 2.55634
  Normalizat = 0.870573
  Prefactor  = 0.990332
 **********
 **   18 **HESSE 
 **********

 FCN=   12056.50     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23303        .13942        .24102E-04   -1.5611    
   2  Index1        2.5563        .62704        .84040E-02   -.51063    
   3  Normalizat    .87057        .20988        .37489E-03   -.97502    
   4  Prefactor     .99033        .11413        .19580E-03   -.93052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91414e-11
Minuit parameter uncertainties:
  1  0.139421
  2  0.629217
  3  0.210079
  4  0.114161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342166': 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) = 12056.4999062
delta logL = 0.394259428453

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.330e-01  1.394e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.556e+00  6.292e-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.903e-01  1.142e-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.706e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.32
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.56 +/- 0.63
Photon Flux (Free Index): 9.66e-08 +/- 5.42e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.10e-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/342166/cmap_HighResolution_253324801_253584001_4FGL_J2232.6+1143_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.39e-08', energy_flux2='2.28e-05', photon_flux_error='3.43e-08', dlogl='3.94e-01', energy_flux='2.37e-05', photon_flux2='9.66e-08', job_status='DONE', time_completed='2021-09-28 14:01:19.798144', photon_index_error2='0.63', photon_index2='2.56', ts='6.49', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='0.92', time_epoch_completed='1632862879.8', return_code='0', job_id='342166', GAL2='0.99', EG2='0.87', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.42e-08', ts2='7.32', photon_index='2.05' WHERE bin_id='54' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:01:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 342166: <4FGL_J2232.6+1143_daily_bin54> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin54> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 13:45:14 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:45:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 13:45:15 2021
Terminated at Tue Sep 28 14:01:20 2021
Results reported at Tue Sep 28 14:01:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin54 338.152 11.7306 253324801 253584001 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 :                                   772.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            966 sec.

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

