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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin1396
RA = 338.152, Dec = 11.7306
tmin = 601171201, tmax = 601430401
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='348363', job_status='RUN', time_executed='2021-09-28 14:06:03.204121', time_epoch_executed='1632863163.2' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='1396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348363

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348363/ft1_4FGL_J2232.6+1143_daily_bin1396.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348363/ft2_4FGL_J2232.6+1143_daily_bin1396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348363/ft1_4FGL_J2232.6+1143_daily_bin1396.fits outfile=/scratch/kocevski/348363/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin1396.fits ra=338.152 dec=11.7306 rad=12.0 tmin=601171201.0 tmax=601430401.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.76
user 3.52
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348363/ft1_filtered_4FGL_J2232.6+1143_daily_bin1396.fits" evtable="EVENTS" scfile=/scratch/kocevski/348363/ft2_4FGL_J2232.6+1143_daily_bin1396.fits sctable="SC_DATA" outfile=/scratch/kocevski/348363/ltcube_601171201_601430401_4FGL_J2232.6+1143_daily_bin1396.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/348363/ft2_4FGL_J2232.6+1143_daily_bin1396.fits
.....................!
real 12.15
user 11.80
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348363/ft1_filtered_4FGL_J2232.6+1143_daily_bin1396.fits evtable="EVENTS" scfile=/scratch/kocevski/348363/ft2_4FGL_J2232.6+1143_daily_bin1396.fits sctable="SC_DATA" expcube=/scratch/kocevski/348363/ltcube_601171201_601430401_4FGL_J2232.6+1143_daily_bin1396.fits outfile=/scratch/kocevski/348363/expmap_601171201_601430401_4FGL_J2232.6+1143_daily_bin1396.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/348363/ltcube_601171201_601430401_4FGL_J2232.6+1143_daily_bin1396.fits
.....................!
real 191.28
user 185.93
sys 4.90

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/348363/ft1_filtered_4FGL_J2232.6+1143_daily_bin1396.fits scfile=/scratch/kocevski/348363/ft2_4FGL_J2232.6+1143_daily_bin1396.fits outfile=/scratch/kocevski/348363/cmap_601171201_601430401_4FGL_J2232.6+1143_daily_bin1396.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348363/ft1_filtered_4FGL_J2232.6+1143_daily_bin1396.fits scfile=/scratch/kocevski/348363/ft2_4FGL_J2232.6+1143_daily_bin1396.fits outfile=/scratch/kocevski/348363/cmap_HighResolution_601171201_601430401_4FGL_J2232.6+1143_daily_bin1396.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/348363/ft1_filtered_4FGL_J2232.6+1143_daily_bin1396.fits evtable="EVENTS" scfile=/scratch/kocevski/348363/ft2_4FGL_J2232.6+1143_daily_bin1396.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/348363/Model_4FGL_J2232.6+1143_daily_bin1396.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/348363/ft1_filtered_4FGL_J2232.6+1143_daily_bin1396.fits.....................!
real 72.37
user 70.98
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6803       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .18697E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.554       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.292       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8751       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.229       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .36872       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.349       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.924       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63918       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8744       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95323       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0135       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=   7521.897     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2236 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.531        .13860E-05** at limit **
   2  norm          1.6790        2.1962        .82358E-07   -.35364E-04
   3  norm          .10000E-03    7.5653       -.20418E-06** at limit **
   4  norm          .10000E-03    .42374       -.79493E-08** at limit **
   5  Prefactor     47.557        30.796       -.61633E-06    .76745E-05
   6  Prefactor     19.296        33.217       -.24973E-05   -.46136E-05
   7  norm          .10000E-03    2.8169       -.69952E-07** at limit **
   8  Prefactor     8.8752        10.951        .39722E-06   -.10776E-03
   9  Prefactor     13.229        9.8010        .26975E-07    .17114E-04
  10  Prefactor     .36873        .18397        .44244E-08    .31670E-03
  11  Prefactor     18.349        9.8654       -.55400E-08    .16468E-05
  12  norm          .10000E-03    .41108       -.38351E-07** at limit **
  13  Prefactor     .10000E-03    23.887       -.54833E-06** at limit **
  14  Prefactor     41.925        14.726        .63426E-07    .26096E-04
  15  Prefactor     .10000E-03    8.9292        .96725E-06** at limit **
  16  Prefactor     .63917        .17010       -.13572E-07   -.31177E-03
  17  Prefactor     .10000E-03    9.9045       -.10100E-05** at limit **
  18  Prefactor     .10000E-03    20.490       -.99520E-05** at limit **
  19  Prefactor     3.8748        5.9510        .11696E-05   -.27012E-03
  20  Normalizat    .95320        .22990       -.54513E-06   -.17858E-04
  21  Prefactor     1.0135        .12165        .59556E-07    .24501E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.67898
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 47.5569
  Prefactor  = 19.2963
  norm       = 0.0001
  Prefactor  = 8.87521
  Prefactor  = 13.2293
  Prefactor  = 0.368726
  Prefactor  = 18.3493
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.925
  Prefactor  = 0.0001
  Prefactor  = 0.639169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.87479
  Normalizat = 0.953203
  Prefactor  = 1.01349
 **********
 **   18 **HESSE 
 **********

 FCN=   7521.897     FROM HESSE     STATUS=OK           323 CALLS     2559 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6790        2.1867        .14204E-03   -1.5449    
   3  norm          .10000E-03    7.5638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8655        .10815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     47.557        30.791        .58147E-04   -1.4328    
   6  Prefactor     19.296        33.207        .91187E-04   -1.4829    
   7  norm          .10000E-03    2.8438        .14207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8752        11.362        .67271E-03   -1.5112    
   9  Prefactor     13.229        9.8259        .11013E-03   -1.4980    
  10  Prefactor     .36873        .18166        .24421E-04   -1.5587    
  11  Prefactor     18.349        9.8643        .93502E-04   -1.4851    
  12  norm          .10000E-03    .41201        .54286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.925        14.740        .61912E-04   -1.4412    
  15  Prefactor     .10000E-03    8.9492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63917        .16939        .17362E-04   -1.5548    
  17  Prefactor     .10000E-03    9.9132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.606        .33643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8748        11.599        .10250E-02   -1.5314    
  20  Normalizat    .95320        .27035        .35303E-03   -.94615    
  21  Prefactor     1.0135        .14316        .19173E-03   -.92281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76115e-10
