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


Performing analysis on: 4FGL_J2232.6+1143_daily_bin13
RA = 338.152, Dec = 11.7306
tmin = 242697601, tmax = 242956801
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='340955', job_status='RUN', time_executed='2021-09-28 13:44:25.044199', time_epoch_executed='1632861865.04' WHERE source_name='4FGL J2232.6+1143' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340955

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340955/ft1_4FGL_J2232.6+1143_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340955/ft2_4FGL_J2232.6+1143_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340955/ft1_4FGL_J2232.6+1143_daily_bin13.fits outfile=/scratch/kocevski/340955/ft1_filteredMKT_4FGL_J2232.6+1143_daily_bin13.fits ra=338.152 dec=11.7306 rad=12.0 tmin=242697601.0 tmax=242956801.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.41
user 1.25
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340955/ft1_filtered_4FGL_J2232.6+1143_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/340955/ft2_4FGL_J2232.6+1143_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/340955/ltcube_242697601_242956801_4FGL_J2232.6+1143_daily_bin13.fits outfile=/scratch/kocevski/340955/expmap_242697601_242956801_4FGL_J2232.6+1143_daily_bin13.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/340955/ltcube_242697601_242956801_4FGL_J2232.6+1143_daily_bin13.fits
.....................!
real 189.47
user 184.43
sys 4.74

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/340955/ft1_filtered_4FGL_J2232.6+1143_daily_bin13.fits scfile=/scratch/kocevski/340955/ft2_4FGL_J2232.6+1143_daily_bin13.fits outfile=/scratch/kocevski/340955/cmap_242697601_242956801_4FGL_J2232.6+1143_daily_bin13.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340955/ft1_filtered_4FGL_J2232.6+1143_daily_bin13.fits scfile=/scratch/kocevski/340955/ft2_4FGL_J2232.6+1143_daily_bin13.fits outfile=/scratch/kocevski/340955/cmap_HighResolution_242697601_242956801_4FGL_J2232.6+1143_daily_bin13.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.3989       1.0000         .10000E-03   10000.    
     3 'norm      '    15.190       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2991       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10581E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.566       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20366E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6653       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50121       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25797E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.560       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.968       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5115       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0857       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87860       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=   10667.18     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     1956 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.752        .93777E-06** at limit **
   2  norm          5.3991        3.0284       -.35087E-06   -.44540E-02
   3  norm          15.185        19.519       -.12030E-04   -.11119E-04
   4  norm          1.2992        .90463        .61807E-07    .30504E-04
   5  Prefactor     .10000E-03    17.210       -.24795E-06** at limit **
   6  Prefactor     52.554        30.610        .14236E-04    .13316E-04
   7  norm          .10000E-03    2.0319        .81128E-07** at limit **
   8  Prefactor     .10013        11.016       -.67836E-06   -.92251E-04
   9  Prefactor     2.6669        19.881       -.11757E-04   -.10715E-03
  10  Prefactor     .50100        .22234        .19531E-08   -.31050E-03
  11  Prefactor     .10000E-03    3.7415        .98351E-07** at limit **
  12  norm          .10000E-03    .67152        .27414E-07** at limit **
  13  Prefactor     24.560        26.258        .41287E-06    .17382E-05
  14  Prefactor     .10000E-03    6.9050        .65684E-07** at limit **
  15  Prefactor     .10000E-03    55.365       -.44724E-06** at limit **
  16  Prefactor     11.968        .55854       -.47267E-07    .10823E-02
  17  Prefactor     .10000E-03    9.3135       -.43981E-07** at limit **
  18  Prefactor     9.5130        10.264        .81157E-05   -.63299E-04
  19  Prefactor     .10000E-03    3.0607       -.27849E-07** at limit **
  20  Normalizat    1.0857        .24502        .48590E-06    .18814E-04
  21  Prefactor     .87855        .12581       -.92883E-06    .17179E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.39914
  norm       = 15.1853
  norm       = 1.29921
  Prefactor  = 0.0001
  Prefactor  = 52.5545
  norm       = 0.0001
  Prefactor  = 0.10013
  Prefactor  = 2.66691
  Prefactor  = 0.501003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.5601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9684
  Prefactor  = 0.0001
  Prefactor  = 9.51304
  Prefactor  = 0.0001
  Normalizat = 1.08565
  Prefactor  = 0.878547
 **********
 **   18 **HESSE 
 **********

 FCN=   10667.18     FROM HESSE     STATUS=OK           325 CALLS     2281 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3991        3.0671        .65078E-03   -1.5243    
   3  norm          15.185        19.348        .10277E-03   -1.4928    
   4  norm          1.2992        .90786        .79061E-04   -1.5480    
   5  Prefactor     .10000E-03    17.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.554        30.456        .55319E-04   -1.4257    
   7  norm          .10000E-03    2.0491        .14375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10013        14.473        .91096E-01   -1.5645    
   9  Prefactor     2.6669        20.245        .24965E-03   -1.5381    
  10  Prefactor     .50100        .21834        .29794E-04   -1.5566    
  11  Prefactor     .10000E-03    13.665        .38711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .68298        .82644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.560        26.264        .80830E-04   -1.4716    
  14  Prefactor     .10000E-03    6.9335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.968        .55980        .15710E-04   -1.5016    
  17  Prefactor     .10000E-03    9.3169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.5130        10.193        .12994E-03   -1.5091    
  19  Prefactor     .10000E-03    3.0625        .17646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0857        .28697        .44244E-03   -.90214    
  21  Prefactor     .87855        .14775        .25988E-03   -.96895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74855e-09
