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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1307
RA = 338.152, Dec = 11.7306
tmin = 578102401, tmax = 578361601
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='348224', job_status='RUN', time_executed='2021-09-28 14:08:49.540146', time_epoch_executed='1632863329.54' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348224/ft1_4FGL_J2232.6+1143_daily_bin1307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348224/ft2_4FGL_J2232.6+1143_daily_bin1307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348224/ft1_4FGL_J2232.6+1143_daily_bin1307.fits outfile=/scratch/kocevski/348224/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1307.fits ra=338.152 dec=11.7306 rad=12.0 tmin=578102401.0 tmax=578361601.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 5.06
user 4.81
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348224/ft2_4FGL_J2232.6+1143_daily_bin1307.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/348224/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1307.fits evtable="EVENTS" outfile="/scratch/kocevski/348224/ft1_filtered_4FGL_J2232.6+1143_daily_bin1307.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/348224/ft1_filtered_4FGL_J2232.6+1143_daily_bin1307.fits" evtable="EVENTS" scfile=/scratch/kocevski/348224/ft2_4FGL_J2232.6+1143_daily_bin1307.fits sctable="SC_DATA" outfile=/scratch/kocevski/348224/ltcube_578102401_578361601_4FGL_J2232.6+1143_daily_bin1307.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/348224/ft2_4FGL_J2232.6+1143_daily_bin1307.fits
.....................!
real 12.15
user 11.85
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348224/ft1_filtered_4FGL_J2232.6+1143_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/348224/ft2_4FGL_J2232.6+1143_daily_bin1307.fits sctable="SC_DATA" expcube=/scratch/kocevski/348224/ltcube_578102401_578361601_4FGL_J2232.6+1143_daily_bin1307.fits outfile=/scratch/kocevski/348224/expmap_578102401_578361601_4FGL_J2232.6+1143_daily_bin1307.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/348224/ltcube_578102401_578361601_4FGL_J2232.6+1143_daily_bin1307.fits
.....................!
real 190.78
user 185.12
sys 5.26

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/348224/ft1_filtered_4FGL_J2232.6+1143_daily_bin1307.fits scfile=/scratch/kocevski/348224/ft2_4FGL_J2232.6+1143_daily_bin1307.fits outfile=/scratch/kocevski/348224/cmap_578102401_578361601_4FGL_J2232.6+1143_daily_bin1307.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348224/ft1_filtered_4FGL_J2232.6+1143_daily_bin1307.fits scfile=/scratch/kocevski/348224/ft2_4FGL_J2232.6+1143_daily_bin1307.fits outfile=/scratch/kocevski/348224/cmap_HighResolution_578102401_578361601_4FGL_J2232.6+1143_daily_bin1307.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/348224/ft1_filtered_4FGL_J2232.6+1143_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/348224/ft2_4FGL_J2232.6+1143_daily_bin1307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/348224/Model_4FGL_J2232.6+1143_daily_bin1307.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/348224/ft1_filtered_4FGL_J2232.6+1143_daily_bin1307.fits.....................!
real 84.99
user 83.27
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    26.596       1.0000         .10000E-03   10000.    
     4 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.416       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12547E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.5751       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.747       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.702       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42363       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5999       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.846       1.0000         .10000E-03   10000.    
    14 'Prefactor '    77.776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7908       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0760       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .72146       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0692       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=   8537.140     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2229 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.805       -.15750E-05** at limit **
   2  norm          .10000E-03    1.1269       -.12926E-06** at limit **
   3  norm          26.601        31.577        .62176E-05    .18662E-04
   4  norm          .10000E-03    .38471       -.72948E-07** at limit **
   5  Prefactor     11.392        26.501       -.20103E-04   -.26358E-04
   6  Prefactor     .10000E-03    67.337        .40560E-05** at limit **
   7  norm          9.5753        6.0786       -.61027E-07   -.57613E-04
   8  Prefactor     23.747        15.993       -.52497E-06   -.51427E-05
   9  Prefactor     27.701        15.337       -.55017E-06   -.95692E-05
  10  Prefactor     .42361        .19321       -.23756E-07   -.67775E-03
  11  Prefactor     .10000E-03    2.7349       -.14337E-07** at limit **
  12  norm          2.5998        1.8384       -.13368E-07   -.13233E-03
  13  Prefactor     25.847        25.385        .57132E-06   -.38269E-05
  14  Prefactor     77.775        19.460       -.41074E-06   -.10029E-04
  15  Prefactor     .10000E-03    20.480        .78190E-06** at limit **
  16  Prefactor     2.7908        .28302       -.11885E-07    .18983E-03
  17  Prefactor     .10000E-03    11.995       -.99677E-07** at limit **
  18  Prefactor     6.0753        7.4605       -.45220E-06   -.20971E-03
  19  Prefactor     .10000E-03    10.770       -.27625E-07** at limit **
  20  Normalizat    .72143        .24840        .29952E-05   -.33178E-04
  21  Prefactor     1.0692        .12810        .89915E-08    .52688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.6008
  norm       = 0.0001
  Prefactor  = 11.3918
  Prefactor  = 0.000100002
  norm       = 9.57528
  Prefactor  = 23.747
  Prefactor  = 27.7008
  Prefactor  = 0.423613
  Prefactor  = 0.0001
  norm       = 2.59979
  Prefactor  = 25.8474
  Prefactor  = 77.7753
  Prefactor  = 0.0001
  Prefactor  = 2.79078
  Prefactor  = 0.0001
  Prefactor  = 6.07535
  Prefactor  = 0.0001
  Normalizat = 0.721434
  Prefactor  = 1.0692
 **********
 **   18 **HESSE 
 **********

 FCN=   8537.140     FROM HESSE     STATUS=OK           317 CALLS     2546 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1511        .95653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          26.601        31.558        .77679E-04   -1.4676    
   4  norm          .10000E-03    .69792        .11084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.392        26.541        .11857E-03   -1.5033    
   6  Prefactor     .10000E-03    68.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.5753        6.0700        .12951E-03   -1.5089    
   8  Prefactor     23.747        15.968        .82199E-04   -1.4733    
   9  Prefactor     27.701        15.348        .76117E-04   -1.4655    
  10  Prefactor     .42361        .19033        .25559E-04   -1.5578    
  11  Prefactor     .10000E-03    2.7409        .14922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5998        1.8350        .10122E-03   -1.5385    
  13  Prefactor     25.847        25.409        .78797E-04   -1.4691    
  14  Prefactor     77.775        19.426        .45535E-04   -1.3942    
  15  Prefactor     .10000E-03    20.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7908        .28361        .14684E-04   -1.5374    
  17  Prefactor     .10000E-03    12.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0753        7.4674        .16288E-03   -1.5215    
  19  Prefactor     .10000E-03    10.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .72143        .27366        .43840E-03   -1.0305    
  21  Prefactor     1.0692        .14381        .20380E-03   -.90457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69533e-10
