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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1473
RA = 338.152, Dec = 11.7306
tmin = 621129601, tmax = 621388801
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='348484', job_status='RUN', time_executed='2021-09-28 14:09:04.962000', time_epoch_executed='1632863344.96' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348484/ft1_4FGL_J2232.6+1143_daily_bin1473.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348484/ft2_4FGL_J2232.6+1143_daily_bin1473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348484/ft1_4FGL_J2232.6+1143_daily_bin1473.fits outfile=/scratch/kocevski/348484/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1473.fits ra=338.152 dec=11.7306 rad=12.0 tmin=621129601.0 tmax=621388801.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.11
user 2.90
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348484/ft1_filtered_4FGL_J2232.6+1143_daily_bin1473.fits evtable="EVENTS" scfile=/scratch/kocevski/348484/ft2_4FGL_J2232.6+1143_daily_bin1473.fits sctable="SC_DATA" expcube=/scratch/kocevski/348484/ltcube_621129601_621388801_4FGL_J2232.6+1143_daily_bin1473.fits outfile=/scratch/kocevski/348484/expmap_621129601_621388801_4FGL_J2232.6+1143_daily_bin1473.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/348484/ltcube_621129601_621388801_4FGL_J2232.6+1143_daily_bin1473.fits
.....................!
real 190.65
user 185.86
sys 4.48

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/348484/ft1_filtered_4FGL_J2232.6+1143_daily_bin1473.fits scfile=/scratch/kocevski/348484/ft2_4FGL_J2232.6+1143_daily_bin1473.fits outfile=/scratch/kocevski/348484/cmap_621129601_621388801_4FGL_J2232.6+1143_daily_bin1473.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 2.01
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348484/ft1_filtered_4FGL_J2232.6+1143_daily_bin1473.fits scfile=/scratch/kocevski/348484/ft2_4FGL_J2232.6+1143_daily_bin1473.fits outfile=/scratch/kocevski/348484/cmap_HighResolution_621129601_621388801_4FGL_J2232.6+1143_daily_bin1473.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    120.63       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.295       1.0000         .10000E-03   10000.    
     7 'norm      '    .13586E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8834       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .79017       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.647       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.233       1.0000         .10000E-03   10000.    
    14 'Prefactor '    73.897       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28290       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11496E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8543       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .30587       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1523       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=   3414.183     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2570 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.417       -.28602E-07** at limit **
   2  norm          .10000E-03    1.7406       -.24913E-07** at limit **
   3  norm          .10000E-03    64.810       -.86532E-07** at limit **
   4  norm          .10000E-03    .60516       -.82866E-07** at limit **
   5  Prefactor     120.61        95.655       -.29514E-06   -.21784E-04
   6  Prefactor     13.350        136.71        .41863E-06    .31205E-04
   7  norm          .10000E-03    8.4982       -.66926E-07** at limit **
   8  Prefactor     .10000E-03    11.805       -.27117E-07** at limit **
   9  Prefactor     4.8854        16.243       -.17000E-05   -.54460E-04
  10  Prefactor     .79018        .39110       -.56694E-07   -.50515E-03
  11  Prefactor     17.648        20.525        .88210E-07   -.27235E-04
  12  norm          .10000E-03    .98913        .44509E-07** at limit **
  13  Prefactor     11.239        49.358       -.35911E-06   -.40155E-05
  14  Prefactor     73.893        23.721       -.41182E-06   -.87941E-05
  15  Prefactor     .10000E-03    19.471       -.81276E-07** at limit **
  16  Prefactor     .28288        .23915       -.87016E-07   -.64386E-04
  17  Prefactor     .10000E-03    337.79       -.58497E-06** at limit **
  18  Prefactor     1.8615        26.933       -.85950E-06   -.13111E-03
  19  Prefactor     .10000E-03    15.634       -.16074E-06** at limit **
  20  Normalizat    .30585        .42988        .16091E-04   -.75609E-05
  21  Prefactor     1.1523        .21275       -.35835E-05    .36546E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 120.614
  Prefactor  = 13.35
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.88544
  Prefactor  = 0.790179
  Prefactor  = 17.6477
  norm       = 0.0001
  Prefactor  = 11.2386
  Prefactor  = 73.8927
  Prefactor  = 0.0001
  Prefactor  = 0.282878
  Prefactor  = 0.0001
  Prefactor  = 1.86147
  Prefactor  = 0.0001
  Normalizat = 0.305854
  Prefactor  = 1.15232
 **********
 **   18 **HESSE 
 **********

 FCN=   3414.183     FROM HESSE     STATUS=OK           313 CALLS     2883 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.7485        .75292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    65.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .63318        .88641E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     120.61        95.725        .36642E-04   -1.3507    
   6  Prefactor     13.350        134.03        .10985E-03   -1.4977    
   7  norm          .10000E-03    8.8691        .33215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8854        16.270        .18202E-03   -1.5266    
  10  Prefactor     .79018        .39190        .23787E-04   -1.5530    
  11  Prefactor     17.648        20.575        .95342E-04   -1.4868    
  12  norm          .10000E-03    1.0042        .56679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.239        48.590        .11953E-03   -1.5037    
  14  Prefactor     73.893        23.725        .46705E-04   -1.3987    
  15  Prefactor     .10000E-03    19.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .28288        .23275        .21981E-04   -1.5602    
  17  Prefactor     .10000E-03    338.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8615        26.438        .30611E-03   -1.5435    
  19  Prefactor     .10000E-03    15.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .30585        .43143        .62067E-03   -1.2249    
  21  Prefactor     1.1523        .21330        .17568E-03   -.87811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84202e-10
