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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin34
RA = 338.152, Dec = 11.7306
tmin = 248140801, tmax = 248400001
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='342134', job_status='RUN', time_executed='2021-09-28 13:47:38.247684', time_epoch_executed='1632862058.25' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342134

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342134/ft1_4FGL_J2232.6+1143_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342134/ft2_4FGL_J2232.6+1143_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342134/ft1_4FGL_J2232.6+1143_daily_bin34.fits outfile=/scratch/kocevski/342134/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin34.fits ra=338.152 dec=11.7306 rad=12.0 tmin=248140801.0 tmax=248400001.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 1.40
user 1.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342134/ft1_filtered_4FGL_J2232.6+1143_daily_bin34.fits" evtable="EVENTS" scfile=/scratch/kocevski/342134/ft2_4FGL_J2232.6+1143_daily_bin34.fits sctable="SC_DATA" outfile=/scratch/kocevski/342134/ltcube_248140801_248400001_4FGL_J2232.6+1143_daily_bin34.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/342134/ft2_4FGL_J2232.6+1143_daily_bin34.fits
.....................!
real 13.04
user 12.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342134/ft1_filtered_4FGL_J2232.6+1143_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/342134/ft2_4FGL_J2232.6+1143_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/342134/ltcube_248140801_248400001_4FGL_J2232.6+1143_daily_bin34.fits outfile=/scratch/kocevski/342134/expmap_248140801_248400001_4FGL_J2232.6+1143_daily_bin34.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/342134/ltcube_248140801_248400001_4FGL_J2232.6+1143_daily_bin34.fits
.....................!
real 191.04
user 185.84
sys 4.62

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/342134/ft1_filtered_4FGL_J2232.6+1143_daily_bin34.fits scfile=/scratch/kocevski/342134/ft2_4FGL_J2232.6+1143_daily_bin34.fits outfile=/scratch/kocevski/342134/cmap_248140801_248400001_4FGL_J2232.6+1143_daily_bin34.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=338.152 yref=11.7306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342134/ft1_filtered_4FGL_J2232.6+1143_daily_bin34.fits scfile=/scratch/kocevski/342134/ft2_4FGL_J2232.6+1143_daily_bin34.fits outfile=/scratch/kocevski/342134/cmap_HighResolution_248140801_248400001_4FGL_J2232.6+1143_daily_bin34.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14273E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.250       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4150       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.518       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22852       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .82073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6554       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5808       1.0000         .10000E-03   10000.    
    15 'Prefactor '    94.228       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3224       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.394       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8261       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3153       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2393       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93274       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=   11709.92     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2238 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    208.87        .90712E-02** at limit **
   2  norm          14.244        3.5764        .26526E-02    .10039E-03
   3  norm          .10000E-03    8.1760        .90712E-02** at limit **
   4  norm          1.4150        .83041        .90993E-02    .34300E-03
   5  Prefactor     13.518        12.604        .27236E-02   -.54268E-03
   6  Prefactor     .10000E-03    54.425        .90712E-02** at limit **
   7  norm          .10000E-03    1.6755        .90712E-02** at limit **
   8  Prefactor     .10000E-03    24.291        .90712E-02** at limit **
   9  Prefactor     .10000E-03    3.1738        .90712E-02** at limit **
  10  Prefactor     .22855        .15314        .71453E-02    .21650E-02
  11  Prefactor     .10000E-03    1.8565        .90712E-02** at limit **
  12  norm          .82071        .83141        .12517E-01   -.43928E-03
  13  Prefactor     9.6551        18.610        .32241E-02   -.49472E-04
  14  Prefactor     9.5807        8.3870        .32367E-02    .61384E-03
  15  Prefactor     94.228        32.610        .10351E-02    .35762E-04
  16  Prefactor     3.3224        .29177        .35782E-02   -.11271E-03
  17  Prefactor     26.392        32.622        .19494E-02    .61538E-04
  18  Prefactor     9.8260        7.5956        .31959E-02    .21211E-02
  19  Prefactor     9.3148        14.472        .32827E-02    .31602E-03
  20  Normalizat    1.2394        .21060        .83969E-01    .27989E-04
  21  Prefactor     .93272        .10978        .45421E-01    .13306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.244
  norm       = 0.0001
  norm       = 1.41498
  Prefactor  = 13.5179
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.228551
  Prefactor  = 0.0001
  norm       = 0.820709
  Prefactor  = 9.65505
  Prefactor  = 9.58065
  Prefactor  = 94.2279
  Prefactor  = 3.32242
  Prefactor  = 26.3922
  Prefactor  = 9.82598
  Prefactor  = 9.31482
  Normalizat = 1.23938
  Prefactor  = 0.932725
 **********
 **   18 **HESSE 
 **********

 FCN=   11709.92     FROM HESSE     STATUS=OK           321 CALLS     2559 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    209.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.244        3.5753        .98842E-04   -1.4953    
   3  norm          .10000E-03    8.1864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4150        .82905        .72719E-04   -1.5470    
   5  Prefactor     13.518        12.606        .10894E-03   -1.4972    
   6  Prefactor     .10000E-03    56.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6927        .13676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22855        .14623        .32844E-03   -1.5612    
  11  Prefactor     .10000E-03    1.8601        .14398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .82071        .84411        .96583E-04   -1.5527    
  13  Prefactor     9.6551        18.614        .12896E-03   -1.5086    
  14  Prefactor     9.5807        8.3796        .64734E-03   -1.5089    
  15  Prefactor     94.228        32.701        .41403E-04   -1.3763    
  16  Prefactor     3.3224        .29391        .15816E-04   -1.5343    
  17  Prefactor     26.392        32.744        .77976E-04   -1.4680    
  18  Prefactor     9.8260        7.5923        .63917E-03   -1.5081    
  19  Prefactor     9.3148        14.482        .13131E-03   -1.5097    
  20  Normalizat    1.2394        .24908        .37178E-03   -.85394    
  21  Prefactor     .93272        .13004        .22885E-03   -.95007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47108e-09
