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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1114
RA = 338.152, Dec = 11.7306
tmin = 528076801, tmax = 528336001
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='346921', job_status='RUN', time_executed='2021-09-28 14:01:18.311145', time_epoch_executed='1632862878.31' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346921

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346921/ft1_4FGL_J2232.6+1143_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346921/ft2_4FGL_J2232.6+1143_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346921/ft1_4FGL_J2232.6+1143_daily_bin1114.fits outfile=/scratch/kocevski/346921/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1114.fits ra=338.152 dec=11.7306 rad=12.0 tmin=528076801.0 tmax=528336001.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.49
user 3.25
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346921/ft1_filtered_4FGL_J2232.6+1143_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/346921/ft2_4FGL_J2232.6+1143_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/346921/ltcube_528076801_528336001_4FGL_J2232.6+1143_daily_bin1114.fits outfile=/scratch/kocevski/346921/expmap_528076801_528336001_4FGL_J2232.6+1143_daily_bin1114.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/346921/ltcube_528076801_528336001_4FGL_J2232.6+1143_daily_bin1114.fits
.....................!
real 190.55
user 185.95
sys 4.26

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2232.6+1143 @ 338.152 11.7306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/346921/ft1_filtered_4FGL_J2232.6+1143_daily_bin1114.fits scfile=/scratch/kocevski/346921/ft2_4FGL_J2232.6+1143_daily_bin1114.fits outfile=/scratch/kocevski/346921/cmap_528076801_528336001_4FGL_J2232.6+1143_daily_bin1114.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346921/ft1_filtered_4FGL_J2232.6+1143_daily_bin1114.fits scfile=/scratch/kocevski/346921/ft2_4FGL_J2232.6+1143_daily_bin1114.fits outfile=/scratch/kocevski/346921/cmap_HighResolution_528076801_528336001_4FGL_J2232.6+1143_daily_bin1114.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=338.152 yref=11.7306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12323E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.0710       1.0000         .10000E-03   10000.    
     3 'norm      '    .22213E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.239       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.0073       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2998       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7091       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .81928       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7722       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.567       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .62774       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1577       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7872.533     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     2628 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.626        .18142E-02** at limit **
   2  norm          4.0718        2.4234        .10298E-03   -.38530E-04
   3  norm          .10000E-03    15.416        .11411    ** at limit **
   4  norm          .10000E-03    .75948        .10463E-02** at limit **
   5  Prefactor     27.261        26.461        .76759E-04    .35398E-04
   6  Prefactor     .10000E-03    189.44        .36285E-03** at limit **
   7  norm          3.0070        3.3565        .16686E-03   -.38971E-04
   8  Prefactor     .10000E-03    3.9018        .17107E-02** at limit **
   9  Prefactor     .10000E-03    4.8137        .18142E-02** at limit **
  10  Prefactor     3.2997        .37769        .17236E-04   -.25064E-03
  11  Prefactor     5.7078        9.7877        .16811E-03    .19612E-05
  12  norm          1.6670        1.3608        .91236E-04   -.81992E-04
  13  Prefactor     .10000E-03    15.886        .18142E-02** at limit **
  14  Prefactor     .10000E-03    14.739        .18142E-02** at limit **
  15  Prefactor     .10000E-03    11.969        .18142E-02** at limit **
  16  Prefactor     .81925        .18885        .17258E-04   -.45387E-03
  17  Prefactor     .10000E-03    11.437        .18142E-02** at limit **
  18  Prefactor     1.7699        9.8033        .15727E-02    .19178E-04
  19  Prefactor     12.564        13.023        .11299E-03   -.37227E-05
  20  Normalizat    .62782        .26797        .44845E-03   -.71718E-04
  21  Prefactor     1.1578        .14694        .19172E-03   -.88748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.07182
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 27.2612
  Prefactor  = 0.0001
  norm       = 3.00704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.29974
  Prefactor  = 5.70776
  norm       = 1.66699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.819253
  Prefactor  = 0.0001
  Prefactor  = 1.76992
  Prefactor  = 12.5644
  Normalizat = 0.627824
  Prefactor  = 1.15775
 **********
 **   18 **HESSE 
 **********

 FCN=   7872.533     FROM HESSE     STATUS=OK           307 CALLS     2935 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0718        2.4234        .41191E-05   -1.5304    
   3  norm          .10000E-03    15.230        .11542       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .76260        .20925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.261        26.467        .30704E-05   -1.4663    
   6  Prefactor     .10000E-03    189.45        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.0070        3.3564        .66746E-05   -1.5361    
   8  Prefactor     .10000E-03    3.9019        .34215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2997        .37767        .68944E-06   -1.5345    
  11  Prefactor     5.7078        9.7873        .67243E-05   -1.5230    
  12  norm          1.6670        1.3608        .36494E-05   -1.5450    
  13  Prefactor     .10000E-03    15.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.752        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81925        .18871        .69033E-06   -1.5527    
  17  Prefactor     .10000E-03    11.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7699        9.7618        .62908E-04   -1.5442    
  19  Prefactor     12.564        13.020        .45198E-05   -1.4999    
  20  Normalizat    .62782        .26802        .17938E-04   -1.0682    
  21  Prefactor     1.1578        .14700        .38343E-04   -.87641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48053e-10