Minuit parameter uncertainties:
  1  1.7135e-05
  2  1.72205e-06
  3  2.901e-05
  4  1.01584e-06
  5  95.8476
  6  84.8462
  7  1.64065e-06
  8  1.60627e-05
  9  16.2849
  10  0.391901
  11  20.5836
  12  2.42521e-06
  13  46.8008
  14  23.7278
  15  2.16492e-05
  16  0.232749
  17  0.000224591
  18  14.0375
  19  3.41342e-05
  20  0.436236
  21  0.213456
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  7.902e-01  3.919e-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.152e+00  2.135e-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:  3.059e-01  4.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.73
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 2.01e-07 +/- 9.99e-08
Energy Flux (Fixed Index): 7.47e-05 +/- 3.70e-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) = 3413.94183738
delta logL = 0.241401472438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3413.93085488
delta logL = 0.252383973068

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67260       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.6890       1.0000          .0000       10.000    
     3 'Normalizat'    .37321       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1343       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=   3413.931     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67255        .36057        .54607E-02    .68162E-04
   2  Index1        1.6891        .41661        .14256       -.23347E-04
   3  Normalizat    .37312        .41825        .12736        .32589E-04
   4  Prefactor     1.1344        .22000        .36408E-01   -.21078E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.672547
  Index1     = 1.68912
  Normalizat = 0.373118
  Prefactor  = 1.13436
 **********
 **   18 **HESSE 
 **********

 FCN=   3413.931     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67255        .43797        .24088E-04   -1.5544    
   2  Index1        1.6891        .51713        .60988E-02   -.72372    
   3  Normalizat    .37312        .39745        .56421E-03   -1.1871    
   4  Prefactor     1.1344        .20960        .17702E-03   -.88376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70157e-10
Minuit parameter uncertainties:
  1  0.437975
  2  0.518782
  3  0.400504
  4  0.209753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348484': 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) = 3413.9308548
delta logL = 0.252384046891

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.725e-01  4.380e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  1.689e+00  5.188e-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.134e+00  2.098e-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:  3.731e-01  4.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.20
Ra Dec: 338.152 11.731
Photon Index (Free Index): 1.69 +/- 0.52
Photon Flux (Free Index): 1.32e-07 +/- 1.13e-07
Energy Flux (Free Index): 8.29e-05 +/- 4.68e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/348484/cmap_HighResolution_621129601_621388801_4FGL_J2232.6+1143_daily_bin1473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.01e-07', energy_flux2='8.29e-05', photon_flux_error='9.99e-08', dlogl='2.52e-01', energy_flux='7.47e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-28 14:16:30.188466', photon_index_error2='0.52', photon_index2='1.69', ts='14.73', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='4.68e-05', EG='0.31', time_epoch_completed='1632863790.19', return_code='0', job_id='348484', GAL2='1.13', EG2='0.37', return_code2='0', energy_flux_error='3.70e-05', photon_flux_error2='1.13e-07', ts2='15.20', photon_index='2.05' WHERE bin_id='1473' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:16:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 348484: <4FGL_J2232.6+1143_daily_bin1473> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1473 338.152 11.7306 621129601 621388801 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 :                                   439.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             295.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            634 sec.

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