Minuit parameter uncertainties:
  1  4.06639e-05
  2  3.06722
  3  19.3558
  4  0.90787
  5  0.000102339
  6  30.4647
  7  1.18419e-05
  8  2.40701
  9  14.7026
  10  0.218338
  11  0.000105969
  12  1.8559e-06
  13  26.2765
  14  1.4844e-05
  15  0.000114163
  16  0.559796
  17  8.2693e-07
  18  10.1946
  19  4.47173e-06
  20  0.287382
  21  0.147815
Done.

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

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  5.010e-01  2.183e-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:  8.785e-01  1.478e-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.086e+00  2.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.09
Ra Dec: 338.152 11.731
Photon Index (Fixed Index): 2.05 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 5.56e-08
Energy Flux (Fixed Index): 4.73e-05 +/- 2.06e-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) = 10666.3011444
delta logL = 0.876566219124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10666.3002422
delta logL = 0.877468382556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40261       1.0000         .10000E-03   10000.    
     2 'Index1    '    2.6998       1.0000          .0000       10.000    
     3 'Normalizat'    1.0051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90831       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=   10666.30     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40265        1.6727        .53044E-02    .81520E-03
   2  Index1        2.6999        2.9956        .18445        .12882E-03
   3  Normalizat    1.0049        .87407E-01    .10305        .31841E-04
   4  Prefactor     .90834        .43931E-01    .45111E-01    .10908E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.402652
  Index1     = 2.69991
  Normalizat = 1.00494
  Prefactor  = 0.908338
 **********
 **   18 **HESSE 
 **********

 FCN=   10666.30     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40265        .23110        .23718E-04   -1.5581    
   2  Index1        2.6999        .57137        .67804E-02   -.47801    
   3  Normalizat    1.0049        .28243        .45673E-03   -.92865    
   4  Prefactor     .90834        .14983        .25597E-03   -.95850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18639e-09
Minuit parameter uncertainties:
  1  0.231098
  2  0.572964
  3  0.282856
  4  0.149902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340955': 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) = 10666.300242
delta logL = 0.877468630317

Extracting fit parameters...

4FGL J2232.6+1143
   Spectrum: PLSuperExpCutoff2
268    Prefactor:  4.027e-01  2.311e-01  1.000e-04  1.000e+04 ( 1.000e-10)
269       Index1:  2.700e+00  5.730e-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.083e-01  1.499e-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.005e+00  2.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.76
Ra Dec: 338.152 11.731
Photon Index (Free Index): 2.70 +/- 0.57
Photon Flux (Free Index): 1.95e-07 +/- 8.39e-08
Energy Flux (Free Index): 4.24e-05 +/- 1.66e-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/340955/cmap_HighResolution_242697601_242956801_4FGL_J2232.6+1143_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='4.24e-05', photon_flux_error='5.56e-08', dlogl='8.77e-01', energy_flux='4.73e-05', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-09-28 13:56:41.223983', photon_index_error2='0.57', photon_index2='2.70', ts='11.09', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.66e-05', EG='1.09', time_epoch_completed='1632862601.22', return_code='0', job_id='340955', GAL2='0.91', EG2='1.00', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='8.39e-08', ts2='12.76', photon_index='2.05' WHERE bin_id='13' AND source_name='4FGL J2232.6+1143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 340955: <4FGL_J2232.6+1143_daily_bin13> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2232.6+1143_daily_bin13 338.152 11.7306 242697601 242956801 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 :                                   737.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

