/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 2 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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2232.6+1143_daily_bin183
RA = 338.152, Dec = 11.7306
tmin = 286761601, tmax = 287020801
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='342356', job_status='RUN', time_executed='2021-09-28 13:45:40.270152', time_epoch_executed='1632861940.27' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342356

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342356/ft1_4FGL_J2232.6+1143_daily_bin183.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342356/ft2_4FGL_J2232.6+1143_daily_bin183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342356/ft1_4FGL_J2232.6+1143_daily_bin183.fits outfile=/scratch/kocevski/342356/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin183.fits ra=338.152 dec=11.7306 rad=12.0 tmin=286761601.0 tmax=287020801.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.70
user 3.47
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342356/ft1_filtered_4FGL_J2232.6+1143_daily_bin183.fits" evtable="EVENTS" scfile=/scratch/kocevski/342356/ft2_4FGL_J2232.6+1143_daily_bin183.fits sctable="SC_DATA" outfile=/scratch/kocevski/342356/ltcube_286761601_287020801_4FGL_J2232.6+1143_daily_bin183.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/342356/ft2_4FGL_J2232.6+1143_daily_bin183.fits
.....................!
real 11.74
user 11.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342356/ft1_filtered_4FGL_J2232.6+1143_daily_bin183.fits evtable="EVENTS" scfile=/scratch/kocevski/342356/ft2_4FGL_J2232.6+1143_daily_bin183.fits sctable="SC_DATA" expcube=/scratch/kocevski/342356/ltcube_286761601_287020801_4FGL_J2232.6+1143_daily_bin183.fits outfile=/scratch/kocevski/342356/expmap_286761601_287020801_4FGL_J2232.6+1143_daily_bin183.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/342356/ltcube_286761601_287020801_4FGL_J2232.6+1143_daily_bin183.fits
.....................!
real 191.95
user 186.35
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/342356/ft1_filtered_4FGL_J2232.6+1143_daily_bin183.fits scfile=/scratch/kocevski/342356/ft2_4FGL_J2232.6+1143_daily_bin183.fits outfile=/scratch/kocevski/342356/cmap_286761601_287020801_4FGL_J2232.6+1143_daily_bin183.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342356/ft1_filtered_4FGL_J2232.6+1143_daily_bin183.fits scfile=/scratch/kocevski/342356/ft2_4FGL_J2232.6+1143_daily_bin183.fits outfile=/scratch/kocevski/342356/cmap_HighResolution_286761601_287020801_4FGL_J2232.6+1143_daily_bin183.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21882E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .41638       1.0000         .10000E-03   10000.    
     3 'norm      '    16.242       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9012       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.704       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .59422       1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.305       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.417       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21869       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5242       1.0000         .10000E-03   10000.    
    12 'norm      '    7.5981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11683E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.234       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8816       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.190       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3364       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .71773       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0400       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=   10620.27     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2801 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.075        .88511E-06** at limit **
   2  norm          .41795        1.5820        .56130E-06   -.12072E-03
   3  norm          16.253        28.976       -.26672E-06   -.26334E-04
   4  norm          1.9012        1.0386       -.71473E-09   -.21137E-04
   5  Prefactor     32.702        23.785       -.28625E-05   -.46243E-04
   6  Prefactor     .44434        24.029       -.24880E-05    .32974E-03
   7  norm          .10000E-03    1.3403       -.48413E-07** at limit **
   8  Prefactor     12.299        14.984       -.12956E-06    .23516E-05
   9  Prefactor     15.449        14.317        .93824E-06    .11035E-04
  10  Prefactor     .21879        .20376       -.51983E-08   -.33792E-03
  11  Prefactor     7.5252        6.6608       -.13094E-06   -.29063E-05
  12  norm          7.5999        2.7046        .41200E-08   -.19665E-04
  13  Prefactor     .10000E-03    24.738       -.29293E-06** at limit **
  14  Prefactor     14.226        13.672       -.26848E-06   -.78216E-05
  15  Prefactor     .10000E-03    6.8900        .35249E-08** at limit **
  16  Prefactor     6.8815        .42991       -.10924E-07    .16355E-03
  17  Prefactor     36.195        29.944        .81781E-06    .75954E-05
  18  Prefactor     3.3400        7.2001        .27661E-05    .26261E-03
  19  Prefactor     .10000E-03    6.4190       -.23585E-07** at limit **
  20  Normalizat    .71766        .26056       -.19712E-06   -.25122E-04
  21  Prefactor     1.0400        .12787       -.12415E-06   -.31074E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.417948
  norm       = 16.2535
  norm       = 1.90121
  Prefactor  = 32.7017
  Prefactor  = 0.444339
  norm       = 0.0001
  Prefactor  = 12.2992
  Prefactor  = 15.4487
  Prefactor  = 0.21879
  Prefactor  = 7.52524
  norm       = 7.59988
  Prefactor  = 0.0001
  Prefactor  = 14.2259
  Prefactor  = 0.0001
  Prefactor  = 6.88154
  Prefactor  = 36.1946
  Prefactor  = 3.34004
  Prefactor  = 0.0001
  Normalizat = 0.717662
  Prefactor  = 1.03997
 **********
 **   18 **HESSE 
 **********

 FCN=   10620.27     FROM HESSE     STATUS=OK           337 CALLS     3138 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .41795        2.6646        .22850E-02   -1.5579    
   3  norm          16.253        28.735        .99381E-04   -1.4901    
   4  norm          1.9012        1.0383        .30163E-04   -1.5432    
   5  Prefactor     32.702        24.333        .70068E-04   -1.4564    
   6  Prefactor     .44434        23.939        .12935       -1.5575    
   7  norm          .10000E-03    1.3434        .11651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.299        14.778        .11419E-03   -1.5006    
   9  Prefactor     15.449        14.334        .10201E-03   -1.4922    
  10  Prefactor     .21879        .18727        .39849E-03   -1.5614    
  11  Prefactor     7.5252        6.6488        .14620E-03   -1.5159    
  12  norm          7.5999        2.7052        .96414E-04   -1.5157    
  13  Prefactor     .10000E-03    24.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.226        13.662        .10617E-03   -1.4953    
  15  Prefactor     .10000E-03    6.8920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8815        .43011        .15718E-04   -1.5183    
  17  Prefactor     36.195        30.022        .66618E-04   -1.4504    
  18  Prefactor     3.3400        7.2452        .11079E-02   -1.5342    
  19  Prefactor     .10000E-03    6.4418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .71766        .28860        .49807E-03   -1.0320    
  21  Prefactor     1.0400        .14433        .22383E-03   -.91409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01892e-08
