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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1168
RA = 338.152, Dec = 11.7306
tmin = 542073601, tmax = 542332801
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='348003', job_status='RUN', time_executed='2021-09-28 14:08:09.062959', time_epoch_executed='1632863289.06' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348003/ft1_4FGL_J2232.6+1143_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348003/ft2_4FGL_J2232.6+1143_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348003/ft1_4FGL_J2232.6+1143_daily_bin1168.fits outfile=/scratch/kocevski/348003/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1168.fits ra=338.152 dec=11.7306 rad=12.0 tmin=542073601.0 tmax=542332801.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.55
user 3.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348003/ft1_filtered_4FGL_J2232.6+1143_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/348003/ft2_4FGL_J2232.6+1143_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/348003/ltcube_542073601_542332801_4FGL_J2232.6+1143_daily_bin1168.fits outfile=/scratch/kocevski/348003/expmap_542073601_542332801_4FGL_J2232.6+1143_daily_bin1168.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/348003/ltcube_542073601_542332801_4FGL_J2232.6+1143_daily_bin1168.fits
.....................!
real 190.78
user 185.11
sys 5.27

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/348003/ft1_filtered_4FGL_J2232.6+1143_daily_bin1168.fits scfile=/scratch/kocevski/348003/ft2_4FGL_J2232.6+1143_daily_bin1168.fits outfile=/scratch/kocevski/348003/cmap_542073601_542332801_4FGL_J2232.6+1143_daily_bin1168.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.6939       1.0000         .10000E-03   10000.    
     3 'norm      '    17.422       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10754E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .98539       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8715       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.419       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.039       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0780       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.624       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9313       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5122       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87182       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=   7898.498     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2230 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.531        .22867E-04** at limit **
   2  norm          2.6940        2.3935        .49509E-08   -.17908E-03
   3  norm          17.419        21.671       -.14101E-05   -.24391E-05
   4  norm          .10000E-03    .30741        .32363E-08** at limit **
   5  Prefactor     .10000E-03    23.261       -.77539E-05** at limit **
   6  Prefactor     .10000E-03    17.552        .21961E-05** at limit **
   7  norm          .10000E-03    4.7251       -.12285E-07** at limit **
   8  Prefactor     .98713        22.654       -.18515E-05   -.87385E-04
   9  Prefactor     2.8251        11.263       -.13432E-06   -.51596E-03
  10  Prefactor     1.8714        .33422        .86698E-08    .76117E-03
  11  Prefactor     .10000E-03    6.6175        .40441E-07** at limit **
  12  norm          .10000E-03    .54755       -.16138E-09** at limit **
  13  Prefactor     .10000E-03    45.400       -.18841E-04** at limit **
  14  Prefactor     17.417        13.223       -.86503E-07   -.62517E-04
  15  Prefactor     26.032        26.930       -.51255E-05   -.35981E-06
  16  Prefactor     1.0780        .22082        .35786E-07    .92968E-03
  17  Prefactor     25.622        25.584       -.12249E-05   -.50960E-05
  18  Prefactor     1.9296        3.8679        .96823E-06   -.16112E-02
  19  Prefactor     .10000E-03    7.4676       -.11562E-06** at limit **
  20  Normalizat    1.5124        .24885        .44677E-06    .82256E-04
  21  Prefactor     .87167        .12753        .11209E-06    .15112E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.69402
  norm       = 17.4194
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.987133
  Prefactor  = 2.8251
  Prefactor  = 1.87138
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4175
  Prefactor  = 26.0322
  Prefactor  = 1.07796
  Prefactor  = 25.6224
  Prefactor  = 1.92961
  Prefactor  = 0.0001
  Normalizat = 1.51244
  Prefactor  = 0.871672
 **********
 **   18 **HESSE 
 **********

 FCN=   7898.498     FROM HESSE     STATUS=OK           325 CALLS     2555 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6940        2.3883        .12471E-03   -1.5380    
   3  norm          17.419        21.672        .95956E-04   -1.4873    
   4  norm          .10000E-03    .45854        .95725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.9206        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .98713        23.750        .52456E-02   -1.5509    
   9  Prefactor     2.8251        13.452        .12090E-02   -1.5372    
  10  Prefactor     1.8714        .33476        .20157E-04   -1.5434    
  11  Prefactor     .10000E-03    6.6538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .55102        .64176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.417        13.234        .47981E-03   -1.4873    
  15  Prefactor     26.032        26.958        .78505E-04   -1.4687    
  16  Prefactor     1.0780        .22259        .17522E-04   -1.5500    
  17  Prefactor     25.622        25.638        .79137E-04   -1.4695    
  18  Prefactor     1.9296        7.5989        .14943E-02   -1.5430    
  19  Prefactor     .10000E-03    7.4977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5124        .29998        .33352E-03   -.77429    
  21  Prefactor     .87167        .15209        .22590E-03   -.97138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62726e-08