Minuit parameter uncertainties:
  1  1.51025e-05
  2  1.30095e-05
  3  31.578
  4  6.52377e-06
  5  26.5682
  6  0.000703322
  7  6.07035
  8  15.971
  9  15.3501
  10  0.19033
  11  1.20418e-06
  12  1.83505
  13  25.4201
  14  19.428
  15  1.95792e-05
  16  0.283608
  17  1.06648e-05
  18  7.46856
  19  2.40781e-05
  20  0.274181
  21  0.143861
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.236e-01  1.903e-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:  1.069e+00  1.439e-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.214e-01  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.36
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 4.85e-08
Energy Flux (Fixed Index): 4.00e-05 +/- 1.80e-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) = 8536.98282717
delta logL = 0.156986441036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8536.97021709
delta logL = 0.169596519419

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41708       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.3251       1.0000          .0000       10.000    
     3 'Normalizat'    .68556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0809       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=   8536.970     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41709        2.4196        .53941E-02   -.12559E-02
   2  Index1        2.3248        3.5282        .21021        .28118E-04
   3  Normalizat    .68567        .11161        .10123        .18539E-04
   4  Prefactor     1.0809        .47446E-01    .38361E-01    .18654E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.417088
  Index1     = 2.32482
  Normalizat = 0.685669
  Prefactor  = 1.0809
 **********
 **   18 **HESSE 
 **********

 FCN=   8536.970     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41709        .18408        .24036E-04   -1.5579    
   2  Index1        2.3248        .48079        .75941E-02   -.56455    
   3  Normalizat    .68567        .26437        .44870E-03   -1.0446    
   4  Prefactor     1.0809        .14439        .20278E-03   -.90079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9228e-11
Minuit parameter uncertainties:
  1  0.184076
  2  0.481836
  3  0.264857
  4  0.144439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348224': 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) = 8536.97021684
delta logL = 0.169596765218

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.171e-01  1.841e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.325e+00  4.818e-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.081e+00  1.444e-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:  6.857e-01  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.65
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.32 +/- 0.48
Photon Flux (Free Index): 1.36e-07 +/- 7.39e-08
Energy Flux (Free Index): 3.83e-05 +/- 1.64e-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/348224/cmap_HighResolution_578102401_578361601_4FGL_J2232.6+1143_daily_bin1307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='3.83e-05', photon_flux_error='4.85e-08', dlogl='1.70e-01', energy_flux='4.00e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-28 14:19:56.021159', photon_index_error2='0.48', photon_index2='2.32', ts='11.36', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='0.72', time_epoch_completed='1632863996.02', return_code='0', job_id='348224', GAL2='1.08', EG2='0.69', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='7.39e-08', ts2='11.65', photon_index='2.05' WHERE bin_id='1307' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:19:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 348224: <4FGL_J2232.6+1143_daily_bin1307> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1307 338.152 11.7306 578102401 578361601 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 :                                   652.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