Minuit parameter uncertainties:
  1  3.29228e-06
  2  2.11048
  3  28.7595
  4  1.03834
  5  24.3401
  6  6.52496
  7  2.32696e-06
  8  14.7828
  9  14.3375
  10  0.187269
  11  6.6495
  12  2.70523
  13  6.49461e-06
  14  13.6647
  15  7.03504e-07
  16  0.430109
  17  30.0343
  18  7.24706
  19  7.13488e-06
  20  0.28921
  21  0.144388
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.188e-01  1.873e-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.040e+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:  7.177e-01  2.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 5.58e-08 +/- 4.77e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.77e-05

TS (Fixed Index): 2.10
Ra Dec: 338.152 11.731
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342356/likelihoodResults_286761601_287020801_4FGL_J2232.6+1143_daily_bin183.txt

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) = 10618.4124768
delta logL = 1.85603992932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10618.3954115
delta logL = 1.87310519603

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16837       1.0000         .10000E-03   10000.    
     2 'Index1    '    3.3140       1.0000          .0000       10.000    
     3 'Normalizat'    .59452       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0799       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=   10618.40     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16836        .90789        .44377E-02   -.55564E-02
   2  Index1        3.3140        2.8101        .18641        .72165E-05
   3  Normalizat    .59452        .62237E-01    .12221        .69120E-04
   4  Prefactor     1.0799        .33266E-01    .38405E-01    .29012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.16836
  Index1     = 3.31401
  Normalizat = 0.594523
  Prefactor  = 1.0799
 **********
 **   18 **HESSE 
 **********

 FCN=   10618.40     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16836        .16232        .20015E-04   -1.5626    
   2  Index1        3.3140        .78403        .67174E-02   -.34394    
   3  Normalizat    .59452        .27557        .54232E-03   -1.0822    
   4  Prefactor     1.0799        .14500        .21978E-03   -.90112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83907e-10
Minuit parameter uncertainties:
  1  0.162323
  2  0.787703
  3  0.276207
  4  0.145052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342356': 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) = 10618.3954115
delta logL = 1.87310523735

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  1.684e-01  1.623e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  3.314e+00  7.877e-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.080e+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:  5.945e-01  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.12
Ra Dec: 338.152 11.731
Photon Index (Free Index): 3.31 +/- 0.79
Photon Flux (Free Index): 1.70e-07 +/- 8.91e-08
Energy Flux (Free Index): 2.89e-05 +/- 1.46e-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/342356/cmap_HighResolution_286761601_287020801_4FGL_J2232.6+1143_daily_bin183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-05', comment='SUCCESS', photon_flux='5.58e-08', energy_flux2='2.89e-05', photon_flux_error='4.77e-08', dlogl='1.87e+00', energy_flux='2.07e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-28 14:00:40.224865', photon_index_error2='0.79', photon_index2='3.31', ts='2.10', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.46e-05', EG='0.72', time_epoch_completed='1632862840.22', return_code='0', job_id='342356', GAL2='1.08', EG2='0.59', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='8.91e-08', ts2='6.12', photon_index='2.05' WHERE bin_id='183' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:00:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 342356: <4FGL_J2232.6+1143_daily_bin183> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin183> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 13:45:28 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:45: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 13:45:30 2021
Terminated at Tue Sep 28 14:00:41 2021
Results reported at Tue Sep 28 14:00:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin183 338.152 11.7306 286761601 287020801 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 :                                   898.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