Minuit parameter uncertainties:
  1  0.000248272
  2  2.38839
  3  21.6817
  4  1.51171e-06
  5  5.20916e-05
  6  1.29405e-05
  7  3.20304e-06
  8  9.68769
  9  12.3337
  10  0.334762
  11  1.36744e-06
  12  3.97463e-08
  13  9.13468e-05
  14  13.2364
  15  26.9708
  16  0.222585
  17  25.6489
  18  7.60265
  19  5.01434e-07
  20  0.300336
  21  0.152165
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.871e+00  3.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:  8.717e-01  1.522e-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.512e+00  3.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 83.94
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 4.77e-07 +/- 8.53e-08
Energy Flux (Fixed Index): 1.77e-04 +/- 3.16e-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) = 7895.59845583
delta logL = 2.89905792655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7895.59575372
delta logL = 2.90176003801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5458       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.5283       1.0000          .0000       10.000    
     3 'Normalizat'    1.3428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93365       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=   7895.596     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5458        3.4168        .38272E-02    .10705E-03
   2  Index1        2.5283        2.0187        .67813E-01    .11903E-03
   3  Normalizat    1.3429        .25193        .78784E-01    .14312E-04
   4  Prefactor     .93364        .12687        .45432E-01    .84809E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54582
  Index1     = 2.52827
  Normalizat = 1.34288
  Prefactor  = 0.933636
 **********
 **   18 **HESSE 
 **********

 FCN=   7895.596     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .52E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5458        .32993        .16929E-04   -1.5459    
   2  Index1        2.5283        .20817        .29482E-03   -.51708    
   3  Normalizat    1.3429        .29389        .34872E-03   -.82295    
   4  Prefactor     .93364        .15415        .21893E-03   -.94975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18911e-14
Minuit parameter uncertainties:
  1  0.329928
  2  0.208252
  3  0.294263
  4  0.154225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348003': 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) = 7895.59575369
delta logL = 2.90176007202

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.546e+00  3.299e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.528e+00  2.083e-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.336e-01  1.542e-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.343e+00  2.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 89.95
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.53 +/- 0.21
Photon Flux (Free Index): 6.22e-07 +/- 1.14e-07
Energy Flux (Free Index): 1.50e-04 +/- 2.59e-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/348003/cmap_HighResolution_542073601_542332801_4FGL_J2232.6+1143_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.77e-07', energy_flux2='1.50e-04', photon_flux_error='8.53e-08', dlogl='2.90e+00', energy_flux='1.77e-04', photon_flux2='6.22e-07', job_status='DONE', time_completed='2021-09-28 14:18:45.015099', photon_index_error2='0.21', photon_index2='2.53', ts='83.94', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.59e-05', EG='1.51', time_epoch_completed='1632863925.02', return_code='0', job_id='348003', GAL2='0.93', EG2='1.34', return_code2='0', energy_flux_error='3.16e-05', photon_flux_error2='1.14e-07', ts2='89.95', photon_index='2.05' WHERE bin_id='1168' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:18:45 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1168 338.152 11.7306 542073601 542332801 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 :                                   634.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            810 sec.

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