Minuit parameter uncertainties:
  1  8.00554e-06
  2  2.1868
  3  1.27909e-05
  4  7.42819e-06
  5  30.8012
  6  33.2392
  7  1.48665e-06
  8  11.3646
  9  9.82714
  10  0.18166
  11  9.86519
  12  8.84908e-08
  13  2.70897e-06
  14  14.7415
  15  2.74525e-06
  16  0.169393
  17  6.54808e-06
  18  0.000126133
  19  11.6055
  20  0.270739
  21  0.143212
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.687e-01  1.817e-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.013e+00  1.432e-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.532e-01  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.99
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 9.40e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 1.72e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7521.5618629
delta logL = 0.335412129536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7521.54279927
delta logL = 0.354475751738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33797       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.4824       1.0000          .0000       10.000    
     3 'Normalizat'    .90244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0316       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=   7521.543     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      235 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33798        1.9514        .46684E-02    .94354E-03
   2  Index1        2.4825        3.4428        .18750        .88740E-04
   3  Normalizat    .90239        .86409E-01    .81665E-01    .27338E-04
   4  Prefactor     1.0316        .43332E-01    .41134E-01    .16474E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.337978
  Index1     = 2.48249
  Normalizat = 0.902387
  Prefactor  = 1.03163
 **********
 **   18 **HESSE 
 **********

 FCN=   7521.543     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33798        .17797        .20859E-04   -1.5592    
   2  Index1        2.4825        .54290        .68684E-02   -.52765    
   3  Normalizat    .90239        .26254        .36153E-03   -.96376    
   4  Prefactor     1.0316        .14449        .19020E-03   -.91682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11801e-12
Minuit parameter uncertainties:
  1  0.177967
  2  0.544338
  3  0.262909
  4  0.144544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348363': 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) = 7521.54279924
delta logL = 0.354475785657

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  3.380e-01  1.780e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.482e+00  5.443e-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.032e+00  1.445e-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.024e-01  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.78
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.48 +/- 0.54
Photon Flux (Free Index): 1.30e-07 +/- 6.56e-08
Energy Flux (Free Index): 3.22e-05 +/- 1.44e-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/348363/cmap_HighResolution_601171201_601430401_4FGL_J2232.6+1143_daily_bin1396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.40e-08', energy_flux2='3.22e-05', photon_flux_error='4.63e-08', dlogl='3.54e-01', energy_flux='3.48e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-28 14:16:00.911778', photon_index_error2='0.54', photon_index2='2.48', ts='8.99', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.95', time_epoch_completed='1632863760.91', return_code='0', job_id='348363', GAL2='1.03', EG2='0.90', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='6.56e-08', ts2='9.78', photon_index='2.05' WHERE bin_id='1396' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:16:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 348363: <4FGL_J2232.6+1143_daily_bin1396> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin1396 338.152 11.7306 601171201 601430401 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 :                                   596.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             351.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            614 sec.

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

