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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1324
RA = 338.152, Dec = 11.7306
tmin = 582508801, tmax = 582768001
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='348248', job_status='RUN', time_executed='2021-09-28 14:09:04.006414', time_epoch_executed='1632863344.01' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348248

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348248/ft1_4FGL_J2232.6+1143_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348248/ft2_4FGL_J2232.6+1143_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348248/ft1_4FGL_J2232.6+1143_daily_bin1324.fits outfile=/scratch/kocevski/348248/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1324.fits ra=338.152 dec=11.7306 rad=12.0 tmin=582508801.0 tmax=582768001.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.68
user 3.46
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348248/ft2_4FGL_J2232.6+1143_daily_bin1324.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/348248/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1324.fits evtable="EVENTS" outfile="/scratch/kocevski/348248/ft1_filtered_4FGL_J2232.6+1143_daily_bin1324.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/348248/ft1_filtered_4FGL_J2232.6+1143_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/348248/ft2_4FGL_J2232.6+1143_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/348248/ltcube_582508801_582768001_4FGL_J2232.6+1143_daily_bin1324.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/348248/ft2_4FGL_J2232.6+1143_daily_bin1324.fits
.....................!
real 11.86
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348248/ft1_filtered_4FGL_J2232.6+1143_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/348248/ft2_4FGL_J2232.6+1143_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/348248/ltcube_582508801_582768001_4FGL_J2232.6+1143_daily_bin1324.fits outfile=/scratch/kocevski/348248/expmap_582508801_582768001_4FGL_J2232.6+1143_daily_bin1324.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/348248/ltcube_582508801_582768001_4FGL_J2232.6+1143_daily_bin1324.fits
.....................!
real 191.58
user 185.66
sys 5.41

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/348248/ft1_filtered_4FGL_J2232.6+1143_daily_bin1324.fits', '/scratch/kocevski/348248/ft2_4FGL_J2232.6+1143_daily_bin1324.fits', expMap='/scratch/kocevski/348248/expmap_582508801_582768001_4FGL_J2232.6+1143_daily_bin1324.fits', expCube='/scratch/kocevski/348248/ltcube_582508801_582768001_4FGL_J2232.6+1143_daily_bin1324.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/348248/Model_4FGL_J2232.6+1143_daily_bin1324.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/348248/ft1_filtered_4FGL_J2232.6+1143_daily_bin1324.fits
Spacecraft file(s): /scratch/kocevski/348248/ft2_4FGL_J2232.6+1143_daily_bin1324.fits
Exposure map: /scratch/kocevski/348248/expmap_582508801_582768001_4FGL_J2232.6+1143_daily_bin1324.fits
Exposure cube: /scratch/kocevski/348248/ltcube_582508801_582768001_4FGL_J2232.6+1143_daily_bin1324.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/348248/Model_4FGL_J2232.6+1143_daily_bin1324.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8737.14721565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.846       1.0000         .10000E-03   10000.    
     2 'norm      '    .13290E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.860       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.6086       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4421       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .77744       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4409       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    215.10       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.434       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8965       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.513       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95436       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95781       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=   8734.889     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     1694 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.763        62.912       -.15812E-05    .10095E-03
   2  norm          .10007E-03    2.2620       -.19127E-05** at limit **
   3  norm          21.853        21.079        .25060E-05    .69067E-03
   4  norm          .10000E-03    .29784       -.19176E-07** at limit **
   5  Prefactor     .10000E-03    6.6503       -.27807E-06** at limit **
   6  Prefactor     .10000E-03    85.276        .14794E-05** at limit **
   7  norm          9.6094        5.3560        .43734E-06    .87670E-03
   8  Prefactor     7.4413        14.526        .10340E-06    .13195E-03
   9  Prefactor     .10000E-03    7.3980        .15742E-08** at limit **
  10  Prefactor     .77745        .24050       -.18883E-07    .11321E-02
  11  Prefactor     .10000E-03    6.3078        .44115E-06** at limit **
  12  norm          2.4409        1.6387       -.33068E-07   -.61349E-05
  13  Prefactor     .10000E-03    13.617        .12078E-06** at limit **
  14  Prefactor     215.10        25.936        .70742E-07    .26265E-03
  15  Prefactor     20.436        24.769       -.79902E-07    .26631E-04
  16  Prefactor     1.8965        .25465       -.16161E-07    .26488E-03
  17  Prefactor     .10000E-03    18.505       -.10808E-06** at limit **
  18  Prefactor     11.513        7.7063       -.12477E-06    .40413E-04
  19  Prefactor     .10000E-03    5.3548        .33971E-07** at limit **
  20  Normalizat    .95426        .22279       -.13400E-06    .78092E-03
  21  Prefactor     .95785        .12173        .15435E-05    .14475E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7628
  norm       = 0.000100069
  norm       = 21.8528
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.6094
  Prefactor  = 7.44125
  Prefactor  = 0.0001
  Prefactor  = 0.777453
  Prefactor  = 0.0001
  norm       = 2.44089
  Prefactor  = 0.0001
  Prefactor  = 215.104
  Prefactor  = 20.4356
  Prefactor  = 1.89655
  Prefactor  = 0.0001
  Prefactor  = 11.5131
  Prefactor  = 0.0001
  Normalizat = 0.95426
  Prefactor  = 0.957849
 **********
 **   18 **HESSE 
 **********

 FCN=   8734.889     FROM HESSE     STATUS=OK           313 CALLS     2007 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.763        63.398        .87726E-04   -1.4796    
   2  norm          .10007E-03    5.9829        .16981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.853        21.459        .85669E-04   -1.4773    
   4  norm          .10000E-03    .43101        .99039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    86.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.6094        5.3683        .64640E-03   -1.5088    
   8  Prefactor     7.4413        14.511        .14702E-03   -1.5162    
   9  Prefactor     .10000E-03    7.4735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .77745        .23976        .23389E-04   -1.5532    
  11  Prefactor     .10000E-03    6.3656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4409        1.6361        .94803E-04   -1.5395    
  13  Prefactor     .10000E-03    13.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     215.10        25.913        .27572E-04   -1.2764    
  15  Prefactor     20.436        24.870        .88605E-04   -1.4804    
  16  Prefactor     1.8965        .25646        .15863E-04   -1.5433    
  17  Prefactor     .10000E-03    18.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.513        7.7087        .11807E-03   -1.5029    
  19  Prefactor     .10000E-03    5.3838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .95426        .25988        .38609E-03   -.94579    
  21  Prefactor     .95785        .14121        .21335E-03   -.94148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32526e-08
