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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1256
RA = 338.152, Dec = 11.7306
tmin = 564883201, tmax = 565142401
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='348146', job_status='RUN', time_executed='2021-09-28 14:09:09.825256', time_epoch_executed='1632863349.83' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348146

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348146/ft1_4FGL_J2232.6+1143_daily_bin1256.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348146/ft2_4FGL_J2232.6+1143_daily_bin1256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348146/ft1_4FGL_J2232.6+1143_daily_bin1256.fits outfile=/scratch/kocevski/348146/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1256.fits ra=338.152 dec=11.7306 rad=12.0 tmin=564883201.0 tmax=565142401.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/348146/ft2_4FGL_J2232.6+1143_daily_bin1256.fits

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348146/ft1_filtered_4FGL_J2232.6+1143_daily_bin1256.fits evtable="EVENTS" scfile=/scratch/kocevski/348146/ft2_4FGL_J2232.6+1143_daily_bin1256.fits sctable="SC_DATA" expcube=/scratch/kocevski/348146/ltcube_564883201_565142401_4FGL_J2232.6+1143_daily_bin1256.fits outfile=/scratch/kocevski/348146/expmap_564883201_565142401_4FGL_J2232.6+1143_daily_bin1256.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/348146/ltcube_564883201_565142401_4FGL_J2232.6+1143_daily_bin1256.fits
.....................!
real 189.71
user 184.72
sys 4.66

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348146/ft1_filtered_4FGL_J2232.6+1143_daily_bin1256.fits scfile=/scratch/kocevski/348146/ft2_4FGL_J2232.6+1143_daily_bin1256.fits outfile=/scratch/kocevski/348146/cmap_HighResolution_564883201_565142401_4FGL_J2232.6+1143_daily_bin1256.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.737       1.0000         .10000E-03   10000.    
     2 'norm      '    .44929       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24160E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52407       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8329       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43630E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0145       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9626       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.296       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .99226       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.492       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6446       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2069       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91487       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=   10689.40     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2308 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.779        51.510       -.21440E-05    .11279E-03
   2  norm          .44608        3.4331        .17458E-05   -.23029E-04
   3  norm          .10000E-03    6.5222       -.17027E-07** at limit **
   4  norm          .10000E-03    .24055        .34294E-07** at limit **
   5  Prefactor     .10000E-03    6.5081        .69432E-07** at limit **
   6  Prefactor     .10000E-03    90.189        .16787E-05** at limit **
   7  norm          .10000E-03    3.8644        .22591E-06** at limit **
   8  Prefactor     .46171        176.42       -.15318E-04    .18493E-04
   9  Prefactor     .10000E-03    3.9901        .11191E-06** at limit **
  10  Prefactor     3.8331        .39105       -.47438E-08   -.56880E-02
  11  Prefactor     .10001E-03    6.8830       -.81807E-06** at limit **
  12  norm          1.0128        1.2820       -.81331E-06   -.40023E-03
  13  Prefactor     5.9626        29.977        .52209E-06   -.21732E-04
  14  Prefactor     28.301        12.890        .61520E-06   -.31431E-05
  15  Prefactor     .10000E-03    10.924        .62667E-07** at limit **
  16  Prefactor     .99225        .18079        .90432E-08   -.70987E-03
  17  Prefactor     13.481        37.786       -.15882E-06    .11942E-04
  18  Prefactor     7.6442        6.1784        .12285E-06   -.16100E-03
  19  Prefactor     .10000E-03    8.7485        .13150E-06** at limit **
  20  Normalizat    1.2069        .21578       -.10164E-05   -.15104E-03
  21  Prefactor     .91492        .11334       -.55212E-07    .35036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7786
  norm       = 0.446077
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.461712
  Prefactor  = 0.0001
  Prefactor  = 3.83311
  Prefactor  = 0.000100012
  norm       = 1.01285
  Prefactor  = 5.96264
  Prefactor  = 28.3014
  Prefactor  = 0.0001
  Prefactor  = 0.992246
  Prefactor  = 13.481
  Prefactor  = 7.6442
  Prefactor  = 0.0001
  Normalizat = 1.20686
  Prefactor  = 0.914917
 **********
 **   18 **HESSE 
 **********

 FCN=   10689.40     FROM HESSE     STATUS=OK           331 CALLS     2639 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.779        52.985        .10433E-03   -1.4939    
   2  norm          .44608        3.6286        .22783E-02   -1.5574    
   3  norm          .10000E-03    6.5235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .33900        .98033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    94.330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9862        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .46171        19.785        .90820E-01   -1.5572    
   9  Prefactor     .10000E-03    4.0195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8331        .39401        .18105E-04   -1.5316    
  11  Prefactor     .10001E-03    31.657        .46063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0128        1.2863        .15319E-02   -1.5507    
  13  Prefactor     5.9626        30.088        .16444E-03   -1.5220    
  14  Prefactor     28.301        12.981        .75314E-04   -1.4643    
  15  Prefactor     .10000E-03    10.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .99225        .18129        .17315E-04   -1.5509    
  17  Prefactor     13.481        37.978        .10905E-03   -1.4973    
  18  Prefactor     7.6442        6.1772        .14504E-03   -1.5155    
  19  Prefactor     .10000E-03    8.8769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2069        .25900        .36240E-03   -.86391    
  21  Prefactor     .91492        .13459        .22179E-03   -.95622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86671e-08
