/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 165 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2232.6+1143_daily_bin50
RA = 338.152, Dec = 11.7306
tmin = 252288001, tmax = 252547201
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='342159', job_status='RUN', time_executed='2021-09-28 13:48:07.712786', time_epoch_executed='1632862087.71' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342159/ft1_4FGL_J2232.6+1143_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342159/ft2_4FGL_J2232.6+1143_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342159/ft1_4FGL_J2232.6+1143_daily_bin50.fits outfile=/scratch/kocevski/342159/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin50.fits ra=338.152 dec=11.7306 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.54
user 2.35
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342159/ft1_filtered_4FGL_J2232.6+1143_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/342159/ft2_4FGL_J2232.6+1143_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/342159/ltcube_252288001_252547201_4FGL_J2232.6+1143_daily_bin50.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/342159/ft2_4FGL_J2232.6+1143_daily_bin50.fits
.....................!
real 12.44
user 12.00
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342159/ft1_filtered_4FGL_J2232.6+1143_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/342159/ft2_4FGL_J2232.6+1143_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/342159/ltcube_252288001_252547201_4FGL_J2232.6+1143_daily_bin50.fits outfile=/scratch/kocevski/342159/expmap_252288001_252547201_4FGL_J2232.6+1143_daily_bin50.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/342159/ltcube_252288001_252547201_4FGL_J2232.6+1143_daily_bin50.fits
.....................!
real 191.97
user 185.67
sys 5.72

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/342159/ft1_filtered_4FGL_J2232.6+1143_daily_bin50.fits scfile=/scratch/kocevski/342159/ft2_4FGL_J2232.6+1143_daily_bin50.fits outfile=/scratch/kocevski/342159/cmap_252288001_252547201_4FGL_J2232.6+1143_daily_bin50.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/342159/ft1_filtered_4FGL_J2232.6+1143_daily_bin50.fits scfile=/scratch/kocevski/342159/ft2_4FGL_J2232.6+1143_daily_bin50.fits outfile=/scratch/kocevski/342159/cmap_HighResolution_252288001_252547201_4FGL_J2232.6+1143_daily_bin50.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/342159/ft1_filtered_4FGL_J2232.6+1143_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/342159/ft2_4FGL_J2232.6+1143_daily_bin50.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/342159/Model_4FGL_J2232.6+1143_daily_bin50.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/342159/ft1_filtered_4FGL_J2232.6+1143_daily_bin50.fits.....................!
real 73.94
user 72.36
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.1080       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9100       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    69.647       1.0000         .10000E-03   10000.    
     7 'norm      '    8.0513       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62391E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2867       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24475E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0175       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10598E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2325       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93687       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91355       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=   7235.941     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     1884 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.788        .21144E-06** at limit **
   2  norm          6.1080        3.0237        .32842E-07   -.88520E-05
   3  norm          .10000E-03    24.410        .12685E-06** at limit **
   4  norm          1.9099        1.1894       -.39717E-07   -.94616E-04
   5  Prefactor     .10000E-03    6.6495       -.10178E-06** at limit **
   6  Prefactor     69.623        35.142       -.22465E-05   -.38726E-03
   7  norm          8.0514        5.9724        .15654E-05   -.18044E-03
   8  Prefactor     .10000E-03    7.3660       -.82939E-07** at limit **
   9  Prefactor     5.2613        8.3897       -.76872E-07   -.16233E-05
  10  Prefactor     .62404E-01    .10569        .54135E-07    .13284E-02
  11  Prefactor     .10000E-03    2.7680        .10749E-07** at limit **
  12  norm          1.2870        1.1790       -.15409E-07    .16673E-03
  13  Prefactor     .10000E-03    11.816       -.27855E-06** at limit **
  14  Prefactor     .10002E-03    4.6092       -.91163E-06** at limit **
  15  Prefactor     .10000E-03    8.5385        .10192E-06** at limit **
  16  Prefactor     2.0176        .25607       -.75217E-08    .29935E-03
  17  Prefactor     .10000E-03    14.580        .59022E-06** at limit **
  18  Prefactor     .10000E-03    15.098        .54896E-06** at limit **
  19  Prefactor     8.2336        9.8702        .35505E-07   -.74875E-05
  20  Normalizat    .93650        .22053        .62432E-06   -.32933E-05
  21  Prefactor     .91378        .11872       -.40008E-06    .86799E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.10798
  norm       = 0.0001
  norm       = 1.9099
  Prefactor  = 0.0001
  Prefactor  = 69.6226
  norm       = 8.05138
  Prefactor  = 0.0001
  Prefactor  = 5.26131
  Prefactor  = 0.0624044
  Prefactor  = 0.0001
  norm       = 1.28698
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 2.01764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.23361
  Normalizat = 0.936501
  Prefactor  = 0.91378
 **********
 **   18 **HESSE 
 **********

 FCN=   7235.941     FROM HESSE     STATUS=OK           315 CALLS     2199 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.1080        3.0224        .10063E-03   -1.5214    
   3  norm          .10000E-03    24.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9099        1.1824        .69937E-04   -1.5432    
   5  Prefactor     .10000E-03    6.6541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     69.623        37.458        .48099E-04   -1.4037    
   7  norm          8.0514        6.1589        .70651E-03   -1.5140    
   8  Prefactor     .10000E-03    7.4181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2613        8.3821        .17525E-03   -1.5249    
  10  Prefactor     .62404E-01    .87958E-01    .34941E-03   -1.5658    
  11  Prefactor     .10000E-03    2.7939        .13820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2870        1.1661        .85927E-04   -1.5481    
  13  Prefactor     .10000E-03    11.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    18.138        .34420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0176        .25674        .14517E-04   -1.5424    
  17  Prefactor     .10000E-03    14.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2336        9.8713        .13973E-03   -1.5134    
  20  Normalizat    .93650        .25540        .35110E-03   -.95189    
  21  Prefactor     .91378        .13869        .19711E-03   -.95661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40271e-09