Minuit parameter uncertainties:
  1  3.38475e-05
  2  3.57533
  3  2.32085e-06
  4  0.829056
  5  12.6089
  6  3.52055e-05
  7  2.75842e-07
  8  1.75243e-05
  9  3.44234e-07
  10  0.146227
  11  1.01475e-06
  12  0.844119
  13  18.6252
  14  8.38061
  15  32.707
  16  0.293908
  17  32.7665
  18  7.59307
  19  14.4876
  20  0.249315
  21  0.130081
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.286e-01  1.462e-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:  9.327e-01  1.301e-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:  1.239e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.01
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 5.83e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.38e-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) = 11709.6681326
delta logL = 0.255514298617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11709.6533346
delta logL = 0.27031228066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22054       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.4288       1.0000          .0000       10.000    
     3 'Normalizat'    1.2130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94099       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=   11709.65     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22055        1.8247        .62954E-02    .38595E-02
   2  Index1        2.4287        3.2601        .23794        .96834E-04
   3  Normalizat    1.2130        .58847E-01    .84722E-01    .30386E-03
   4  Prefactor     .94099        .33113E-01    .45525E-01    .50023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.220546
  Index1     = 2.42872
  Normalizat = 1.21296
  Prefactor  = 0.94099
 **********
 **   18 **HESSE 
 **********

 FCN=   11709.65     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22055        .14403        .28802E-03   -1.5614    
   2  Index1        2.4287        .54557        .92110E-02   -.54014    
   3  Normalizat    1.2130        .24075        .37513E-03   -.86203    
   4  Prefactor     .94099        .13013        .22793E-03   -.94723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15407e-10
Minuit parameter uncertainties:
  1  0.144034
  2  0.547056
  3  0.240974
  4  0.130169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342134': 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) = 11709.6533346
delta logL = 0.270312286983

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  2.205e-01  1.440e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.429e+00  5.471e-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:  9.410e-01  1.302e-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:  1.213e+00  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.43 +/- 0.55
Photon Flux (Free Index): 8.00e-08 +/- 5.02e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.24e-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/342134/cmap_HighResolution_248140801_248400001_4FGL_J2232.6+1143_daily_bin34.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.83e-08', energy_flux2='2.07e-05', photon_flux_error='3.73e-08', dlogl='2.70e-01', energy_flux='2.16e-05', photon_flux2='8.00e-08', job_status='DONE', time_completed='2021-09-28 14:00:31.599704', photon_index_error2='0.55', photon_index2='2.43', ts='4.01', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.24', time_epoch_completed='1632862831.6', return_code='0', job_id='342134', GAL2='0.94', EG2='1.21', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.02e-08', ts2='4.52', photon_index='2.05' WHERE bin_id='34' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 14:00:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 342134: <4FGL_J2232.6+1143_daily_bin34> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin34 338.152 11.7306 248140801 248400001 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 :                                   773.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