Minuit parameter uncertainties:
  1  63.605
  2  0.001285
  3  21.4669
  4  4.46269e-06
  5  3.65432e-05
  6  0.00040681
  7  5.36857
  8  14.5179
  9  1.02337e-05
  10  0.239758
  11  4.22171e-05
  12  1.6361
  13  1.68533e-05
  14  25.9147
  15  24.8828
  16  0.256461
  17  3.24643e-05
  18  7.70935
  19  1.62212e-07
  20  0.260225
  21  0.141265
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  7.775e-01  2.398e-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.578e-01  1.413e-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.543e-01  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.71
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.98e-07 +/- 6.11e-08
Energy Flux (Fixed Index): 7.35e-05 +/- 2.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) = 8733.11487515
delta logL = 1.77405470449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8733.10066178
delta logL = 1.7882680721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60895       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.7182       1.0000          .0000       10.000    
     3 'Normalizat'    .80993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0114       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=   8733.101     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      242 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60894        1.9282        .40290E-02    .63338E-03
   2  Index1        2.7181        2.6442        .11075        .15248E-03
   3  Normalizat    .81024        .11976        .93454E-01    .36701E-04
   4  Prefactor     1.0113        .58129E-01    .43129E-01    .12759E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.608945
  Index1     = 2.71813
  Normalizat = 0.810243
  Prefactor  = 1.01132
 **********
 **   18 **HESSE 
 **********

 FCN=   8733.101     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60894        .25379        .17882E-04   -1.5552    
   2  Index1        2.7181        .40920        .45825E-02   -.47392    
   3  Normalizat    .81024        .26661        .41405E-03   -.99690    
   4  Prefactor     1.0113        .14500        .20815E-03   -.92353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16681e-09
Minuit parameter uncertainties:
  1  0.253787
  2  0.409784
  3  0.26704
  4  0.145058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348248': 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) = 8733.10066067
delta logL = 1.78826917726

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.089e-01  2.538e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.718e+00  4.098e-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.011e+00  1.451e-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.102e-01  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.54
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.72 +/- 0.41
Photon Flux (Free Index): 3.01e-07 +/- 8.87e-08
Energy Flux (Free Index): 6.48e-05 +/- 1.78e-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/348248/cmap_HighResolution_582508801_582768001_4FGL_J2232.6+1143_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.98e-07', energy_flux2='6.48e-05', photon_flux_error='6.11e-08', dlogl='1.79e+00', energy_flux='7.35e-05', photon_flux2='3.01e-07', job_status='DONE', time_completed='2021-09-28 14:19:27.568728', photon_index_error2='0.41', photon_index2='2.72', ts='24.71', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.95', time_epoch_completed='1632863967.57', return_code='0', job_id='348248', GAL2='1.01', EG2='0.81', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='8.87e-08', ts2='28.54', photon_index='2.05' WHERE bin_id='1324' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:19:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 348248: <4FGL_J2232.6+1143_daily_bin1324> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1324 338.152 11.7306 582508801 582768001 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 :                                   616.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