Minuit parameter uncertainties:
  1  4.65672e-05
  2  3.02248
  3  3.74989e-05
  4  1.18237
  5  7.44118e-06
  6  37.4706
  7  6.15936
  8  6.02483e-06
  9  8.38392
  10  0.0879585
  11  9.38377e-08
  12  1.16611
  13  3.33849e-05
  14  0.00116926
  15  8.0165e-06
  16  0.256745
  17  6.3487e-05
  18  2.14916e-05
  19  9.87326
  20  0.255736
  21  0.138744
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  6.240e-02  8.796e-02  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.138e-01  1.387e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  9.365e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 338.152 11.731
Photon Flux Upper Limit: 8.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342159/likelihoodResults_252288001_252547201_4FGL_J2232.6+1143_daily_bin50.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): 102
logL (Free Index) = 7235.61489924
delta logL = 0.325710521302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7235.39971069
delta logL = 0.540899080102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44472E-02   1.0000         .10000E-03   10000.    
     2 'Index1    '    5.4989       1.0000          .0000       10.000    
     3 'Normalizat'    .82590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95713       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=   7235.400     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      245 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43831E-02    .44733E-01    .96798E-03    .16979E-01
   2  Index1        5.5089        2.9938        .19792        .11961E-03
   3  Normalizat    .82628        .46939E-01    .83828E-01    .29800E-04
   4  Prefactor     .95688        .26237E-01    .45729E-01    .39374E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00438307
  Index1     = 5.50886
  Normalizat = 0.826275
  Prefactor  = 0.956885
 **********
 **   18 **HESSE 
 **********

 FCN=   7235.400     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      280 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43831E-02    .13506        .44237E-04   -1.5695    
   2  Index1        5.5089        7.7213        .67542E-02    .10195    
   3  Normalizat    .82628        .19124        .37119E-03   -.99101    
   4  Prefactor     .95688        .10539        .19310E-03   -.94181    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.42506e-11
Minuit parameter uncertainties:
  1  0.0481026
  2  7.50999
  3  0.1914
  4  0.105414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342159': 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): 102
logL (Free Index) = 7235.39970469
delta logL = 0.540905079549

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.383e-03  4.810e-02  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  5.509e+00  7.510e+00  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.569e-01  1.054e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  8.263e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 338.152 11.731
Photon Index (Free Index): 5.51 +/- 7.51
Photon Flux (Free Index): 9.03e-08 +/- 6.79e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.05e-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/342159/cmap_HighResolution_252288001_252547201_4FGL_J2232.6+1143_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', comment='SUCCESS', energy_flux2='1.15e-05', dlogl='5.41e-01', photon_flux2='9.03e-08', job_status='DONE', time_completed='2021-09-28 13:58:28.168769', photon_index_error2='7.51', photon_index2='5.51', ts='0.91', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='8.33e-08', energy_flux_error2='1.05e-05', EG='0.94', time_epoch_completed='1632862708.17', return_code='0', job_id='342159', GAL2='0.96', EG2='0.83', return_code2='102', photon_flux_error2='6.79e-08', ts2='2.17', photon_index='2.05' WHERE bin_id='50' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:58:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 342159: <4FGL_J2232.6+1143_daily_bin50> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin50 338.152 11.7306 252288001 252547201 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 :                                   621.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            794 sec.

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