Minuit parameter uncertainties:
  1  4.54446e-05
  2  2.42341
  3  8.82032e-05
  4  1.6462e-05
  5  26.4785
  6  0.000211372
  7  3.35659
  8  1.69455e-06
  9  4.54192e-06
  10  0.377671
  11  9.79003
  12  1.3608
  13  6.79781e-06
  14  1.45112e-05
  15  5.06148e-06
  16  0.188713
  17  4.47993e-06
  18  8.31512
  19  13.0234
  20  0.268576
  21  0.147051
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
501   Normalization:  6.278e-01  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 288.36
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 8.41e-07 +/- 9.62e-08
Energy Flux (Fixed Index): 3.12e-04 +/- 3.57e-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) = 7872.5332353
delta logL = 1.53013388626e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7872.5332353
delta logL = 1.58097464009e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2997       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0523       1.0000          .0000       10.000    
     3 'Normalizat'    .62783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1578       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=   7872.533     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      192 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2998        .46366        .39003E-02    .18740E-02
   2  Index1        2.0523        .14113        .52687E-01    .25527E-03
   3  Normalizat    .62784        .24275        .10117        .40466E-04
   4  Prefactor     1.1577        .13487        .35715E-01   -.23853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.29976
  Index1     = 2.05227
  Normalizat = 0.627836
  Prefactor  = 1.15775
 **********
 **   18 **HESSE 
 **********

 FCN=   7872.533     FROM HESSE     STATUS=OK            29 CALLS      221 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2998        .39411        .17236E-04   -1.5345    
   2  Index1        2.0523        .12052        .23137E-03   -.63050    
   3  Normalizat    .62784        .26403        .44844E-03   -1.0681    
   4  Prefactor     1.1577        .14720        .19172E-03   -.87642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39787e-11
Minuit parameter uncertainties:
  1  0.394109
  2  0.120536
  3  0.264558
  4  0.14725
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346921': 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) = 7872.5332353
delta logL = 1.87046680367e-08

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.300e+00  3.941e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.052e+00  1.205e-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.158e+00  1.472e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  6.278e-01  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 286.46
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.05 +/- 0.12
Photon Flux (Free Index): 8.41e-07 +/- 1.08e-07
Energy Flux (Free Index): 3.12e-04 +/- 4.34e-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/346921/cmap_HighResolution_528076801_528336001_4FGL_J2232.6+1143_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.41e-07', energy_flux2='3.12e-04', photon_flux_error='9.62e-08', dlogl='1.87e-08', energy_flux='3.12e-04', photon_flux2='8.41e-07', job_status='DONE', time_completed='2021-09-28 14:12:10.330015', photon_index_error2='0.12', photon_index2='2.05', ts='288.36', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='4.34e-05', EG='0.63', time_epoch_completed='1632863530.33', return_code='0', job_id='346921', GAL2='1.16', EG2='0.63', return_code2='0', energy_flux_error='3.57e-05', photon_flux_error2='1.08e-07', ts2='286.46', photon_index='2.05' WHERE bin_id='1114' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:12:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 346921: <4FGL_J2232.6+1143_daily_bin1114> in cluster <slac> Done

Job <4FGL_J2232.6+1143_daily_bin1114> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 14:01:02 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 14:01:05 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:01:05 2021
Terminated at Tue Sep 28 14:12:11 2021
Results reported at Tue Sep 28 14:12:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1114 338.152 11.7306 528076801 528336001 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 :                                   651.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            669 sec.

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