Minuit parameter uncertainties:
  1  53.1547
  2  2.54443
  3  1.70089e-05
  4  6.47202e-06
  5  4.21331e-06
  6  0.000524577
  7  2.15157e-06
  8  6.04636
  9  5.07288e-06
  10  0.39401
  11  0.00125016
  12  1.28633
  13  26.8097
  14  12.9821
  15  6.05711e-06
  16  0.181288
  17  38.0457
  18  6.17768
  19  3.56028e-05
  20  0.259275
  21  0.13464
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.833e+00  3.940e-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.149e-01  1.346e-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.207e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 369.36
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 9.77e-07 +/- 1.00e-07
Energy Flux (Fixed Index): 3.62e-04 +/- 3.72e-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) = 10689.2131262
delta logL = 0.185033792495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10689.2076422
delta logL = 0.190517803956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7533       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.1145       1.0000          .0000       10.000    
     3 'Normalizat'    1.1705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92867       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=   10689.21     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7538        .45995        .40213E-02    .75735E-04
   2  Index1        2.1146        .12136        .50016E-01    .80970E-04
   3  Normalizat    1.1701        .21252        .82853E-01    .21216E-04
   4  Prefactor     .92888        .11336        .45369E-01    .31113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.75379
  Index1     = 2.11459
  Normalizat = 1.17007
  Prefactor  = 0.928885
 **********
 **   18 **HESSE 
 **********

 FCN=   10689.21     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7538        .38125        .17773E-04   -1.5320    
   2  Index1        2.1146        .10165        .21976E-03   -.61515    
   3  Normalizat    1.1701        .25569        .36682E-03   -.87533    
   4  Prefactor     .92888        .13608        .22026E-03   -.95139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81603e-12
Minuit parameter uncertainties:
  1  0.381251
  2  0.101657
  3  0.25596
  4  0.136134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348146': 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) = 10689.2076394
delta logL = 0.190520557093

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.754e+00  3.813e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.115e+00  1.017e-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.289e-01  1.361e-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.170e+00  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 364.84
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.11 +/- 0.10
Photon Flux (Free Index): 1.01e-06 +/- 1.08e-07
Energy Flux (Free Index): 3.48e-04 +/- 3.92e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/348146/cmap_HighResolution_564883201_565142401_4FGL_J2232.6+1143_daily_bin1256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.77e-07', energy_flux2='3.48e-04', photon_flux_error='1.00e-07', dlogl='1.91e-01', energy_flux='3.62e-04', photon_flux2='1.01e-06', job_status='DONE', time_completed='2021-09-28 14:21:30.738308', photon_index_error2='0.10', photon_index2='2.11', ts='369.36', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='3.92e-05', EG='1.21', time_epoch_completed='1632864090.74', return_code='0', job_id='348146', GAL2='0.93', EG2='1.17', return_code2='0', energy_flux_error='3.72e-05', photon_flux_error2='1.08e-07', ts2='364.84', photon_index='2.05' WHERE bin_id='1256' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:21:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 348146: <4FGL_J2232.6+1143_daily_bin1256> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1256 338.152 11.7306 564883201 565142401 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 :                                   738.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

